public class DecoratedShapeView<T extends WiresShapeViewExt> extends WiresShapeViewExt<T> implements HasSize<T>
This way any kind of path or primitive instance can be added as child for this shape and even if that instance cannot be resized or supports some control point handler, due to it's state, the already provided multi-path instance is used for these goals.
When scaling this shape, it scales all children for fitting the given new size, and the multi-path instance is rebuild to provide the right magnets and control points.
HasTitle.PositionHasControlPoints.ControlPointTypeHasFillGradient.Type| Constructor and Description |
|---|
DecoratedShapeView(ViewEventType[] supportedEventTypes,
WiresScalableContainer scalableContainer,
com.ait.lienzo.client.core.shape.Shape<?> theShape,
double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
DecoratedShapeView |
addScalableChild(com.ait.lienzo.client.core.shape.IPrimitive<?> child) |
protected com.ait.lienzo.client.core.shape.wires.WiresShapeControlHandleList |
createControlHandles(com.ait.lienzo.client.core.shape.wires.IControlHandle.ControlHandleType type,
com.ait.lienzo.client.core.shape.wires.ControlHandleList controls) |
void |
destroy() |
com.ait.lienzo.client.core.shape.Shape<?> |
getAttachableShape() |
org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.ext.DecoratedShapeView.DecoratedWiresShapeControlHandleList |
getControls() |
com.ait.lienzo.client.core.shape.Shape<?> |
getShape() |
T |
setMaxHeight(Double maxHeight) |
T |
setMaxWidth(Double maxWidth) |
T |
setMinHeight(Double minHeight) |
T |
setMinWidth(Double minWidth) |
T |
setSize(double width,
double height) |
addHandler, areControlsVisible, cast, disableHandlers, enableHandlers, getTextViewDecorator, hideControlPoints, moveTitleToTop, rebuildTextBoundaries, refresh, removeHandler, setEventHandlerManager, setFillGradient, setTitle, setTitleAlpha, setTitleFontColor, setTitleFontFamily, setTitleFontSize, setTitlePosition, setTitleRotation, setTitleStrokeColor, setTitleStrokeWidth, showControlPoints, supports, updateControlPoints, updateFillGradientgetAlpha, getBoundingBox, getDecorators, getFillAlpha, getFillColor, getShapeAbsoluteLocation, getShapeX, getShapeY, getStrokeAlpha, getStrokeColor, getStrokeWidth, getUserData, getUUID, moveDown, moveToBottom, moveToTop, moveUp, removeShadow, setAlpha, setDragBounds, setDragEnabled, setFillAlpha, setFillColor, setListening, setShadow, setShapeLocation, setStrokeAlpha, setStrokeColor, setStrokeWidth, setUserData, setUUID, unsetDragBoundsaddChild, addChild, addWiresResizeEndHandler, addWiresResizeStartHandler, addWiresResizeStepHandler, equals, getControl, getMagnets, getPath, hashCode, isResizable, loadControls, removeChild, removeFromParent, setControl, setDraggable, setLocation, setMagnets, setResizable, shapeMoved, uuidadd, addWiresDragEndHandler, addWiresDragMoveHandler, addWiresDragStartHandler, addWiresMoveHandler, getChildShapes, getComputedLocation, getContainer, getDockedTo, getGroup, getHandlerManager, getLayoutHandler, getLocation, getParent, getWiresManager, getX, getY, remove, setDockedTo, setLayoutHandler, setParent, setWiresManagerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitremoveFromParentpublic DecoratedShapeView(ViewEventType[] supportedEventTypes, WiresScalableContainer scalableContainer, com.ait.lienzo.client.core.shape.Shape<?> theShape, double width, double height)
public com.ait.lienzo.client.core.shape.Shape<?> getShape()
getShape in class WiresShapeView<T extends WiresShapeViewExt>public com.ait.lienzo.client.core.shape.Shape<?> getAttachableShape()
getAttachableShape in interface HasEventHandlers<T extends WiresShapeViewExt,com.ait.lienzo.client.core.shape.Shape<?>>getAttachableShape in class WiresShapeViewExt<T extends WiresShapeViewExt>public DecoratedShapeView addScalableChild(com.ait.lienzo.client.core.shape.IPrimitive<?> child)
public T setSize(double width, double height)
setSize in interface HasSize<T extends WiresShapeViewExt>public T setMinWidth(Double minWidth)
setMinWidth in interface HasSize<T extends WiresShapeViewExt>public T setMaxWidth(Double maxWidth)
setMaxWidth in interface HasSize<T extends WiresShapeViewExt>public T setMinHeight(Double minHeight)
setMinHeight in interface HasSize<T extends WiresShapeViewExt>public T setMaxHeight(Double maxHeight)
setMaxHeight in interface HasSize<T extends WiresShapeViewExt>protected com.ait.lienzo.client.core.shape.wires.WiresShapeControlHandleList createControlHandles(com.ait.lienzo.client.core.shape.wires.IControlHandle.ControlHandleType type,
com.ait.lienzo.client.core.shape.wires.ControlHandleList controls)
createControlHandles in class com.ait.lienzo.client.core.shape.wires.WiresShapepublic org.kie.workbench.common.stunner.client.lienzo.shape.view.wires.ext.DecoratedShapeView.DecoratedWiresShapeControlHandleList getControls()
getControls in class com.ait.lienzo.client.core.shape.wires.WiresShapepublic void destroy()
destroy in interface ShapeView<T extends WiresShapeViewExt>destroy in class WiresShapeViewExt<T extends WiresShapeViewExt>Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.