W - The bean type.V - The view type.D - The mutable shape definition type..public class ConnectorShape<W,D extends MutableShapeDef<W>,V extends ShapeView<?>> extends AbstractElementShape<W,ViewConnector<W>,Edge<ViewConnector<W>,Node>,MutableShapeDef<W>,V> implements EdgeShape<W,ViewConnector<W>,Edge<ViewConnector<W>,Node>,V>, Lifecycle
It acts as the bridge between the edge and the shape view.
This implementation relies on ShapeDefinitions. This way provides the bridge between the edge and it's bean definition instance, and delegates the interaction logic between the definition instance and the shape's view to a ShapeDefViewHandler type.
| Constructor and Description |
|---|
ConnectorShape(D shapeDef,
V view) |
ConnectorShape(D shapeDef,
V view,
ShapeStateHelper<V,Shape<V>> shapeStateHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConnections(Edge<ViewConnector<W>,Node> element,
ShapeView<?> source,
ShapeView<?> target,
MutationContext mutationContext) |
void |
applyPosition(Edge<ViewConnector<W>,Node> element,
MutationContext mutationContext) |
void |
applyState(ShapeState shapeState) |
afterDraw, applyProperties, applyTitle, beforeDraw, destroy, getDefinition, getDefViewHandler, getShape, getShapeDefinition, getShapeView, getUUID, setUUIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyTitleapplyPropertiesdestroy, getShapeView, getUUID, setUUIDafterDraw, beforeDrawpublic void applyConnections(Edge<ViewConnector<W>,Node> element, ShapeView<?> source, ShapeView<?> target, MutationContext mutationContext)
applyConnections in interface EdgeShape<W,ViewConnector<W>,Edge<ViewConnector<W>,Node>,V extends ShapeView<?>>public void applyPosition(Edge<ViewConnector<W>,Node> element, MutationContext mutationContext)
applyPosition in interface ElementShape<W,ViewConnector<W>,Edge<ViewConnector<W>,Node>,V extends ShapeView<?>>public void applyState(ShapeState shapeState)
applyState in interface Shape<V extends ShapeView<?>>Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.