com.sun.electric.tool.routing
Class Router.ContactSize

java.lang.Object
  extended by 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.
 
Method Summary
 java.awt.geom.Rectangle2D getContactSize()
           
 int getEndAngle()
           
 double getEndWidth()
           
 int getStartAngle()
           
 double getStartWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 from
endObj - the object to route to
startLoc - the start location of the start arc
endLoc - the end location of the end arc
cornerLoc - the corner location (end of start arc and start of end arc)
startArc - start arc type
endArc - end arc type
ignoreAngles - whether to ignore angles when determining sizes
Method Detail

getContactSize

public java.awt.geom.Rectangle2D getContactSize()

getStartAngle

public int getStartAngle()

getEndAngle

public int getEndAngle()

getStartWidth

public double getStartWidth()

getEndWidth

public double getEndWidth()