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 SummaryConstructors Constructor Description Span(double aStart, double anEnd)Creates a new span.
 - 
Method SummaryAll 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- 
getLengthpublic double getLength() Returns the span length.
 - 
containspublic boolean contains(double aValue) Returns whether given value is contained in the span (inclusive).
 - 
intersectspublic boolean intersects(RMShapeTable.Span aSpan) Returns whether given span intersects this span.
 - 
toStringpublic java.lang.String toString() Returns string representation of span.- Overrides:
- toStringin class- java.lang.Object
 
 - 
compareTopublic int compareTo(java.lang.Object aSpan) Comparable implementation.- Specified by:
- compareToin interface- java.lang.Comparable
 
 
- 
 
-