java.lang.Object
net.sourceforge.plantuml.sequencediagram.graphic.Segment

public class Segment extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Segment(double pos1, double pos2)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    contains(double y)
     
    final boolean
     
    java.util.Collection<Segment>
    cutSegmentIfNeed(java.util.Collection<Segment> allDelays)
     
    boolean
    equals(java.lang.Object obj)
     
    final double
     
    final double
     
    final double
     
    int
     
    merge(Segment this2)
     
    java.lang.String
     

    Methods inherited from class java.lang.Object

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

    • Segment

      public Segment(double pos1, double pos2)
  • Method Details

    • equals

      public boolean equals(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • contains

      public final boolean contains(double y)
    • contains

      public final boolean contains(Segment other)
    • toString

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

      public final double getLength()
    • getPos1

      public final double getPos1()
    • getPos2

      public final double getPos2()
    • merge

      public Segment merge(Segment this2)
    • cutSegmentIfNeed

      public java.util.Collection<Segment> cutSegmentIfNeed(java.util.Collection<Segment> allDelays)