protected static class Router.ContactSize
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getContactSize() |
int |
getEndAngle() |
double |
getEndWidth() |
int |
getStartAngle() |
double |
getStartWidth() |
public 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)
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