|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.timebars.swing.renderer.DefaultRelationRenderer
public class DefaultRelationRenderer
Renderer rendering relations between intervals that implement the IRelationalInterval interface. Does not support vertical orientation.
| Nested Class Summary | |
|---|---|
class |
DefaultRelationRenderer.Line
Internal line represenation for caching. |
| Field Summary | |
|---|---|
protected int |
_arrowSize
arrow size. |
protected java.awt.Color |
_lineColor
color used for the lines. |
protected int |
_lineWidth
linewidth to use. |
protected java.awt.Color |
_selectedColor
color used for the lines when selected. |
| Constructor Summary | |
|---|---|
DefaultRelationRenderer()
Default constructor. |
|
| Method Summary | |
|---|---|
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,
java.awt.Graphics graphics)
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Color _lineColor
protected java.awt.Color _selectedColor
protected int _lineWidth
protected int _arrowSize
| Constructor Detail |
|---|
public DefaultRelationRenderer()
| Method Detail |
|---|
public void renderRelations(TimeBarViewerDelegate delegate,
java.awt.Graphics graphics)
renderRelations in interface IRelationRendererdelegate - the delegategraphics - Graphics to paint on
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 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 | |||||||||