public static class PlacementFrame.PlacementPort extends java.lang.Object implements SteinerTree.SteinerTreePort
Constructor and Description |
---|
PlacementFrame.PlacementPort(double x,
double y)
Constructor to create a PlacementPort.
|
Modifier and Type | Method and Description |
---|---|
void |
computeRotatedOffset()
Internal method to compute the rotated offset of this PlacementPort
assuming that the Orientation of its PlacementNode has changed.
|
EPoint |
getCenter()
Method to return the location of this PlacementPort.
|
double |
getOffX()
Method to return the offset of this PlacementPort's X coordinate from the center of its PlacementNode.
|
double |
getOffY()
Method to return the offset of this PlacementPort's Y coordinate from the center of its PlacementNode.
|
PlacementFrame.PlacementNetwork |
getPlacementNetwork()
Method to return the PlacementNetwork on which this PlacementPort resides.
|
PlacementFrame.PlacementNode |
getPlacementNode()
Method to return the PlacementNode on which this PlacementPort resides.
|
double |
getRotatedOffX()
Method to return the offset of this PlacementPort's X coordinate from the center of its PlacementNode.
|
double |
getRotatedOffY()
Method to return the offset of this PlacementPort's Y coordinate from the center of its PlacementNode.
|
void |
setPlacementNetwork(PlacementFrame.PlacementNetwork pn)
Method to return the PlacementNetwork on which this PlacementPort resides.
|
void |
setPlacementNode(PlacementFrame.PlacementNode pn)
Method to set the "parent" PlacementNode on which this PlacementPort resides.
|
public PlacementFrame.PlacementPort(double x, double y)
x
- the X offset of this PlacementPort from the center of its PlacementNode.y
- the Y offset of this PlacementPort from the center of its PlacementNode.public void setPlacementNode(PlacementFrame.PlacementNode pn)
pn
- the PlacementNode on which this PlacementPort resides.public PlacementFrame.PlacementNode getPlacementNode()
public void setPlacementNetwork(PlacementFrame.PlacementNetwork pn)
pn
- the PlacementNetwork on which this PlacementPort resides.public PlacementFrame.PlacementNetwork getPlacementNetwork()
public double getOffX()
public double getOffY()
public EPoint getCenter()
getCenter
in interface SteinerTree.SteinerTreePort
public double getRotatedOffX()
public double getRotatedOffY()
public void computeRotatedOffset()