|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.routing.RouteElement
com.sun.electric.tool.routing.RouteElementPort
public class RouteElementPort
Class for defining RouteElements that are ports.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.electric.tool.routing.RouteElement |
---|
RouteElement.RouteElementAction |
Method Summary | |
---|---|
void |
addConnectingNewArc(RouteElementArc re)
Book-keeping: Adds a newArc RouteElement to a list to keep track of what newArc elements use this object as an end point. |
void |
addHighlightArea(Highlighter highlighter)
Adds RouteElement to highlights |
static RouteElementPort |
deleteNode(NodeInst nodeInstToDelete)
Factory method for making a deleteNode RouteElement |
ElectricObject |
doAction()
Perform the action specified by RouteElementAction action. |
static RouteElementPort |
existingPortInst(PortInst existingPortInst,
EPoint portInstSite)
Factory method for making a dummy RouteElement for an existing PortInst. |
static RouteElementPort |
existingPortInst(PortInst existingPortInst,
Poly portInstSite)
Factory method for making a dummy RouteElement for an existing PortInst. |
int |
getConnectingArcAngle(ArcProto ap)
Get the angle of any arcs connected to this RouteElement. |
Poly |
getConnectingSite()
Get a polygon that defines the port dimensions. |
java.awt.geom.Point2D |
getLocation()
Returns location of newNode, existingPortInst, or deleteNode, or null otherwise |
java.util.Iterator<RouteElement> |
getNewArcs()
Get an iterator over any newArc RouteElements connected to this newNode RouteElement. |
NodeInst |
getNodeInst()
Get Connecting Node on RouteElement. |
NodeProto |
getNodeProto()
Get the NodeProto for connecting to this RouteElementPort. |
Dimension2D.Double |
getNodeSize()
Get the size of a newNode, or the NodeInst an existingPortInst is attached to. |
PortInst |
getPortInst()
Get Connecting Port on RouteElement. |
PortProto |
getPortProto()
Get the PortProto for connecting to this RouteElementPort. |
double |
getWidestConnectingArc(ArcProto ap)
Get largest arc width of newArc RouteElements attached to this RouteElement. |
double |
getWidestConnectingArc(ArcProto ap,
int arcAngle)
Get largest arc width of newArc RouteElements attached to this RouteElement. |
boolean |
isBisectArcPin()
see setBisectArcPin |
static RouteElementPort |
newNode(Cell cell,
NodeProto np,
PortProto newNodePort,
java.awt.geom.Point2D location,
double width,
double height)
Factory method for making a newNode RouteElement |
void |
removeConnectingNewArc(RouteElementArc re)
Reomve a newArc that connects to this newNode or existingPortInst. |
void |
setBisectArcPin(boolean state)
Set true by Interactive router if pin used to bisect arc Router may want to remove this pin later if it places a connecting contact cut in the same position. |
void |
setNodeSize(Dimension2D size)
Set the size of a newNode. |
java.lang.String |
toString()
Return string decribing the RouteElement |
Methods inherited from class com.sun.electric.tool.routing.RouteElement |
---|
getAction, getCell, isDone, isShowHighlight, setDone, setShowHighlight |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static RouteElementPort newNode(Cell cell, NodeProto np, PortProto newNodePort, java.awt.geom.Point2D location, double width, double height)
np
- Type of NodeInst to makelocation
- the location of the new NodeInstwidth
- the width of the new NodeInstheight
- the height of the new NodeInstpublic static RouteElementPort deleteNode(NodeInst nodeInstToDelete)
nodeInstToDelete
- the nodeInst to deletepublic static RouteElementPort existingPortInst(PortInst existingPortInst, EPoint portInstSite)
existingPortInst
- the already existing portInst to connect topublic static RouteElementPort existingPortInst(PortInst existingPortInst, Poly portInstSite)
existingPortInst
- the already existing portInst to connect topublic NodeProto getNodeProto()
public PortProto getPortProto()
public PortInst getPortInst()
public NodeInst getNodeInst()
public java.awt.geom.Point2D getLocation()
public void setBisectArcPin(boolean state)
public boolean isBisectArcPin()
public void addConnectingNewArc(RouteElementArc re)
re
- the RouteElement to add.public void removeConnectingNewArc(RouteElementArc re)
re
- the RouteElement to removepublic double getWidestConnectingArc(ArcProto ap)
Note that these width values should have been pre-adjusted for the arc width offset, so these values have had the offset subtracted away.
public double getWidestConnectingArc(ArcProto ap, int arcAngle)
Note that these width values should have been pre-adjusted for the arc width offset, so these values have had the offset subtracted away.
public int getConnectingArcAngle(ArcProto ap)
ap
- the arc prototype
public java.util.Iterator<RouteElement> getNewArcs()
public Dimension2D.Double getNodeSize()
public void setNodeSize(Dimension2D size)
size
- the new sizepublic Poly getConnectingSite()
public ElectricObject doAction()
doAction
in class RouteElement
public void addHighlightArea(Highlighter highlighter)
addHighlightArea
in class RouteElement
public java.lang.String toString()
toString
in class RouteElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |