Package com.inductiveautomation.rm.shape
Class RMShapeTable.Span
- java.lang.Object
-
- com.inductiveautomation.rm.shape.RMShapeTable.Span
-
- All Implemented Interfaces:
java.lang.Comparable
- Direct Known Subclasses:
RMShapeTable.Column,RMShapeTable.Row
- Enclosing class:
- RMShapeTable
public static class RMShapeTable.Span extends java.lang.Object implements java.lang.ComparableA class to represent an interval
-
-
Constructor Summary
Constructors Constructor Description Span(double aStart, double anEnd)Creates a new span.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object aSpan)Comparable implementation.booleancontains(double aValue)Returns whether given value is contained in the span (inclusive).doublegetLength()Returns the span length.booleanintersects(RMShapeTable.Span aSpan)Returns whether given span intersects this span.java.lang.StringtoString()Returns string representation of span.
-
-
-
Method Detail
-
getLength
public double getLength()
Returns the span length.
-
contains
public boolean contains(double aValue)
Returns whether given value is contained in the span (inclusive).
-
intersects
public boolean intersects(RMShapeTable.Span aSpan)
Returns whether given span intersects this span.
-
toString
public java.lang.String toString()
Returns string representation of span.- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object aSpan)
Comparable implementation.- Specified by:
compareToin interfacejava.lang.Comparable
-
-