Package org.cytoscape.view.layout
Class LayoutPoint
java.lang.Object
org.cytoscape.view.layout.LayoutPoint
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
ConstructorDescriptionLayoutPoint
(double x, double y) 2D Constructor, the Z coordinate is set to 0.LayoutPoint
(double x, double y, double z) 3D Constructor. -
Method Summary
-
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
-