public abstract class WiresBaseTreeNode extends WiresBaseShape implements RequiresShapesManager, RequiresLayoutManager
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 LayoutManager |
layoutManager |
protected ShapesManager |
shapesManager |
controls, id, isControlsVisible, selectionManager
Constructor and Description |
---|
WiresBaseTreeNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptChildNode(WiresBaseTreeNode child)
TreeNodes can decide to accept child TreeNodes when being dragged from the Palette to a prospective parent
|
void |
addChildNode(WiresBaseTreeNode child)
Add a TreeNode as a child to this TreeNode.
|
void |
collapse(Command callback)
Collapse this TreeNode and all descendants.
|
boolean |
contains(double cx,
double cy) |
void |
destroy() |
void |
expand(Command callback)
Expand this TreeNode and all descendants.
|
List<WiresBaseTreeNode> |
getChildren() |
protected List<WiresBaseTreeNode> |
getDescendants(WiresBaseTreeNode node) |
abstract double |
getHeight() |
WiresBaseTreeNode |
getParentNode() |
abstract double |
getWidth() |
boolean |
hasChildren() |
boolean |
hasCollapsedChildren() |
void |
onCollapseEnd()
Called when the TreeNode has been collapsed.
|
void |
onCollapseProgress(double pct)
Called while the TreeNode is being collapsed.
|
void |
onCollapseStart()
Called when the TreeNode is about to be collapsed.
|
void |
onExpandEnd()
Called when the TreeNode has been expanded.
|
void |
onExpandProgress(double pct)
Called while the TreeNode is being expanded.
|
void |
onExpandStart()
Called when the TreeNode is about to be expanded.
|
void |
removeChildNode(WiresBaseTreeNode child)
Remove a child TreeNode from this TreeNode.
|
void |
setLayoutManager(LayoutManager layoutManager) |
void |
setParentNode(WiresBaseTreeNode parent) |
void |
setShapesManager(ShapesManager shapesManager) |
com.ait.lienzo.client.core.shape.Group |
setX(double x) |
com.ait.lienzo.client.core.shape.Group |
setY(double y) |
addControl, getControlTarget, getId, hideControls, isControlsVisible, removeControl, setControls, setSelectionManager, showControls
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
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 ShapesManager shapesManager
protected LayoutManager layoutManager
public void setShapesManager(ShapesManager shapesManager)
setShapesManager
in interface RequiresShapesManager
public void setLayoutManager(LayoutManager layoutManager)
setLayoutManager
in interface RequiresLayoutManager
public boolean contains(double cx, double cy)
contains
in interface WiresShape
public void destroy()
destroy
in interface com.ait.lienzo.client.core.shape.IDestroyable
destroy
in interface WiresShape
destroy
in class WiresBaseShape
public WiresBaseTreeNode getParentNode()
public void setParentNode(WiresBaseTreeNode parent)
public boolean acceptChildNode(WiresBaseTreeNode child)
child
- TreeNode that will be added to this TreeNode as a childpublic void addChildNode(WiresBaseTreeNode child)
child
- public void removeChildNode(WiresBaseTreeNode child)
child
- public List<WiresBaseTreeNode> getChildren()
public abstract double getWidth()
public abstract double getHeight()
public void collapse(Command callback)
callback
- The callback is invoked when the animation completes.public void onCollapseStart()
public void onCollapseProgress(double pct)
pct
- 0.0 to 1.0 where 1.0 is collapsedpublic void onCollapseEnd()
public void expand(Command callback)
callback
- The callback is invoked when the animation completes.public void onExpandStart()
public void onExpandProgress(double pct)
pct
- 0.0 to 1.0 where 1.0 is expandedpublic void onExpandEnd()
protected List<WiresBaseTreeNode> getDescendants(WiresBaseTreeNode node)
public boolean hasChildren()
public boolean hasCollapsedChildren()
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 WiresBaseShape
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 WiresBaseShape
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.