net.sf.sdedit.drawable
Class Rectangle
java.lang.Object
net.sf.sdedit.drawable.Drawable
net.sf.sdedit.drawable.ExtensibleDrawable
net.sf.sdedit.drawable.Rectangle
- All Implemented Interfaces:
- Constants
public class Rectangle
- extends ExtensibleDrawable
| 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 |
| Methods inherited from class net.sf.sdedit.drawable.Drawable |
contains, 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 |
Rectangle
public Rectangle(int width,
Lifeline lifeline)
getColor
public final Color getColor()
draw
public void draw(Graphics2D g2d)
- Description copied from class:
Drawable
- Draws the sequence diagram element into the given Graphics2D
context, using the rectangle starting at Drawable.getTop(),
Drawable.getLeft(), sized Drawable.getHeight(),
Drawable.getWidth().
- Specified by:
draw in class Drawable
- Parameters:
g2d - the Graphics2D context to draw this drawable sequence diagram
element into
drawPartially
public void drawPartially(Graphics2D g2d,
int from,
int to)
- Description copied from class:
ExtensibleDrawable
- Draws as much of this ExtensibleDrawable as lies between the
specified vertical positions.
- Specified by:
drawPartially in class ExtensibleDrawable
- Parameters:
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()
Copyright © 2011. All Rights Reserved.