public abstract class WiresBaseShape extends com.ait.lienzo.client.core.shape.Group implements WiresShape, RequiresSelectionManager
com.ait.lienzo.client.core.shape.Group.GroupFactory
com.ait.lienzo.client.core.shape.GroupOf.GroupOfFactory<T extends com.ait.lienzo.client.core.shape.IPrimitive<?>,C extends com.ait.lienzo.client.core.shape.GroupOf<T,C>>
Modifier and Type | Field and Description |
---|---|
protected List<com.ait.lienzo.client.core.shape.Group> |
controls |
protected String |
id |
protected boolean |
isControlsVisible |
protected SelectionManager |
selectionManager |
Constructor and Description |
---|
WiresBaseShape() |
Modifier and Type | Method and Description |
---|---|
void |
addControl(com.ait.lienzo.client.core.shape.Group ctrlToAdd)
Add a Control to the WiresShape
|
void |
destroy()
Destroy the shape and any related components
|
protected com.ait.lienzo.client.core.types.Point2D |
getControlTarget(com.ait.lienzo.client.core.shape.Group ctrl)
Returns a Point (relative to the WiresShape) where a Control should be placed when Controls
are shown.
|
String |
getId()
Get UUID for Shape
|
void |
hideControls()
Hide Controls related to this WiresShape
|
boolean |
isControlsVisible()
Are the Controls associated with this WireShape visible
|
void |
removeControl(com.ait.lienzo.client.core.shape.Group ctrlToRemove)
Remove a Control from the WiresShape
|
void |
setControls(List<com.ait.lienzo.client.core.shape.Group> newControls)
Set the Controls for the WiresShape
|
void |
setSelectionManager(SelectionManager manager) |
com.ait.lienzo.client.core.shape.Group |
setX(double x) |
com.ait.lienzo.client.core.shape.Group |
setY(double y) |
void |
showControls()
Show Controls related to this WiresShape
|
asGroup, getDefaultStorageEngine
add, add, asContainer, asGroupOf, asPrimitive, attachToLayerColorMap, batch, destroy, detachFromLayerColorMap, draw, find, getAlpha, getBoundingBoxAttributes, getControlHandleFactory, getControlHandles, getControlHandles, getDragBounds, getDragConstraint, getDragConstraints, getDragMode, getEventPropagationMode, getFactory, getFillAlpha, getGroupType, getLocation, getOffset, getRotation, getRotationDegrees, getScale, getShear, getStrokeAlpha, getTransformingAttributes, getX, getY, isDraggable, isDragging, isEditable, moveDown, moveToBottom, moveToTop, moveUp, refresh, remove, removeAll, removeFromParent, setAlpha, setControlHandleFactory, setDragBounds, setDragConstraint, setDragConstraints, setDraggable, setDragging, setDragMode, setEditable, setEventPropagationMode, setFillAlpha, setGroupType, setLocation, setOffset, setOffset, setOffset, setRotation, setRotationDegrees, setScale, setScale, setScale, setShear, setShear, setStrokeAlpha, toJSONObject
asContainerNode, copy, drawWithoutTransforms, find, findByID, getBoundingBox, getChildNodes, getChildNodes, getPathClipper, getStorageBounds, getStorageEngine, length, moveDown, moveToBottom, moveToTop, moveUp, setPathClipper, setStorageBounds, setStorageEngine
addAttributesChangedHandler, addEnsureHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, addParentsLocations, animate, animate, asAttributes, asAttributes, asGuide, asLayer, asList, asMultiPointShape, asNode, asScene, asShape, asViewport, cancelAttributesChangedBatcher, cast, copyUnchecked, doAnimating, drawWithTransforms, drawWithTransforms, equals, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingPoints, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getLayer, getMetaData, getName, getNodeType, getOverLayer, getParent, getPossibleNodeTransform, getRequiredAttributes, getScene, getScratchPad, getUserData, getViewport, hashCode, hasMetaData, isAnimating, isEventHandled, isEventHandledGlobally, isListening, isVisible, onWire, setAttributesChangedBatcher, setID, setListening, setName, setNodeType, setParent, setUserData, setVisible, toJSONString, toString, unAnimating, uuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, setSelected
addAttributesChangedHandler, addNodeDragEndHandler, addNodeDragMoveHandler, addNodeDragStartHandler, addNodeGestureChangeHandler, addNodeGestureEndHandler, addNodeGestureStartHandler, addNodeMouseClickHandler, addNodeMouseDoubleClickHandler, addNodeMouseDownHandler, addNodeMouseEnterHandler, addNodeMouseExitHandler, addNodeMouseMoveHandler, addNodeMouseOutHandler, addNodeMouseOverHandler, addNodeMouseUpHandler, addNodeMouseWheelHandler, addNodeTouchCancelHandler, addNodeTouchEndHandler, addNodeTouchMoveHandler, addNodeTouchStartHandler, animate, animate, asContainerNode, asGuide, asLayer, asMultiPointShape, asNode, asScene, asShape, asViewport, cancelAttributesChangedBatcher, copy, drawWithTransforms, fireEvent, getAbsoluteLocation, getAbsoluteTransform, getAttributes, getAttributeSheet, getBoundingBox, getBoundingPoints, getComputedBoundingPoints, getComputedLocation, getID, getLayer, getMetaData, getName, getNodeType, getOverLayer, getParent, getRequiredAttributes, getScene, getScratchPad, getUserData, getViewport, hasMetaData, isEventHandled, isListening, isVisible, setAttributesChangedBatcher, setID, setListening, setName, setUserData, setVisible, uuid
protected String id
protected SelectionManager selectionManager
protected List<com.ait.lienzo.client.core.shape.Group> controls
protected boolean isControlsVisible
public String getId()
WiresShape
getId
in interface WiresShape
public void setSelectionManager(SelectionManager manager)
setSelectionManager
in interface RequiresSelectionManager
public void showControls()
WiresShape
showControls
in interface WiresShape
public void hideControls()
WiresShape
hideControls
in interface WiresShape
public void addControl(com.ait.lienzo.client.core.shape.Group ctrlToAdd)
WiresShape
addControl
in interface WiresShape
public void removeControl(com.ait.lienzo.client.core.shape.Group ctrlToRemove)
WiresShape
removeControl
in interface WiresShape
public void setControls(List<com.ait.lienzo.client.core.shape.Group> newControls)
WiresShape
setControls
in interface WiresShape
public boolean isControlsVisible()
WiresShape
isControlsVisible
in interface WiresShape
protected com.ait.lienzo.client.core.types.Point2D getControlTarget(com.ait.lienzo.client.core.shape.Group ctrl)
ctrl
- The Control to positionpublic void destroy()
WiresShape
destroy
in interface com.ait.lienzo.client.core.shape.IDestroyable
destroy
in interface WiresShape
destroy
in class com.ait.lienzo.client.core.shape.GroupOf<com.ait.lienzo.client.core.shape.IPrimitive<?>,com.ait.lienzo.client.core.shape.Group>
public com.ait.lienzo.client.core.shape.Group setX(double x)
setX
in interface com.ait.lienzo.client.core.shape.IPrimitive<com.ait.lienzo.client.core.shape.Group>
setX
in class com.ait.lienzo.client.core.shape.GroupOf<com.ait.lienzo.client.core.shape.IPrimitive<?>,com.ait.lienzo.client.core.shape.Group>
public com.ait.lienzo.client.core.shape.Group setY(double y)
setY
in interface com.ait.lienzo.client.core.shape.IPrimitive<com.ait.lienzo.client.core.shape.Group>
setY
in class com.ait.lienzo.client.core.shape.GroupOf<com.ait.lienzo.client.core.shape.IPrimitive<?>,com.ait.lienzo.client.core.shape.Group>
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.