|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.ui.timebars.swing.renderer.DefaultMiscRenderer
public class DefaultMiscRenderer
Default implementation of th misc renderer for the swing time bar viewer.
Field Summary | |
---|---|
static java.awt.Color |
HIGHLIGHT_COLOR
color used for highlighting. |
Constructor Summary | |
---|---|
DefaultMiscRenderer()
|
Method Summary | |
---|---|
void |
drawRowBackground(java.awt.Graphics graphics,
int x,
int y,
int width,
int height,
boolean selected,
boolean highlighted)
Draw a row background for the time bar viewer if a row is either selected or highlighted. |
void |
drawRowGridLine(java.awt.Graphics graphics,
int x1,
int y1,
int x2,
int y2)
Draw a row gridline for the time bar viewer. |
void |
renderRegionRect(java.awt.Graphics graphics,
TimeBarViewer tbv,
TimeBarViewerDelegate delegate)
Render the selected region. |
void |
renderSelectionRect(java.awt.Graphics graphics,
TimeBarViewer tbv,
java.awt.Rectangle selectionRect)
Render the selection rectangle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Color HIGHLIGHT_COLOR
Constructor Detail |
---|
public DefaultMiscRenderer()
Method Detail |
---|
public void renderRegionRect(java.awt.Graphics graphics, TimeBarViewer tbv, TimeBarViewerDelegate delegate)
renderRegionRect
in interface IMiscRenderer
graphics
- Graphics to paint withtbv
- timebar viewerdelegate
- the delegatepublic void renderSelectionRect(java.awt.Graphics graphics, TimeBarViewer tbv, java.awt.Rectangle selectionRect)
renderSelectionRect
in interface IMiscRenderer
graphics
- Graphics to paint withtbv
- timebar viewerselectionRect
- the selection rectangle in coordinatespublic void drawRowGridLine(java.awt.Graphics graphics, int x1, int y1, int x2, int y2)
drawRowGridLine
in interface IMiscRenderer
graphics
- Graphics to draw withx1
- start xy1
- start yx2
- end xy2
- end ypublic void drawRowBackground(java.awt.Graphics graphics, int x, int y, int width, int height, boolean selected, boolean highlighted)
drawRowBackground
in interface IMiscRenderer
graphics
- Graphics to paint withx
- x cordy
- y coordwidth
- width of the areaheight
- height of the areaselected
- true if the row is selectedhighlighted
- true if the row is highlighted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |