|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.connector.StraightTerminal
A terminal that consists of a straight line plus an additional decoration at the connection end of the terminal.
| Constructor Summary | |
StraightTerminal()
Create a new terminal which is not attached to anything. |
|
StraightTerminal(Site attachSite)
Create a new terminal attached to the given site. |
|
StraightTerminal(Site attachSite,
java.awt.Stroke stroke,
java.awt.Paint paint)
Create a new terminal attached to the given site, with the given stroke and paint. |
|
| Method Summary | |
Site |
getAttachSite()
Get the site to which the terminal is attached |
java.awt.geom.Rectangle2D |
getBounds()
Get the bounding box of this terminal. |
Site |
getConnectSite()
Get the site to which a connector can attach |
ConnectorEnd |
getEnd()
Get the object drawn at the end of the terminal, if there is one. |
java.awt.Paint |
getPaint()
Get the paint of this terminal. |
java.awt.Shape |
getShape()
Get the outline shape of this terminal. |
java.awt.Stroke |
getStroke()
Get the stroke of this terminal. |
boolean |
hit(java.awt.geom.Rectangle2D r)
Test if this terminal is hit by the given rectangle. |
void |
paint(java.awt.Graphics2D g)
Paint the terminal. |
void |
relocate()
Tell the terminal to reposition itself over the attachment site. |
void |
setAttachSite(Site s)
Set the site to which the terminal is attached. |
void |
setEnd(ConnectorEnd e)
Set the object drawn at the end of the terminal. |
void |
setPaint(java.awt.Paint p)
Set the stroke paint pattern of this terminal. |
void |
setStroke(java.awt.Stroke s)
Set the stroke of this terminal. |
void |
transform(java.awt.geom.AffineTransform at)
Transform the terminal. |
void |
translate(double x,
double y)
Translate the terminal. |
| Methods inherited from class diva.canvas.AbstractFigure |
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface diva.canvas.Figure |
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipText |
| Methods inherited from interface diva.canvas.VisibleComponent |
isVisible, paint, setVisible |
| Methods inherited from interface diva.canvas.CanvasComponent |
getTransformContext, repaint, repaint |
| Methods inherited from interface diva.util.UserObjectContainer |
getUserObject, setUserObject |
| Constructor Detail |
public StraightTerminal()
public StraightTerminal(Site attachSite)
public StraightTerminal(Site attachSite,
java.awt.Stroke stroke,
java.awt.Paint paint)
| Method Detail |
public Site getAttachSite()
getAttachSite in interface Terminalpublic java.awt.geom.Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class AbstractFigurepublic Site getConnectSite()
getConnectSite in interface Terminalpublic ConnectorEnd getEnd()
public java.awt.Paint getPaint()
public java.awt.Shape getShape()
getShape in interface FiguregetShape in class AbstractFigurepublic java.awt.Stroke getStroke()
public boolean hit(java.awt.geom.Rectangle2D r)
hit in interface Figurehit in class AbstractFigurepublic void paint(java.awt.Graphics2D g)
paint in interface VisibleComponentpaint in class AbstractFigurepublic void relocate()
relocate in interface Terminalpublic void setAttachSite(Site s)
setAttachSite in interface Terminalpublic void setEnd(ConnectorEnd e)
public void setStroke(java.awt.Stroke s)
public void setPaint(java.awt.Paint p)
public void transform(java.awt.geom.AffineTransform at)
transform in interface Figuretransform in class AbstractFigure
public void translate(double x,
double y)
translate in interface Figuretranslate in class AbstractFigure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||