public class DrawAnchorPointEvent
extends java.util.EventObject
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 Graphics2D 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.
|
public DrawAnchorPointEvent(java.lang.Object source, java.awt.Graphics2D graphics, java.awt.geom.Point2D location, DiagramNode node, AnchorPattern anchorPattern, int anchorIndex)
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.public int getAnchorIndex()
AnchorPattern
.public AnchorPattern getAnchorPattern()
AnchorPattern
class.public java.awt.Graphics2D getGraphics()
public java.awt.geom.Point2D getLocation()
public DiagramNode getNode()
DiagramNode
class.