W - The bean type.V - The view type.D - The mutable shape definition type..public class ConnectorShape<W,D extends ShapeViewDef<W,V>,V extends ShapeView> extends AbstractElementShape<W,ViewConnector<W>,Edge<ViewConnector<W>,Node>,D,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,
ShapeStateHandler 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) |
protected ShapeImpl<V> |
getShape() |
afterDraw, applyCustomProperties, applyProperties, applyTitle, beforeDraw, getDefinition, getShapeDefinition, getShapeHandlersDef, getShapeView, getUUID, setUUIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyTitleapplyPropertiesgetShapeView, getUUID, setUUIDafterDraw, beforeDrawpublic ConnectorShape(D shapeDef, V view, ShapeStateHandler shapeStateHelper)
protected ShapeImpl<V> getShape()
getShape in class AbstractElementShape<W,ViewConnector<W>,Edge<ViewConnector<W>,Node>,D extends ShapeViewDef<W,V>,V extends ShapeView>public 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 HasShapeStateCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.