|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yworks.yfiles.bpmn.view.EventPortSupport
Helper class for event port creation.
![]() |
![]() |
| Constructor Summary | |
EventPortSupport()
Initializes a new EventPortSupport instance. |
|
| Method Summary | |
List |
convertToPort(Graph2D graph,
Node event,
Node activity)
Converts the given event node to node ports of the given activity node. |
List |
convertToPort(NodeRealizer event,
NodeRealizer activity,
YPoint location)
Converts the given event realizer to node ports of the given activity realizer. |
static NodePort |
createEventPort(NodeRealizer event)
Creates a free node port instance that is visualized using the specified node realizer. |
Node |
getActivityAt(Graph2DView view,
double x,
double y)
Retrieves an activity node at the given location in the specified view. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EventPortSupport()
EventPortSupport instance.
| Method Detail |
public Node getActivityAt(Graph2DView view,
double x,
double y)
view - the view whose graph is searched for activity nodes.x - the x-coordinate in the view's world coordinates system.y - the y-coordinate in the view's world coordinates system.
null if there is no activity node at the given location.
public List convertToPort(Graph2D graph,
Node event,
Node activity)
graph - the graph containing the specified nodes.event - the node to be converted into node ports.activity - the node to which the new ports are added.
convertToPort(y.view.NodeRealizer, y.view.NodeRealizer, y.geom.YPoint)
public List convertToPort(NodeRealizer event,
NodeRealizer activity,
YPoint location)
proxy realizer, new node ports
will be created recursively for each inner realizer of the proxy
event - the node realizer to be converted into node ports.activity - the node realizer to which the new ports are added.location - the location in the world coordinate system that should be
matched as best as possible.
public static NodePort createEventPort(NodeRealizer event)
event - the visual representation of the new node port.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||