Class LayoutPoint


  • public final class LayoutPoint
    extends Object
    Simple immutable object which represents a point (x, y, z).

    Module: layout-api

    To use this in your app, include the following dependency in your POM:

    <dependency>
        <groupId>org.cytoscape</groupId>
        <artifactId>layout-api</artifactId>
    </dependency>

    Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
    • Constructor Detail

      • LayoutPoint

        public LayoutPoint​(double x,
                           double y)
        2D Constructor, the Z coordinate is set to 0.
        Parameters:
        x - The X location of the point.
        y - The Y location of the point.
      • LayoutPoint

        public LayoutPoint​(double x,
                           double y,
                           double z)
        3D Constructor.
        Parameters:
        x - The X location of the point.
        y - The Y location of the point.
        z - The Z location of the point.
    • Method Detail

      • getX

        public double getX()
        Returns the X location of the point.
        Returns:
        the X location of the point.
      • getY

        public double getY()
        Returns the Y location of the point.
        Returns:
        the Y location of the point.
      • getZ

        public double getZ()
        Returns the Z location of the point.
        Returns:
        the Z location of the point.