public static class Technology.TechPoint
extends java.lang.Object
implements java.io.Serializable
Arrays of TechPoint objects can be used to describe the bounds of
a particular layer in a NodeInst. Typically, four TechPoint objects
can describe a rectangle. Circles only need two (center and edge).
The Poly.Style
class defines the possible types of
geometry.
EdgeH
,
EdgeV
,
Serialized FormConstructor and Description |
---|
TechPoint(EdgeH x,
EdgeV y)
Constructs a
TechPoint with the specified description. |
Modifier and Type | Method and Description |
---|---|
EdgeH |
getX()
Returns the EdgeH that converts a NodeInst into an X coordinate on that NodeInst.
|
EdgeV |
getY()
Returns the EdgeV that converts a NodeInst into a Y coordinate on that NodeInst.
|
static Technology.TechPoint[] |
makeCenterBox()
Method to make a 2-long TechPoint array that describes a point at the center of the node.
|
static Technology.TechPoint[] |
makeFullBox()
Method to make a 2-long TechPoint array that describes a box that fills the node.
|
static Technology.TechPoint[] |
makeIndented(double amount)
Method to make a 2-long TechPoint array that describes indentation by a specified amount.
|
static Technology.TechPoint[] |
makeIndented(double amountX,
double amountY)
Method similat to makeIndented(double amount) where the X and Y specified amounts are different
|
static Technology.TechPoint[] |
makeIndentedFromCenter(double amountX,
double amountY)
Method to make a 2-long TechPoint array that describes indentation from the center by a specified amount.
|
Technology.TechPoint |
withX(EdgeH x)
Returns the TechPoint with a new EdgeH
|
Technology.TechPoint |
withY(EdgeV y)
Returns the TechPoint with a new EdgeV
|
public static Technology.TechPoint[] makeCenterBox()
public static Technology.TechPoint[] makeFullBox()
public static Technology.TechPoint[] makeIndented(double amount)
amount
- the amount to indent the box.public static Technology.TechPoint[] makeIndented(double amountX, double amountY)
amountX
- the amount to indent the box along X.amountY
- the amount to indent the box along Y.public static Technology.TechPoint[] makeIndentedFromCenter(double amountX, double amountY)
amountX
- the amount to indent from the center the box along X.amountY
- the amount to indent from the center the box along Y.public EdgeH getX()
public Technology.TechPoint withX(EdgeH x)
x
- new EdgeHpublic EdgeV getY()
public Technology.TechPoint withY(EdgeV y)
y
- new EdgeV