|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TimeScaleRenderer
Interface for a renderer rending the timescale (x axis). The renderer can (should) support printing.
| Method Summary | |
|---|---|
TimeScaleRenderer |
createPrintRenderer(org.eclipse.swt.printing.Printer printer)
Create a timescale renderer setup for printing. |
void |
dispose()
Dispose resources. |
void |
draw(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle drawingArea,
TimeBarViewerDelegate delegate,
boolean top,
boolean printing)
Draw the Timescale. |
int |
getHeight()
Returns the prferred height for rendering. |
java.lang.String |
getToolTipText(TimeBarViewer tbv,
org.eclipse.swt.graphics.Rectangle drawingArea,
int x,
int y)
Retrieve the tooltip text for a given locatin in the timescale. |
boolean |
supportsOptimizedScrolling()
Report whether this renderer can be used with optimized scrolling. |
| Method Detail |
|---|
void draw(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle drawingArea,
TimeBarViewerDelegate delegate,
boolean top,
boolean printing)
gc - GraphicsContext to paint with.drawingArea - Rectangel denoting the area to draw in. The gc is clipped to this area.delegate - TimeBarViewerDelegate exposed for callbackstop - if true the tmiescale is in position top, bottom otherwiseprinting - flag to indicate printing.
java.lang.String getToolTipText(TimeBarViewer tbv,
org.eclipse.swt.graphics.Rectangle drawingArea,
int x,
int y)
tbv - TimeBarViewerdrawingArea - area in that the timescale has been paintedx - x coordinatey - y coordinate
nullint getHeight()
boolean supportsOptimizedScrolling()
void dispose()
TimeScaleRenderer createPrintRenderer(org.eclipse.swt.printing.Printer printer)
printer - Printer device taht will be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||