Interface NodeProperties

    • Method Detail

      • x

        float x()
        Returns the x position.
        Returns:
        the x position
      • y

        float y()
        Returns the y position.
        Returns:
        the y position
      • z

        float z()
        Returns the z position.
        Returns:
        the z position
      • size

        float size()
        Returns the size.
        Returns:
        the size
      • isFixed

        boolean isFixed()
        Returns true of this node is fixed (can't be moved).
        Returns:
        true if fixed, false otherwise
      • getLayoutData

        <T extends LayoutData> T getLayoutData()
        Returns the layout-specific data, if any.
        Type Parameters:
        T - the class that implements the LayoutData.
        Returns:
        the layout data
      • setX

        void setX​(float x)
        Sets the x position.
        Parameters:
        x - the x position
      • setY

        void setY​(float y)
        Sets the y position.
        Parameters:
        y - the y position
      • setZ

        void setZ​(float z)
        Sets the z position.
        Parameters:
        z - the z position
      • setSize

        void setSize​(float size)
        Sets the size.
        Parameters:
        size - the size
      • setPosition

        void setPosition​(float x,
                         float y)
        Sets the x and y position.
        Parameters:
        x - the x position
        y - the y position
      • setPosition

        void setPosition​(float x,
                         float y,
                         float z)
        Sets the x, y and z position.
        Parameters:
        x - the x position
        y - the y position
        z - the z position
      • setFixed

        void setFixed​(boolean fixed)
        Sets whether to fix this node (can't move its position)
        Parameters:
        fixed - true to fix the node, false to unfix
      • setLayoutData

        void setLayoutData​(LayoutData layoutData)
        Sets the layout data.
        Parameters:
        layoutData - the layout data