|
||||||||||
| 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.ExtensibleDrawable
public abstract class ExtensibleDrawable
An ExtensibleDrawable represents the state of a lifeline during a sequence. It is being extended - i. e. its height grows - as long as the state remains the same. If the state changes, the ExtensibleDrawable is closed and another instance is used for representing the state.
| Field Summary |
|---|
| 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 | |
|---|---|
protected |
ExtensibleDrawable(int width,
Lifeline lifeline)
Creates a new ExtensibleDrawable with an initial height of 0. |
| 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. |
abstract void |
drawPartially(Graphics2D g2d,
int from,
int to)
Draws as much of this ExtensibleDrawable as lies between the specified vertical positions. |
void |
extend(int amount)
Increases this ExtensibleDrawable's height by the specified amount. |
Lifeline |
getLifeline()
Returns the lifeline of which the state is represented. |
boolean |
isVisible()
|
| Methods inherited from class net.sf.sdedit.drawable.Drawable |
|---|
contains, draw, drawMultilineString, getBottom, getHeight, getLeft, getRight, getTop, getWidth, intersects, 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 |
|---|
protected ExtensibleDrawable(int width,
Lifeline lifeline)
width - the drawable widthlifeline - the lifeline of which the state is represented by the
ExtensibleDrawable| Method Detail |
|---|
public boolean isVisible()
isVisible in class Drawablepublic Lifeline getLifeline()
public final void extend(int amount)
amount - the amount of pixels by which the height is to be increasedpublic void computeLayoutInformation()
Drawable
computeLayoutInformation in class DrawableDrawable.computeLayoutInformation()
public abstract void drawPartially(Graphics2D g2d,
int from,
int to)
g2d - the graphics context to draw intofrom - the vertical position where to start drawing, if it is -1,
drawing is started at Drawable.getTop()to - the vertical position where to end drawing, if it is -1,
drawing ends at Drawable.getBottom()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||