public static class BorderLine.Segment extends Object
Modifier and Type | Method and Description |
---|---|
double |
getEnd()
Gets the end of this segment.
|
double |
getValueAt(double position)
Returns the segment's value at the given position.
|
BorderLine.Segment |
next()
Returns the next segment or
null if there is no such segment. |
BorderLine.Segment |
prev()
Returns the previous segment or
null if there is no such segment. |
String |
toString() |
public double getEnd()
public double getValueAt(double position)
Note: In case the position lies outside the segments range, the calculated value might be invalid. As the segment is not aware of any offsets the position also must not include any offsets.
position
- the position the value is retrieved for.public final BorderLine.Segment next()
null
if there is no such segment.public final BorderLine.Segment prev()
null
if there is no such segment.