Interface NodeDraft

  • All Superinterfaces:
    ElementDraft

    public interface NodeDraft
    extends ElementDraft
    Draft node, hosted by import containers to represent nodes found when importing. Processors decide if this node will finally be appended to the graph or not.
    Author:
    Mathieu Bastian
    See Also:
    ContainerLoader
    • Method Detail

      • getX

        float getX()
        Returns this node's X position.
        Returns:
        x position
      • setX

        void setX​(float x)
        Sets this node's X position.
        Parameters:
        x - x position
      • getY

        float getY()
        Returns this node's Y position.
        Returns:
        y position
      • setY

        void setY​(float y)
        Sets this node's Y position.
        Parameters:
        y - y position
      • getZ

        float getZ()
        Returns this node's Z position.
        Returns:
        z position
      • setZ

        void setZ​(float z)
        Sets this node's Z position.
        Parameters:
        z - z position
      • getSize

        float getSize()
        Returns this node's size.
        Returns:
        size
      • setSize

        void setSize​(float size)
        Sets this node's size.
        Parameters:
        size - size
      • isFixed

        boolean isFixed()
        Returns whether this node's position is fixed.

        Default is false.

        Returns:
        true if fixed, false otherwise
      • setFixed

        void setFixed​(boolean fixed)
        Sets whether this node's position is fixed.

        This flag is used during layout to settle some specific nodes. If set at true, the layout algorithms won't modify the node's position.

        Parameters:
        fixed - true if fixed, false otherwise
      • isCreatedAuto

        boolean isCreatedAuto()
        Returns true if this node has been automatically created.
        Returns:
        true if automatically created, false otherwise