Class VNode

  • All Implemented Interfaces:
    com.mxgraph.model.mxICell, java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    VGoal, VPlan

    public abstract class VNode
    extends VElement
    Visual representation of a node.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.mxgraph.model.mxCell

        children, collapsed, connectable, edge, edges, geometry, id, parent, source, style, target, value, vertex, visible
    • Constructor Summary

      Constructors 
      Constructor Description
      VNode​(java.lang.Object value, com.mxgraph.model.mxGeometry geometry, java.lang.String style)
      Creates a new visual representation of a node.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      IElement getElement()
      Returns the business model element.
      abstract INode getNode()
      Returns the business model node.
      double getX()
      Gets the x.
      double getY()
      Gets the y.
      void setX​(double x)
      Sets the x.
      void setY​(double y)
      Sets the y.
      • Methods inherited from class com.mxgraph.model.mxCell

        clone, cloneValue, getAttribute, getAttribute, getChildAt, getChildCount, getEdgeAt, getEdgeCount, getEdgeIndex, getGeometry, getId, getIndex, getParent, getSource, getStyle, getTarget, getTerminal, getValue, insert, insert, insertEdge, isCollapsed, isConnectable, isEdge, isVertex, isVisible, remove, remove, removeEdge, removeFromParent, removeFromTerminal, setAttribute, setCollapsed, setConnectable, setEdge, setGeometry, setId, setParent, setSource, setStyle, setTarget, setTerminal, setValue, setVertex, setVisible
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VNode

        public VNode​(java.lang.Object value,
                     com.mxgraph.model.mxGeometry geometry,
                     java.lang.String style)
        Creates a new visual representation of a node.
        Parameters:
        gpmnnode - The underlying node this visual represents.
        geometry - Geometry defining position and size.
    • Method Detail

      • getX

        public double getX()
        Gets the x.
        Returns:
        The x.
      • setX

        public void setX​(double x)
        Sets the x.
        Parameters:
        x - The x.
      • getY

        public double getY()
        Gets the y.
        Returns:
        The y.
      • setY

        public void setY​(double y)
        Sets the y.
        Parameters:
        y - The y.
      • getElement

        public IElement getElement()
        Returns the business model element.
        Specified by:
        getElement in class VElement
        Returns:
        The business model element.
      • getNode

        public abstract INode getNode()
        Returns the business model node.
        Returns:
        The node.