com.sun.electric.tool.generator.flag.router
Class Segment
java.lang.Object
com.sun.electric.tool.generator.flag.router.Segment
- All Implemented Interfaces:
- java.lang.Comparable
public class Segment
- extends java.lang.Object
- implements java.lang.Comparable
A line segment that makes up part of a route
Constructor Summary |
Segment(double xy1,
double xy2,
Track track,
int trackNdx)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
track
public final Track track
trackNdx
public final int trackNdx
min
public double min
max
public double max
Segment
public Segment(double xy1,
double xy2,
Track track,
int trackNdx)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
isHorizontal
public boolean isHorizontal()
getTrackCenter
public double getTrackCenter()
getSegmentMin
public double getSegmentMin()
getSegmentMax
public double getSegmentMax()
trim
public void trim(double xy1,
double xy2)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object