com.sun.electric.tool.routing
Class Router.ContactSize
java.lang.Object
com.sun.electric.tool.routing.Router.ContactSize
- Enclosing class:
- Router
protected static class Router.ContactSize
- extends java.lang.Object
ContactSize class to deterime the arc sizes and contact size between two
objects to be connected by the wirer. This assumes manhatten wiring.
Constructor Summary |
Router.ContactSize(ElectricObject startObj,
ElectricObject endObj,
java.awt.geom.Point2D startLoc,
java.awt.geom.Point2D endLoc,
java.awt.geom.Point2D cornerLoc,
ArcProto startArc,
ArcProto endArc,
boolean ignoreAngles)
Determine the contact size, arc sizes, and arc angles based on the
ElectricObjects to be connected, and the start, end, and corner location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Router.ContactSize
public Router.ContactSize(ElectricObject startObj,
ElectricObject endObj,
java.awt.geom.Point2D startLoc,
java.awt.geom.Point2D endLoc,
java.awt.geom.Point2D cornerLoc,
ArcProto startArc,
ArcProto endArc,
boolean ignoreAngles)
- Determine the contact size, arc sizes, and arc angles based on the
ElectricObjects to be connected, and the start, end, and corner location.
- Parameters:
startObj
- the object to route fromendObj
- the object to route tostartLoc
- the start location of the start arcendLoc
- the end location of the end arccornerLoc
- the corner location (end of start arc and start of end arc)startArc
- start arc typeendArc
- end arc typeignoreAngles
- whether to ignore angles when determining sizes
getContactSize
public java.awt.geom.Rectangle2D getContactSize()
getStartAngle
public int getStartAngle()
getEndAngle
public int getEndAngle()
getStartWidth
public double getStartWidth()
getEndWidth
public double getEndWidth()