com.sun.electric.tool.user
Class CircuitChangeJobs.Reconnect
java.lang.Object
com.sun.electric.tool.user.CircuitChangeJobs.Reconnect
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- CircuitChangeJobs
public static class CircuitChangeJobs.Reconnect
- extends java.lang.Object
- implements java.io.Serializable
This class handles deleting pins that are between two arcs,
and reconnecting the arcs without the pin.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CircuitChangeJobs.Reconnect
public CircuitChangeJobs.Reconnect()
erasePassThru
public static CircuitChangeJobs.Reconnect erasePassThru(NodeInst ni,
boolean allowdiffs,
boolean checkPermission)
- Method to find a possible Reconnect through a given NodeInst.
- Parameters:
ni
- the NodeInst to examine.allowdiffs
- true to allow differences in the two arcs.
If this is false, then different width arcs, or arcs that are not lined up
precisely, will not be considered for reconnection.checkPermission
- true to check that the node can be changed.
- Returns:
- a Reconnect object that describes the reconnection to be done.
Returns null if no reconnection can be found.
reconnectArcs
public java.util.List<ArcInst> reconnectArcs()
- Method to implement the reconnection in this Reconnect.
- Returns:
- list of newly created ArcInst that reconnects.