|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HierarchyRenderer
This interface describes a renderer used to render the hierarchy column.
Method Summary | |
---|---|
HierarchyRenderer |
createPrintRenderer(org.eclipse.swt.printing.Printer printer)
Create a similar renderer for printing. |
void |
dispose()
Dispose the renderer. |
void |
draw(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle drawingArea,
TimeBarViewerDelegate delegate,
TimeBarRow row,
boolean selected,
boolean expanded,
boolean leaf,
int level,
int depth,
boolean printing)
Drwa one hierarchy element. |
int |
getPreferredWidth()
Return the preferred width for the hierachy display. |
java.lang.String |
getToolTipText(TimeBarNode node,
org.eclipse.swt.graphics.Rectangle drawingArea,
int x,
int y)
Retrieve the tooltip for a position inside the header. |
boolean |
isInHierarchySelectionArea(TimeBarViewer viewer,
TimeBarNode node,
org.eclipse.swt.graphics.Rectangle drawingArea,
int xx,
int yy)
Check whether a position should trigger a row selection. |
boolean |
isInToggleArea(TimeBarViewerInterface tbv,
TimeBarNode node,
org.eclipse.swt.graphics.Rectangle drawingArea,
int xx,
int yy)
Check whether a position in the header should be active for folding/expanding. |
Method Detail |
---|
void draw(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawingArea, TimeBarViewerDelegate delegate, TimeBarRow row, boolean selected, boolean expanded, boolean leaf, int level, int depth, boolean printing)
gc
- GC to draw withdrawingArea
- rectangle to draw withindelegate
- TimeBarViewerDelegate for supporting informationrow
- the row (node) for which the hierarchy should be paintedselected
- wehether the row is selscted or notexpanded
- expanded status of the rowleaf
- if true the row is a leaflevel
- level in the tree of the current elementdepth
- depth of the tree. If the depth is not known a value of -1 will indicate this fact.printing
- falg indicate the current paint operation is for a printerjava.lang.String getToolTipText(TimeBarNode node, org.eclipse.swt.graphics.Rectangle drawingArea, int x, int y)
node
- TimeBarNode that the hierarchy element has been painted fordrawingArea
- area in which the header has been drawnx
- x of the position in questiony
- of the position in question
null
boolean isInToggleArea(TimeBarViewerInterface tbv, TimeBarNode node, org.eclipse.swt.graphics.Rectangle drawingArea, int xx, int yy)
tbv
- TimeBarViewernode
- nodedrawingArea
- area in which the header has been drawnxx
- x of the position in questionyy
- y of the position in question
boolean isInHierarchySelectionArea(TimeBarViewer viewer, TimeBarNode node, org.eclipse.swt.graphics.Rectangle drawingArea, int xx, int yy)
viewer
- the asking viewernode
- nodedrawingArea
- drawingareaxx
- x coordinateyy
- y coordinate
int getPreferredWidth()
void dispose()
HierarchyRenderer createPrintRenderer(org.eclipse.swt.printing.Printer printer)
printer
- Printer device
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |