Class DisplayIndependentPoint
java.lang.Object
org.eclipse.zest.layouts.dataStructures.DisplayIndependentPoint
- Direct Known Subclasses:
BendPoint
This is a point that isn't dependent on awt, swt, or any other library,
except layout.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert
(DisplayIndependentRectangle currentBounds, DisplayIndependentRectangle targetBounds) Create a new point based on the current point but in a new coordinate systemConverts this point based on the current x, y values from a percentage of the specified coordinate systemConverts this point based on the current x, y values to a percentage of the specified coordinate systemboolean
toString()
-
Field Details
-
x
public double x -
y
public double y
-
-
Constructor Details
-
DisplayIndependentPoint
public DisplayIndependentPoint(double x, double y) -
DisplayIndependentPoint
-
-
Method Details
-
equals
-
toString
-
convert
public DisplayIndependentPoint convert(DisplayIndependentRectangle currentBounds, DisplayIndependentRectangle targetBounds) Create a new point based on the current point but in a new coordinate system- Parameters:
currentBounds
-targetBounds
-
-
convertToPercent
Converts this point based on the current x, y values to a percentage of the specified coordinate system- Parameters:
bounds
-
-
convertFromPercent
Converts this point based on the current x, y values from a percentage of the specified coordinate system- Parameters:
bounds
-
-