Class TreeLayoutNode

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, Serializable, Cloneable
    Direct Known Subclasses:
    CableNode, FiberNode

    public class TreeLayoutNode
    extends MxBusinessObjectNode
    A node that can be used in a tree layout
    Author:
    Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.neotropic.flow.component.mxgraph.MxGraphCell

        PROPERTY_ANIMATE_ON_SELECT, PROPERTY_CELL_LAYER, PROPERTY_CELL_PARENT, PROPERTY_CURVED, PROPERTY_DASHED, PROPERTY_EDGE, PROPERTY_FONT_COLOR, PROPERTY_HEIGHT, PROPERTY_IMAGE, PROPERTY_LABEL, PROPERTY_LABEL_BACKGROUND_COLOR, PROPERTY_LAYER, PROPERTY_PERIMETER_SPACING, PROPERTY_POINTS, PROPERTY_RAW_STYLE, PROPERTY_SELECTABLE, PROPERTY_SOURCE, PROPERTY_SOURCE_LABEL, PROPERTY_STROKE_COLOR, PROPERTY_STROKE_WIDTH, PROPERTY_STYLE_NAME, PROPERTY_TARGET, PROPERTY_TARGET_LABEL, PROPERTY_USE_PORT_TO_CONNECT, PROPERTY_UUID, PROPERTY_VERTEX, PROPERTY_WIDTH, PROPERTY_X, PROPERTY_Y
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void collapse​(boolean fromClient)  
      void expand​(boolean fromClient)  
      com.neotropic.flow.component.mxgraph.MxGraphNode getNode()  
      List<TreeLayoutNode> getNodeChildren()  
      double getNodeHeight()  
      protected int getNodeLevel()  
      double getNodeWidth()  
      double getNodeX()  
      double getNodeY()  
      TreeLayoutNode getParentNode()  
      protected TreeLayout getTreeLayout()  
      boolean isLeaf()  
      boolean isNodeExpanded()  
      boolean isNodeVisible()  
      void setCellVisible​(boolean cellVisible)  
      void setIsLeaf​(boolean isLeaf)  
      void setNodeChildren​(List<TreeLayoutNode> nodeChildren)  
      void setNodeExpanded​(boolean expanded)  
      void setNodeHeight​(double height)  
      protected void setNodeLevel​(int level)  
      void setNodeVisible​(boolean isNodeVisible)  
      void setNodeWidth​(double width)  
      void setNodeX​(double x)  
      void setNodeY​(double y)  
      void setParentNode​(TreeLayoutNode parentNode)  
      protected void setTreeLayout​(TreeLayout treeLayout)  
      • Methods inherited from class com.neotropic.flow.component.mxgraph.MxGraphNode

        clone
      • Methods inherited from class com.neotropic.flow.component.mxgraph.MxGraphCell

        addCell, addCellAddedListener, addCellPositionChangedListener, addClickCellListener, addClickOverlayButtonListener, addOverlayButton, addOverlayButton, addOverlayButton, addPoint, addRawStyleToCurrent, addRightClickCellListener, equals, getCellLayer, getCellParent, getCellVisible, getCollapsed, getConnectable, getFillColor, getFontColor, getFontSize, getHeight, getImage, getIsEdge, getIsLayer, getIsVertex, getLabel, getLabelBackgroundColor, getPerimeterSpacing, getPointList, getPoints, getProperties, getRawStyle, getRawStyleAsMap, getShape, getSource, getSourceLabel, getStrokeColor, getStrokeWidth, getStyleName, getTarget, getTargetLabel, getTooltip, getUuid, getWidth, getX, getY, hashCode, isCurved, isDashed, isMovable, orderCell, overrideStyle, removeOverlayButton, removeOverlayButtons, selectCell, setAnimateOnSelect, setAutosize, setCellLayer, setCellParent, setChildrenCellPosition, setCollapsed, setConnectable, setEdgeStyle, setFillColor, setFontColor, setFontSize, setGeometry, setGeometry, setGeometry, setGeometry, setHeight, setImage, setIsConstituent, setIsCurved, setIsDashed, setIsEdge, setIsEditable, setIsLayer, setIsMovable, setIsResizable, setIsSelectable, setIsVertex, setLabel, setLabelBackgroundColor, setLabelPosition, setMovable, setPerimeterSpacing, setPoints, setPoints, setProperties, setRawStyle, setRawStyle, setRotation, setSelfPosition, setShape, setSource, setSourceLabel, setStrokeColor, setStrokeWidth, setStyle, setStyleName, setTarget, setTargetLabel, setTooltip, setUsePortToConnect, setUuid, setVerticalAlign, setVerticalLabelPosition, setWidth, setX, setY, toggleCell, toggleVisibility, updateCellSize, updateCellSize, updatePosition
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasComponents

        add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasEnabled

        isEnabled, setEnabled
    • Method Detail

      • getNodeWidth

        public double getNodeWidth()
      • getNodeX

        public double getNodeX()
      • setNodeX

        public void setNodeX​(double x)
      • getNodeY

        public double getNodeY()
      • setNodeY

        public void setNodeY​(double y)
      • setNodeWidth

        public void setNodeWidth​(double width)
      • getNodeHeight

        public double getNodeHeight()
      • setNodeHeight

        public void setNodeHeight​(double height)
      • getNode

        public com.neotropic.flow.component.mxgraph.MxGraphNode getNode()
      • isLeaf

        public boolean isLeaf()
      • setIsLeaf

        public void setIsLeaf​(boolean isLeaf)
      • getNodeLevel

        protected int getNodeLevel()
      • setNodeLevel

        protected void setNodeLevel​(int level)
      • setParentNode

        public void setParentNode​(TreeLayoutNode parentNode)
      • isNodeExpanded

        public boolean isNodeExpanded()
      • setNodeExpanded

        public void setNodeExpanded​(boolean expanded)
      • isNodeVisible

        public boolean isNodeVisible()
      • setNodeVisible

        public void setNodeVisible​(boolean isNodeVisible)
      • getTreeLayout

        protected TreeLayout getTreeLayout()
      • setTreeLayout

        protected void setTreeLayout​(TreeLayout treeLayout)
      • setCellVisible

        public void setCellVisible​(boolean cellVisible)
        Overrides:
        setCellVisible in class com.neotropic.flow.component.mxgraph.MxGraphCell
      • expand

        public void expand​(boolean fromClient)
      • collapse

        public void collapse​(boolean fromClient)