public class MarkerLine extends java.lang.Object
MarkerData structure.| Constructor and Description |
|---|
MarkerLine(double pos,
boolean pegged)
Creates a new marker line.
|
MarkerLine(double pos,
boolean pegged,
int v0,
int v1)
Creates a new marker line with vertex indices.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getPos()
Returns the relative position of the line along the axis.
|
int |
getV0()
Returns the index of the vertex for the start of the line.
|
int |
getV1()
Returns the index of the vertex for the end of the line.
|
boolean |
isPegged()
Returns
true if the line is pegged, and false
otherwise. |
void |
setEndPoint(java.awt.geom.Point2D pt)
Sets the projected ending point for the line.
|
void |
setStartPoint(java.awt.geom.Point2D pt)
Sets the projected starting point for the line.
|
void |
setV0(int v0)
Sets the index of the vertex for the start of the line.
|
void |
setV1(int v1)
Sets the index of the vertex for the end of the line.
|
public MarkerLine(double pos, boolean pegged)
pos - the relative position (in the range 0.0 to 1.0).pegged - a flag indicating whether or not the line has been
pegged to the end of the range.public MarkerLine(double pos, boolean pegged, int v0, int v1)
pos - the relative position (in the range 0.0 to 1.0).pegged - a flag indicating whether or not the line has been
pegged to the end of the range.v0 - the index of the first vertex.v1 - the index of the second vertex.public double getPos()
public boolean isPegged()
true if the line is pegged, and false
otherwise. This is used for range markers to indicate that the value
represented by the line falls outside the current axis range, so the
line has been moved to the nearest axis boundary ("pegged" to the axis
range).public int getV0()
public void setV0(int v0)
v0 - the index.public int getV1()
public void setV1(int v1)
v1 - the index.public void setStartPoint(java.awt.geom.Point2D pt)
pt - the projected point.public void setEndPoint(java.awt.geom.Point2D pt)
pt - the projected point.