net.sourceforge.swtlayeredgraph
Class SmallCrossCursor

java.lang.Object
  extended by net.sourceforge.swtlayeredgraph.SmallCrossCursor
All Implemented Interfaces:
IGraphCursor

public class SmallCrossCursor
extends java.lang.Object
implements IGraphCursor

Author:
davija

Constructor Summary
SmallCrossCursor()
          Default constructor
SmallCrossCursor(java.lang.Double width, java.lang.Double height, int color, int lineWidth, CoordinateType type)
          Builds a new graph cursor object in the shape of a cross.
 
Method Summary
 void draw(GCTransformer transformer, GraphPoint centerPoint)
          Draws the cursor on the canvas with the specified center point.
 java.lang.Boolean isVisible()
          Checks to see if cursor is visible.
 void setVisible(java.lang.Boolean visible)
          Sets the visibility status of the cursor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmallCrossCursor

public SmallCrossCursor()
Default constructor


SmallCrossCursor

public SmallCrossCursor(java.lang.Double width,
                        java.lang.Double height,
                        int color,
                        int lineWidth,
                        CoordinateType type)
Builds a new graph cursor object in the shape of a cross.

Parameters:
width - Width of cursor lines
height - Height of cursor lines
color - Color of cursor lines
lineWidth - Width in pixels of the lines
type - Coordinate system of width and height
Throws:
java.lang.IllegalArgumentException - If width, height or type is null. If color < 0.
Method Detail

draw

public void draw(GCTransformer transformer,
                 GraphPoint centerPoint)
Description copied from interface: IGraphCursor
Draws the cursor on the canvas with the specified center point.

Specified by:
draw in interface IGraphCursor
Parameters:
transformer - Transformer used to draw with
centerPoint - Center point of the cursor

isVisible

public java.lang.Boolean isVisible()
Description copied from interface: IGraphCursor
Checks to see if cursor is visible.

Specified by:
isVisible in interface IGraphCursor
Returns:
Returns true if visible, false otherwise.

setVisible

public void setVisible(java.lang.Boolean visible)
Description copied from interface: IGraphCursor
Sets the visibility status of the cursor

Specified by:
setVisible in interface IGraphCursor
Parameters:
visible - Flag to indicate if cursor is visible


Copyright © 2009. All Rights Reserved.