|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.technology.Technology.TechPoint
public static class Technology.TechPoint
Defines a point in space that is relative to a NodeInst's bounds. The TechPoint has two coordinates: X and Y. Each of these coordinates is represented by an Edge class (EdgeH for X and EdgeV for Y). The Edge classes have two numbers: a multiplier and an adder. The desired coordinate takes the NodeInst's center, adds in the product of the Edge multiplier and the NodeInst's size, and then adds in the Edge adder.
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 Summary | |
---|---|
Technology.TechPoint(EdgeH x,
EdgeV y)
Constructs a TechPoint with the specified description. |
Method Summary | |
---|---|
Technology.TechPoint |
duplicate()
Method to make a copy of this TechPoint, with all newly allocated parts. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Technology.TechPoint(EdgeH x, EdgeV y)
TechPoint
with the specified description.
x
- the EdgeH that converts a NodeInst into an X coordinate on that NodeInst.y
- the EdgeV that converts a NodeInst into a Y coordinate on that NodeInst.Method Detail |
---|
public Technology.TechPoint duplicate()
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 EdgeV getY()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |