net.sourceforge.swtlayeredgraph
Class GraphCursorFactory

java.lang.Object
  extended by net.sourceforge.swtlayeredgraph.GraphCursorFactory

public class GraphCursorFactory
extends java.lang.Object

This class is a factory that is used to create various cursor objects.

Author:
davija

Constructor Summary
GraphCursorFactory()
           
 
Method Summary
 IGraphCursor getLargeCrossCursor()
          Builds a default cross cursor
 IGraphCursor getLargeCrossCursor(int color, int lineWidth)
          Builds a cross cursor with the following parameters.
 IGraphCursor getSmallCrossCursor()
          Builds a default small cross cursor.
 IGraphCursor getSmallCrossCursor(java.lang.Double width, java.lang.Double height, int color, int lineWidth, CoordinateType type)
          Builds a small cross cursor with the following parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphCursorFactory

public GraphCursorFactory()
Method Detail

getSmallCrossCursor

public IGraphCursor getSmallCrossCursor()
Builds a default small cross cursor.

Returns:
Returns a new small cross cursor.

getSmallCrossCursor

public IGraphCursor getSmallCrossCursor(java.lang.Double width,
                                        java.lang.Double height,
                                        int color,
                                        int lineWidth,
                                        CoordinateType type)
Builds a small cross cursor with the following parameters.

Parameters:
width - Width of cursor in units of type.
height - Height of cursor in units of type.
color - Color of the lines in the cursor.
lineWidth - Width (in pixels) of the lines of the cursor
type - Type of coordinate system for width and height.
Returns:
Returns a new small cross cursor with the specified parameters.

getLargeCrossCursor

public IGraphCursor getLargeCrossCursor()
Builds a default cross cursor

Returns:
Returns a new cross cursor.

getLargeCrossCursor

public IGraphCursor getLargeCrossCursor(int color,
                                        int lineWidth)
Builds a cross cursor with the following parameters.

Parameters:
color - Color of the lines in the cursor.
lineWidth - Width (in pixels) of the lines of the cursor.
Returns:
Returns a new cross cursor with the specified parameters.


Copyright © 2009. All Rights Reserved.