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

public static class RMShapeTable.Span extends Object implements Comparable
A class to represent an interval
  • 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

      public boolean intersects(RMShapeTable.Span aSpan)
      Returns whether given span intersects this span.
    • toString

      public String toString()
      Returns string representation of span.
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Object aSpan)
      Comparable implementation.
      Specified by:
      compareTo in interface Comparable