private class TreeLayout.NormalizedPosition
extends java.awt.geom.Point2D
TreeLayout.NormalizedPosition
will normalize the position (given relative to
the root position), taking the current bounds into account. This way the
left most node bounds will start at x = 0, the top most node bounds at y
= 0.
Modifier and Type | Field and Description |
---|---|
private double |
x_relativeToRoot |
private double |
y_relativeToRoot |
Constructor and Description |
---|
NormalizedPosition(double x_relativeToRoot,
double y_relativeToRoot) |
Modifier and Type | Method and Description |
---|---|
double |
getX() |
double |
getY() |
void |
setLocation(double x_relativeToRoot,
double y_relativeToRoot) |
private double x_relativeToRoot
private double y_relativeToRoot
public NormalizedPosition(double x_relativeToRoot, double y_relativeToRoot)
public double getX()
getX
in class java.awt.geom.Point2D
public double getY()
getY
in class java.awt.geom.Point2D
public void setLocation(double x_relativeToRoot, double y_relativeToRoot)
setLocation
in class java.awt.geom.Point2D