net.sf.sdedit.drawable
Class Cross

java.lang.Object
  extended by net.sf.sdedit.drawable.Drawable
      extended by net.sf.sdedit.drawable.Cross
All Implemented Interfaces:
Constants

public class Cross
extends Drawable


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
Cross(Lifeline lifeline)
           
 
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 g2d)
          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[] getPoints()
          Returns an array of four points, the first two points are the end points of the first line of the cross, the last two points those of the second line.
 
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

Cross

public Cross(Lifeline lifeline)
Method Detail

getPoints

public Point[] getPoints()
Returns an array of four points, the first two points are the end points of the first line of the cross, the last two points those of the second line.

Returns:
an array of four points, the first two points are the end points of the first line of the cross, the last two points those of the second line.

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

computeLayoutInformation

public void computeLayoutInformation()
Description copied from class: Drawable
This method is called when and if the left and top positions of the drawable components of a sequence diagram are fixed. Its purpose is to use this information to compute even finer layout information, such as the width of the component.

Specified by:
computeLayoutInformation in class Drawable


Copyright © 2011. All Rights Reserved.