net.sourceforge.swtlayeredgraph
Class CrossCursor

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

public class CrossCursor
extends java.lang.Object
implements IGraphCursor

Author:
davija

Constructor Summary
CrossCursor()
          Default constructor
CrossCursor(int color, int lineWidth)
          Builds a new graph cursor in the shape of a large cross on the screen.
 
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

CrossCursor

public CrossCursor()
Default constructor


CrossCursor

public CrossCursor(int color,
                   int lineWidth)
Builds a new graph cursor in the shape of a large cross on the screen.

Parameters:
color - Color of lines
lineWidth - Width in pixels of the lines.
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.