|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
diva.canvas.connector.ConnectorEvent
public class ConnectorEvent
A graph event that is emitted when anything interesting happens inside a graph by way of a GraphModel. Each graph event contains an ID, a source, and a previous value for all changes and deletions, the specifics of which are described on a case-by-case basis below.
Red |
Field Summary | |
---|---|
private Connector |
_connector
The connector that is being operated on. |
private int |
_end
The end this event concerns. |
private int |
_id
The event ID. |
private Figure |
_target
The target figure |
static int |
BOTH_ENDS
This event is concerns both ends of the connector. |
static int |
CONNECTOR_DRAGGED
Signifies that a connector is dragged some distance |
static int |
CONNECTOR_DROPPED
Signifies that a connector end is dropped. |
static int |
CONNECTOR_SNAPPED
Signifies that a connector end is snapped to a possible target. |
static int |
CONNECTOR_UNSNAPPED
Signifies that a connector end is unsnapped from the original site that it was attached to, or from a possible target. |
static int |
HEAD_END
This event concerns the head end of the connector. |
static int |
MIDPOINT
This event is concerns the midpoint of the connector. |
static int |
TAIL_END
This event concerns the tail end of the connector. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ConnectorEvent(int id,
java.lang.Object source,
Figure target,
Connector connector,
int end)
Construct a ConnectorEvent with the given source, target, connector, and "end" flag. |
Method Summary | |
---|---|
private java.lang.String |
endToString()
Return a string representation of the endpoint. |
Connector |
getConnector()
Return the connector that this event concerns. |
int |
getEnd()
Return the end of the connector that this event concerns. |
int |
getID()
Return the type id for this event. |
Figure |
getTarget()
Return the target that the connector is snapped to or unsnapped from. |
private java.lang.String |
idToString()
Return a string representation of the ID. |
java.lang.String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CONNECTOR_DRAGGED
public static final int CONNECTOR_DROPPED
public static final int CONNECTOR_SNAPPED
public static final int CONNECTOR_UNSNAPPED
public static final int HEAD_END
getEnd()
,
Constant Field Valuespublic static final int TAIL_END
getEnd()
,
Constant Field Valuespublic static final int BOTH_ENDS
getEnd()
,
Constant Field Valuespublic static final int MIDPOINT
getEnd()
,
Constant Field Valuesprivate int _id
getID()
private int _end
getEnd()
private Figure _target
getTarget()
private Connector _connector
getConnector()
Constructor Detail |
---|
public ConnectorEvent(int id, java.lang.Object source, Figure target, Connector connector, int end)
Method Detail |
---|
public Connector getConnector()
public int getEnd()
public int getID()
public Figure getTarget()
private java.lang.String idToString()
private java.lang.String endToString()
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |