Search this API

y.geom
Class BorderLine.Segment

java.lang.Object
  extended by y.geom.BorderLine.Segment
Enclosing class:
BorderLine

public static class BorderLine.Segment
extends java.lang.Object

The handle of a segment of a borderline.

 

Method Summary
 double getEnd()
          Returns 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getValueAt

public double getValueAt(double position)
Returns the segment's value at the given 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.

Parameters:
position - the position the value is retrieved for.
Returns:
the segment's value at the given position.

getEnd

public double getEnd()
Returns the end of this segment.

Returns:
the end of this segment.

prev

public final BorderLine.Segment prev()
Returns the previous segment or null if there is no such segment.


next

public final BorderLine.Segment next()
Returns the next segment or null if there is no such segment.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

© Copyright 2000-2021,
yWorks GmbH.
All rights reserved.