Class LayoutPoint

java.lang.Object
org.cytoscape.view.layout.LayoutPoint

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

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.

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>
  • Constructor Summary

    Constructors
    Constructor
    Description
    LayoutPoint​(double x, double y)
    2D Constructor, the Z coordinate is set to 0.
    LayoutPoint​(double x, double y, double z)
    3D Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the X location of the point.
    double
    Returns the Y location of the point.
    double
    Returns the Z location of the point.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object