|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.timebars.swt.renderer.RendererBase
de.jaret.util.ui.timebars.swt.renderer.RelationRenderer
public class RelationRenderer
Renderer rendering relations between intervals that implement the IRelationalInterval interface. Does not support vertical orientation.
| Nested Class Summary | |
|---|---|
class |
RelationRenderer.Line
Internal line represenation for caching. |
| Field Summary | |
|---|---|
protected int |
_arrowSize
arrow size. |
protected org.eclipse.swt.graphics.Color |
_lineColor
color used for the lines. |
protected int |
_lineWidth
linewidth to use. |
protected org.eclipse.swt.graphics.Color |
_selectedColor
color used for the lines when selected. |
| Fields inherited from class de.jaret.util.ui.timebars.swt.renderer.RendererBase |
|---|
_printer, _scaleX, _scaleY |
| Constructor Summary | |
|---|---|
RelationRenderer()
Create the renderer for use on displays. |
|
RelationRenderer(org.eclipse.swt.printing.Printer printer)
Create the renderer for a printer. |
|
| Method Summary | |
|---|---|
IRelationRenderer |
createPrintRenderer(org.eclipse.swt.printing.Printer printer)
Create a renderer suitable for printing. |
void |
dispose()
Dispose resources the renderer might have aquired. |
int |
getArrowSize()
Retrieve the current size set for the arrows. |
int |
getLineWidth()
Retrieve the current line width. |
java.util.List<IIntervalRelation> |
getRelationsForCoord(int x,
int y)
Retrieve the list of relations that are hit a the given coordinate. |
java.lang.String |
getTooltip(int x,
int y)
Supply a tooltip for a position in the diagram area. |
void |
renderRelations(TimeBarViewerDelegate delegate,
org.eclipse.swt.graphics.GC gc,
boolean printing)
Do the complete relation rendering. |
void |
setArrowSize(int arrowSize)
Set the arrow size. |
void |
setLineWidth(int lineWidth)
Set the line width for the connection lines. |
| Methods inherited from class de.jaret.util.ui.timebars.swt.renderer.RendererBase |
|---|
drawFocus, getDefaultLineWidth, getPrinter, getScaleX, getScaleY, scaleX, scaleY |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.eclipse.swt.graphics.Color _lineColor
protected org.eclipse.swt.graphics.Color _selectedColor
protected int _lineWidth
protected int _arrowSize
| Constructor Detail |
|---|
public RelationRenderer(org.eclipse.swt.printing.Printer printer)
printer - printer devicepublic RelationRenderer()
| Method Detail |
|---|
public void renderRelations(TimeBarViewerDelegate delegate,
org.eclipse.swt.graphics.GC gc,
boolean printing)
renderRelations in interface IRelationRendererdelegate - the delegategc - GC to paint onprinting - true when used throughout printing
public java.util.List<IIntervalRelation> getRelationsForCoord(int x,
int y)
getRelationsForCoord in interface IRelationRendererx - x coordinatey - y coordinate
null
public java.lang.String getTooltip(int x,
int y)
getTooltip in interface IRelationRendererx - x coordinatey - y coordinate
null for no tooltip contribution or tooltip to be displayedpublic void dispose()
dispose in interface IRelationRendererpublic IRelationRenderer createPrintRenderer(org.eclipse.swt.printing.Printer printer)
createPrintRenderer in interface IRelationRendererprinter - printer device
public int getLineWidth()
public void setLineWidth(int lineWidth)
lineWidth - line width to setpublic int getArrowSize()
public void setArrowSize(int arrowSize)
arrowSize - arrow size
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||