|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.drawable.Drawable
net.sf.sdedit.drawable.SequenceElement
net.sf.sdedit.drawable.Arrow
net.sf.sdedit.drawable.LoopArrow
public class LoopArrow
| Field Summary |
|---|
| Fields inherited from class net.sf.sdedit.drawable.SequenceElement |
|---|
configuration, diagram |
| Fields inherited from interface net.sf.sdedit.Constants |
|---|
ACTIVE_LIFELINE_COLOR, ANTI_ALIAS, dashed, DEFAULT_CODE_FONT, DEFAULT_CURSOR, DEFAULT_ENCODING_SCHEME, dotted, emptyStroke, GLOBAL_CONF_FILE, HAND_CURSOR, MOVE_CURSOR, SAVE_AS_FILE_PROPERTY, SAVE_AS_TYPE_PROPERTY, solid, TEST_FREEHEP_CLASSNAME, thick, thick_dashed, THREAD_COLORS |
| Constructor Summary | |
|---|---|
LoopArrow(Message msg,
ArrowStroke stroke,
Direction align,
int y)
Creates a new LoopArrow. |
|
| Method Summary | |
|---|---|
void |
computeLayoutInformation()
This method is called when and if the left and top positions of the drawable components of a sequence diagram are fixed. |
void |
draw(Graphics2D g)
Draws the sequence diagram element into the given Graphics2D context, using the rectangle starting at Drawable.getTop(), Drawable.getLeft(), sized Drawable.getHeight(), Drawable.getWidth(). |
Point |
getAnchor()
Returns the point in the middle of this arrow, the one that serves as an anchor when a connection to a Note is made. |
int |
getInnerHeight()
Returns the sum of the height of the text and the space between the text and the arrow. |
Point[] |
getLinePoints()
Returns an array of four points, representing the positions of the points that are connected by the lines of which the loop arrow is made up. |
Point |
getTextPosition()
Returns the position of the left bottom of the label of the loop arrow. |
| Methods inherited from class net.sf.sdedit.drawable.Arrow |
|---|
drawArrowHead, drawText, getInnerHeight, getMessage, getPoints, getSpace, getStroke, overrideColor, setSpace |
| Methods inherited from class net.sf.sdedit.drawable.SequenceElement |
|---|
configuration, diagram, drawMultilineString, getAlign, getLeftEndpoint, getLeftLimit, getRightEndpoint, getRightLimit, leftPadding, rightPadding, setLeftEndpoint, setLeftLimit, setRightEndpoint, setRightLimit, textHeight, textWidth |
| Methods inherited from class net.sf.sdedit.drawable.Drawable |
|---|
contains, drawMultilineString, getBottom, getHeight, getLeft, getRight, getTop, getWidth, intersects, isVisible, setBottom, setHeight, setLeft, setRight, setTop, setVisible, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoopArrow(Message msg,
ArrowStroke stroke,
Direction align,
int y)
msg - a self-message or answer to selfstroke - the stroke to be used for drawing the arrowalign - Align.LEFT if the message is to be drawn on the left of a
lifeline, otherwise Align.RIGHTy - the vertical position where to start drawing| Method Detail |
|---|
public void draw(Graphics2D g)
Drawable
draw in class Arrowg - the Graphics2D context to draw this drawable sequence diagram
element intoDrawable.draw(java.awt.Graphics2D)public int getInnerHeight()
Arrow
getInnerHeight in class Arrowpublic Point[] getLinePoints()
public Point getAnchor()
Arrow
getAnchor in class Arrowpublic Point getTextPosition()
getTextPosition in class Arrowpublic void computeLayoutInformation()
Drawable
computeLayoutInformation in class ArrowDrawable.computeLayoutInformation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||