|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.mindfusion.diagramming.DiagramEvent
public class DiagramEvent
Contains information passed to the events
defined in DiagramListener
.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DiagramEvent(java.lang.Object source,
java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D visibleRect,
java.awt.geom.Rectangle2D clipRect)
|
|
DiagramEvent(java.lang.Object source,
java.awt.geom.Point2D position,
int button)
Initializes a new DiagramEvent instance. |
Method Summary | |
---|---|
java.awt.geom.Rectangle2D |
getClipRect()
Gets the current clipping rectangle. |
java.awt.Graphics2D |
getGraphics()
Gets an object implementing the IGraphics interface whose methods should be used to draw the custom graphics. |
int |
getMouseButton()
Gets the mouse mouseButton related to the event. |
java.awt.geom.Point2D.Float |
getMousePosition()
Gets the mouse position. |
java.awt.geom.Rectangle2D |
getVisibleRect()
Gets what part of the diagram is currently visible. |
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 |
---|
public DiagramEvent(java.lang.Object source, java.awt.geom.Point2D position, int button)
source
- The sender of this event.position
- Specifies the mouse pointer position.button
- One of the MouseEvent.BUTTON* constants.public DiagramEvent(java.lang.Object source, java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D visibleRect, java.awt.geom.Rectangle2D clipRect)
Method Detail |
---|
public java.awt.geom.Point2D.Float getMousePosition()
Point2D.Float
object representing
the mouse position in document coordinates.public int getMouseButton()
public java.awt.geom.Rectangle2D getClipRect()
public java.awt.Graphics2D getGraphics()
public java.awt.geom.Rectangle2D getVisibleRect()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |