com.sun.electric.tool.routing
Class SimpleWirer
java.lang.Object
com.sun.electric.tool.routing.Router
com.sun.electric.tool.routing.InteractiveRouter
com.sun.electric.tool.routing.SimpleWirer
public class SimpleWirer
- extends InteractiveRouter
A Simple wiring tool for the user to draw wires.
Method Summary |
protected static int |
findQuadrant(java.awt.geom.Point2D refPoint,
java.awt.geom.Point2D pt)
Determines what route quadrant pt is compared to refPoint. |
protected boolean |
planRoute(Route route,
Cell cell,
RouteElementPort endRE,
java.awt.geom.Point2D startLoc,
java.awt.geom.Point2D endLoc,
java.awt.geom.Point2D clicked,
PolyMerge stayInside,
VerticalRoute vroute,
boolean contactsOnEndObj,
boolean extendArcHead,
boolean extendArcTail)
|
java.lang.String |
toString()
|
Methods inherited from class com.sun.electric.tool.routing.InteractiveRouter |
bisectArc, cancelInteractiveRoute, filterRouteObject, findArcConnectingPoint, getArcWidthToUse, getClosestAngledPoint, getClosestOrthogonalPoint, getClosestValue, getConnectingPoints, getConnectingSite, getRoutePort, highlightRoute, highlightRoute, makeRoute, makeVerticalRoute, onSegment, planRoute, startInteractiveRoute, withinBounds |
Methods inherited from class com.sun.electric.tool.routing.Router |
createRoute, createRouteNoJob, getArcToUse, getArcWidthToUse, getArcWidthToUse, getArcWidthToUse, getContactSize, getContactSize, reportRoutingResults, setTool, useWidestWire |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleWirer
public SimpleWirer()
toString
public java.lang.String toString()
- Overrides:
toString
in class InteractiveRouter
planRoute
protected boolean planRoute(Route route,
Cell cell,
RouteElementPort endRE,
java.awt.geom.Point2D startLoc,
java.awt.geom.Point2D endLoc,
java.awt.geom.Point2D clicked,
PolyMerge stayInside,
VerticalRoute vroute,
boolean contactsOnEndObj,
boolean extendArcHead,
boolean extendArcTail)
- Specified by:
planRoute
in class InteractiveRouter
findQuadrant
protected static int findQuadrant(java.awt.geom.Point2D refPoint,
java.awt.geom.Point2D pt)
- Determines what route quadrant pt is compared to refPoint.
A route can be drawn vertically or horizontally so this
method will return a number between 0 and 3, inclusive,
where quadrants are defined based on the angle relationship
of refPoint to pt. Imagine a circle with refPoint as
the center and pt a point on the circumference of the
circle. Then theta is the angle described by the arc refPoint->pt,
and quadrants are defined as:
quadrant : angle (theta)
0 : -45 degrees to 45 degrees
1 : 45 degress to 135 degrees
2 : 135 degrees to 225 degrees
3 : 225 degrees to 315 degrees (-45 degrees)
- Parameters:
refPoint
- reference pointpt
- variable point
- Returns:
- which quadrant pt is in.