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| Modifier and Type | Field and Description |
|---|---|
protected double |
height |
protected com.ait.lienzo.client.core.shape.Group |
transformableContainer |
protected double |
width |
UUID_PREFIX| Constructor and Description |
|---|
DecoratedShapeView(ViewEventType[] supportedEventTypes,
com.ait.lienzo.client.core.shape.wires.LayoutContainer layoutContainer,
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) |
com.ait.lienzo.client.core.shape.Shape<?> |
getAttachableShape() |
com.ait.lienzo.client.core.shape.Shape<?> |
getShape() |
protected void |
initialize(ViewEventType[] supportedEventTypes) |
T |
setSize(double width,
double height) |
addHandler, areControlsVisible, destroy, disableHandlers, enableHandlers, hideControlPoints, initializeHandlerManager, initializeTextView, moveTitleToTop, removeHandler, setFillGradient, setTitle, setTitleAlpha, setTitleFontFamily, setTitleFontSize, setTitlePosition, setTitleRotation, setTitleStrokeColor, setTitleStrokeWidth, showControlPoints, supports, updateFillGradientgetAlpha, getDecorators, getDragEnforcer, getFillAlpha, getFillColor, getShapeAbsoluteLocation, getShapeX, getShapeY, getStrokeAlpha, getStrokeColor, getStrokeWidth, getUUID, moveDown, moveToBottom, moveToTop, moveUp, setAlpha, setDragBounds, setFillAlpha, setFillColor, setShapeX, setShapeY, setStrokeAlpha, setStrokeColor, setStrokeWidth, setUUID, unsetDragBoundsaddChild, addChild, addWiresResizeEndHandler, addWiresResizeStartHandler, addWiresResizeStepHandler, addWiresShapeHandler, getControls, getMagnets, getPath, getX, getY, isResizable, loadControls, preDestroy, refresh, removeChild, removeFromParent, setDraggable, setMagnets, setResizable, setX, setY, uuidadd, addWiresDragEndHandler, addWiresDragMoveHandler, addWiresDragStartHandler, addWiresMoveHandler, getChildShapes, getContainer, getContainmentAcceptor, getDockedTo, getDockingAcceptor, getGroup, getHandlerManager, getLayoutHandler, getParent, remove, setContainer, setContainmentAcceptor, setDockedTo, setDockingAcceptor, setLayoutHandler, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveFromParentprotected final com.ait.lienzo.client.core.shape.Group transformableContainer
protected double width
protected double height
public DecoratedShapeView(ViewEventType[] supportedEventTypes, com.ait.lienzo.client.core.shape.wires.LayoutContainer layoutContainer, 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>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.WiresShapeprotected void initialize(ViewEventType[] supportedEventTypes)
initialize in class WiresShapeViewExt<T extends WiresShapeViewExt>Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.