com.mindfusion.diagramming
Class DrawAnchorPointEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mindfusion.diagramming.DrawAnchorPointEvent
All Implemented Interfaces:
java.io.Serializable

public class DrawAnchorPointEvent
extends java.util.EventObject

Contains the arguments passed to the DrawAnchorPoint event handlers.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DrawAnchorPointEvent(java.lang.Object source, java.awt.Graphics2D graphics, java.awt.geom.Point2D location, DiagramNode node, AnchorPattern anchorPattern, int anchorIndex)
          Initializes a new instance of the DrawAnchorPointEvent class.
 
Method Summary
 int getAnchorIndex()
          Gets the index of the anchor point within its containing pattern.
 AnchorPattern getAnchorPattern()
          Gets the anchor pattern containing the anchor point being drawn.
 java.awt.Graphics2D getGraphics()
          Gets an object implementing the IGraphics interface whose methods should be used to draw the anchor point mark.
 java.awt.geom.Point2D getLocation()
          Gets the location of the anchor point being drawn.
 DiagramNode getNode()
          Gets the node whose anchor point is being drawn.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawAnchorPointEvent

public DrawAnchorPointEvent(java.lang.Object source,
                            java.awt.Graphics2D graphics,
                            java.awt.geom.Point2D location,
                            DiagramNode node,
                            AnchorPattern anchorPattern,
                            int anchorIndex)
Initializes a new instance of the DrawAnchorPointEvent class.

Parameters:
source - The source of the event.
graphics - The Graphics2D object that represents the target of the drawing operation.
location - The position of the anchor point, expressed in document coordinates.
node - The DiagramNode related to the event.
anchorPattern - The AnchorPattern object whose point is being drawn.
anchorIndex - The zero-based index of the anchor point being drawn within its anchor pattern.
Method Detail

getAnchorIndex

public int getAnchorIndex()
Gets the index of the anchor point within its containing pattern.

Returns:
An integer value specifying the zero-based index of the anchor point within its AnchorPattern.

getAnchorPattern

public AnchorPattern getAnchorPattern()
Gets the anchor pattern containing the anchor point being drawn.

Returns:
An instance of the AnchorPattern class.

getGraphics

public java.awt.Graphics2D getGraphics()
Gets an object implementing the IGraphics interface whose methods should be used to draw the anchor point mark.

Returns:
An instance of a class implementing the IGraphics interface.

getLocation

public java.awt.geom.Point2D getLocation()
Gets the location of the anchor point being drawn.

Returns:
A Point2D specifying the location of the anchor point.

getNode

public DiagramNode getNode()
Gets the node whose anchor point is being drawn.

Returns:
An instance of the DiagramNode class.