com.mindfusion.diagramming
Class DrawLinkEvent
java.lang.Object
java.util.EventObject
com.mindfusion.diagramming.DrawLinkEvent
- All Implemented Interfaces:
- java.io.Serializable
public class DrawLinkEvent
- extends java.util.EventObject
Contains the arguments passed to the Diagram.drawLink
drawLink event handlers.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
java.awt.Graphics2D |
getGraphics()
Gets an object implementing the IGraphics interface whose methods should be used to draw the link. |
DiagramLink |
getLink()
Gets the DiagramLink object that should be custom drawn. |
PointList |
getPoints()
Gets a collection of the link's control points. |
boolean |
getShadow()
Gets a value indicating whether the event is raised to draw the link's shadow. |
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 |
DrawLinkEvent
public DrawLinkEvent(java.lang.Object source,
java.awt.Graphics2D graphics,
DiagramLink link,
boolean shadow,
PointList points)
getGraphics
public java.awt.Graphics2D getGraphics()
- Gets an object implementing the IGraphics interface whose methods should be used to draw the link.
- Returns:
- An instance of a class implementing the
Graphics2D
interface.
getLink
public DiagramLink getLink()
- Gets the
DiagramLink
object that should be custom drawn.
- Returns:
- An instance of the
DiagramLink
class.
getPoints
public PointList getPoints()
- Gets a collection of the link's control points.
- Returns:
- An instance of the
PointList
class.
getShadow
public boolean getShadow()
- Gets a value indicating whether the event is raised to draw the link's shadow.
- Returns:
- true if now drawing the link's shadow; otherwise, false.