Class Segment

  • All Implemented Interfaces:
    Changeable

    public class Segment
    extends AbstractChangeable
    Represents a single straight-line segment of an orthogonal path. Used to adjust paths after routing to avoid overlapping segments
    • Constructor Detail

      • Segment

        public Segment​(java.awt.Point p1,
                       java.awt.Point p2,
                       java.awt.Point prev,
                       java.awt.Point next)
    • Method Detail

      • toString

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

        public int crossCost​(Segment other)
      • rightCost

        public int rightCost​(Segment other)
      • leftCost

        public int leftCost​(Segment other)
      • adjust

        public boolean adjust​(Segment other)