|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.prototype.PortOriginal
public class PortOriginal
The PortOriginal helper class descends the hierarchy from an Export to the bottommost PrimitivePort on a primitive NodeInst.
Many parts of the system need to know what is "under" an Export. For example, assume that cell BOT has a contact node that is exported. Further assume that cell MID has an instance of cell BOT, and that the port on BOT is further exported. Finally, assume that cell TOP has an instance of cell MID. To find out information about the port on MID, it is necessary to descend the hierarchy into MID and into BOT.
This class takes a PortInst or a NodeInst/PortProto pair (such as the port on MID in cell TOP). It then provides these pieces of information:
Constructor Summary | |
---|---|
PortOriginal(NodeInst ni,
PortProto pp)
Constructor takes a NodeInst/PortProto combination and traverses it down to the bottom of the hierarchy. |
|
PortOriginal(PortInst startPort)
Constructor takes a PortInst and traverses it down to the bottom of the hierarchy. |
|
PortOriginal(PortInst startPort,
java.awt.geom.AffineTransform pre)
Constructor takes a PortInst and traverses it down to the bottom of the hierarchy. |
Method Summary | |
---|---|
NodeInst |
getBottomNodeInst()
Method to return the bottommost NodeInst (a primitive) from the initial port information given to the constructor. |
PortInst |
getBottomPort()
Method to return the bottommost PortInst (on a primitive NodeInst) from the initial port information given to the constructor. |
PrimitivePort |
getBottomPortProto()
Method to return the bottommost PortProto (a PrimitivePort) from the initial port information given to the constructor. |
Orientation |
getOrientToTop()
Method to return the apparent orientation of the lowest node when viewed from the top. |
java.awt.geom.AffineTransform |
getTransformToTop()
Method to return the transformation matrix from the bottommost NodeInst to the Cell containing the topmost PortInst. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortOriginal(PortInst startPort)
startPort
- the initial PortInst.public PortOriginal(PortInst startPort, java.awt.geom.AffineTransform pre)
startPort
- the initial PortInst.pre
- the transformation matrix to add to the final transformation.public PortOriginal(NodeInst ni, PortProto pp)
ni
- the initial NodeInst.pp
- the initial PortProto.Method Detail |
---|
public NodeInst getBottomNodeInst()
public PrimitivePort getBottomPortProto()
public PortInst getBottomPort()
public java.awt.geom.AffineTransform getTransformToTop()
public Orientation getOrientToTop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |