Package com.inductiveautomation.rm.shape
Class RMShapeTable.Span
java.lang.Object
com.inductiveautomation.rm.shape.RMShapeTable.Span
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
RMShapeTable.Column
,RMShapeTable.Row
- Enclosing class:
- RMShapeTable
A class to represent an interval
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Comparable implementation.boolean
contains
(double aValue) Returns whether given value is contained in the span (inclusive).double
Returns the span length.boolean
intersects
(RMShapeTable.Span aSpan) Returns whether given span intersects this span.toString()
Returns string representation of span.
-
Constructor Details
-
Span
public Span(double aStart, double anEnd) Creates a new span.
-
-
Method Details
-
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
Returns whether given span intersects this span. -
toString
Returns string representation of span. -
compareTo
Comparable implementation.- Specified by:
compareTo
in interfaceComparable
-