public static class RMShapeTable.Span
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
RMShapeTable.Span(float aStart,
float anEnd)
Creates a new span.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object aSpan)
Comparable implementation.
|
boolean |
contains(float aValue)
Returns whether given value is contained in the span (inclusive).
|
float |
getLength()
Returns the span length.
|
boolean |
intersects(RMShapeTable.Span aSpan)
Returns whether given span intersects this span.
|
java.lang.String |
toString()
Returns string representation of span.
|
public RMShapeTable.Span(float aStart, float anEnd)
public float getLength()
public boolean contains(float aValue)
public boolean intersects(RMShapeTable.Span aSpan)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object aSpan)
compareTo
in interface java.lang.Comparable