java.lang.Object
org.jfree.chart3d.marker.MarkerLine
A data object that represents a line within a
MarkerData
structure.- Since:
- 1.2
-
Constructor Summary
ConstructorsConstructorDescriptionMarkerLine
(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. -
Method Summary
Modifier and TypeMethodDescriptiondouble
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()
Returnstrue
if the line is pegged, andfalse
otherwise.void
setEndPoint
(Point2D pt) Sets the projected ending point for the line.void
setStartPoint
(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.
-
Constructor Details
-
MarkerLine
Creates a new marker line.- Parameters:
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.
-
MarkerLine
Creates a new marker line with vertex indices.- Parameters:
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.
-
-
Method Details
-
getPos
Returns the relative position of the line along the axis.- Returns:
- The relative position of the line along the axis.
-
isPegged
Returnstrue
if the line is pegged, andfalse
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).- Returns:
- A boolean.
-
getV0
Returns the index of the vertex for the start of the line.- Returns:
- The index.
-
setV0
Sets the index of the vertex for the start of the line.- Parameters:
v0
- the index.
-
getV1
Returns the index of the vertex for the end of the line.- Returns:
- The index.
-
setV1
Sets the index of the vertex for the end of the line.- Parameters:
v1
- the index.
-
setStartPoint
Sets the projected starting point for the line.- Parameters:
pt
- the projected point.
-
setEndPoint
Sets the projected ending point for the line.- Parameters:
pt
- the projected point.
-