gistoolkit.display.drawmodel
Class EditNodesDrawModelEvent

java.lang.Object
  extended bygistoolkit.display.drawmodel.EditNodesDrawModelEvent

public class EditNodesDrawModelEvent
extends java.lang.Object

Holds Information about the events taking place within the Edit Nodes Draw Model.


Field Summary
static int POINT_ADDED
          A point was added to the shape.
static int POINT_MOVED
          A point was moved within the shape.
static int POINT_REMOVED
          A point was removed from the shape.
 
Constructor Summary
EditNodesDrawModelEvent(int inType, Shape inShape)
          Creates new EditNodesDrawModelEvent with the given type and shape.
EditNodesDrawModelEvent(int inType, Shape inShape, Point inPoint)
          Creates new EditNodesDrawModelEvent with the specified type, Shape and the affected point.
 
Method Summary
 Point getPoint()
          Retrieve the point that was modified.
 Shape getShape()
          Retrieve the shape that was modified.
 int getType()
          Determine what type of event happened.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POINT_ADDED

public static final int POINT_ADDED
A point was added to the shape.

See Also:
Constant Field Values

POINT_REMOVED

public static final int POINT_REMOVED
A point was removed from the shape.

See Also:
Constant Field Values

POINT_MOVED

public static final int POINT_MOVED
A point was moved within the shape.

See Also:
Constant Field Values
Constructor Detail

EditNodesDrawModelEvent

public EditNodesDrawModelEvent(int inType,
                               Shape inShape)
Creates new EditNodesDrawModelEvent with the given type and shape.


EditNodesDrawModelEvent

public EditNodesDrawModelEvent(int inType,
                               Shape inShape,
                               Point inPoint)
Creates new EditNodesDrawModelEvent with the specified type, Shape and the affected point.

Method Detail

getType

public int getType()
Determine what type of event happened.


getPoint

public Point getPoint()
Retrieve the point that was modified.


getShape

public Shape getShape()
Retrieve the shape that was modified.