public class MarkerData extends java.lang.Object
| Constructor and Description |
|---|
MarkerData(MarkerData source,
int v0,
int v1)
Creates a new instance based on an existing source that has type
MarkerDataType.VALUE. |
MarkerData(MarkerData source,
int v0,
int v1,
int v2,
int v3)
Creates a new instance based on an existing source that has type
MarkerDataType.Range. |
MarkerData(java.lang.String key,
double pos)
Creates marker data for the case where there is a single line
(for example, the
NumberMarker class). |
MarkerData(java.lang.String key,
double startPos,
boolean startPegged,
double endPos,
boolean endPegged)
Creates marker data for the case where there are two lines.
|
| Modifier and Type | Method and Description |
|---|---|
MarkerLine |
getEndLine()
A convenience method that returns the end line data for a range marker.
|
Anchor2D |
getLabelAnchor()
Returns the label anchor.
|
java.awt.geom.Point2D |
getLabelPoint()
Returns the label projection point.
|
int |
getLabelVertexIndex()
Returns the label vertex index.
|
java.lang.String |
getMarkerKey()
Returns the marker key (allows retrieval of the original marker object
when required).
|
MarkerLine |
getStartLine()
A convenience method that returns the start line data for a range marker.
|
MarkerDataType |
getType()
Returns the type of marker data (value or range).
|
MarkerLine |
getValueLine()
A convenience method that returns the value line data for a value marker.
|
void |
setLabelAnchor(Anchor2D anchor)
Sets the label anchor.
|
void |
setLabelVertexIndex(int labelVertexIndex)
Sets the label vertex index.
|
java.lang.String |
toString() |
void |
updateProjection(java.awt.geom.Point2D[] pts)
Updates the projected points for this marker.
|
public MarkerData(java.lang.String key, double pos)
NumberMarker class).key - the key for the marker (null not permitted).pos - the relative position along the axis (in the range 0.0 to
1.0).public MarkerData(java.lang.String key, double startPos, boolean startPegged, double endPos, boolean endPegged)
RangeMarker class).key - the key (null not permitted).startPos - the relative start position.startPegged - is the start position pegged?endPos - the relative end position.endPegged - is the end position pegged?public MarkerData(MarkerData source, int v0, int v1)
MarkerDataType.VALUE.source - the source (null not permitted).v0 - the vertex index for the start of the line.v1 - the vertex index for the end of the line.public MarkerData(MarkerData source, int v0, int v1, int v2, int v3)
MarkerDataType.Range.source - the source (null not permitted).v0 - the vertex index for the start of the first line.v1 - the vertex index for the end of the first line.v2 - the vertex index for the start of the second line.v3 - the vertex index for the end of the second line.public java.lang.String getMarkerKey()
null).public MarkerDataType getType()
null).public MarkerLine getValueLine()
null).public MarkerLine getStartLine()
null).public MarkerLine getEndLine()
null).public Anchor2D getLabelAnchor()
public void setLabelAnchor(Anchor2D anchor)
anchor - the label anchor.public int getLabelVertexIndex()
public void setLabelVertexIndex(int labelVertexIndex)
labelVertexIndex - the label vertex index.public java.awt.geom.Point2D getLabelPoint()
null).public void updateProjection(java.awt.geom.Point2D[] pts)
pts - the projected points for the world.public java.lang.String toString()
toString in class java.lang.Object