Class Segment
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(double y)booleancontains(Segment other)java.util.Collection<Segment>cutSegmentIfNeed(java.util.Collection<Segment> allDelays)booleanequals(java.lang.Object obj)doublegetLength()doublegetPos1()doublegetPos2()inthashCode()Segmentmerge(Segment this2)java.lang.StringtoString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
contains
public final boolean contains(double y)
-
contains
public final boolean contains(Segment other)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getLength
public final double getLength()
-
getPos1
public final double getPos1()
-
getPos2
public final double getPos2()
-
-