java.lang.Object
net.sourceforge.plantuml.ugraphic.comp.Slot
All Implemented Interfaces:
java.lang.Comparable<Slot>

public class Slot extends java.lang.Object implements java.lang.Comparable<Slot>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Slot(double start, double end)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(Slot other)
     
    boolean
    contains(double v)
     
    double
     
    double
     
    intersect(double otherStart, double otherEnd)
     
    boolean
    intersect(Slot other)
     
    merge(Slot other)
     
    double
     
    java.lang.String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Slot

      public Slot(double start, double end)
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getStart

      public double getStart()
    • getEnd

      public double getEnd()
    • size

      public double size()
    • contains

      public boolean contains(double v)
    • intersect

      public boolean intersect(Slot other)
    • merge

      public Slot merge(Slot other)
    • intersect

      public Slot intersect(double otherStart, double otherEnd)
    • compareTo

      public int compareTo(Slot other)
      Specified by:
      compareTo in interface java.lang.Comparable<Slot>