net.sourceforge.swtlayeredgraph
Interface IGraphCursor

All Known Implementing Classes:
CrossCursor, SmallCrossCursor

public interface IGraphCursor

Provides an interface to allow for custom graph cursors.

Author:
davija

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
 

Method Detail

draw

void draw(GCTransformer transformer,
          GraphPoint centerPoint)
Draws the cursor on the canvas with the specified center point.

Parameters:
transformer - Transformer used to draw with
centerPoint - Center point of the cursor
Throws:
java.lang.IllegalArgumentException - If transformer or centerPoint is null

setVisible

void setVisible(java.lang.Boolean visible)
Sets the visibility status of the cursor

Parameters:
visible - Flag to indicate if cursor is visible
Throws:
java.lang.IllegalArgumentException - if visible is null

isVisible

java.lang.Boolean isVisible()
Checks to see if cursor is visible.

Returns:
Returns true if visible, false otherwise.


Copyright © 2009. All Rights Reserved.