public static class Poly.Builder extends AbstractShapeBuilder
AbstractShapeBuilder.Shrinkage
coords, pointCount
Modifier and Type | Method and Description |
---|---|
void |
addBox(Layer layer)
Subclasses of AbstractShapeBuilder redefine this method to register transformed box.
|
void |
addPoly(int numPoints,
Poly.Type style,
Layer layer,
EGraphics graphicsOverride,
PrimitivePort pp)
Subclasses of AbstractShapeBuilder redefine this method to register transformed Poly.
|
void |
addTextPoly(int numPoints,
Poly.Type style,
Layer layer,
PrimitivePort pp,
java.lang.String message,
TextDescriptor descriptor)
Subclasses of AbstractShapeBuilder redefine this method to register transformed text Poly.
|
java.util.Iterator<Poly> |
getShape(ArcInst ai)
Returns the polygons that describe arc "ai".
|
Poly |
getShape(CellTree cellTree,
ImmutableNodeInst n,
PrimitivePort pp,
java.awt.geom.Point2D selectPt) |
Poly |
getShape(ImmutableNodeInst n,
PrimitivePort pp) |
java.util.Iterator<Poly> |
getShape(NodeInst ni)
Returns the polygons that describe node "ni".
|
Poly |
getShape(NodeInst ni,
PrimitivePort pp) |
Poly[] |
getShapeArray(ArcInst ai,
Layer.Function.Set onlyTheseLayers)
Returns the polygons that describe arc "ai".
|
Poly[] |
getShapeArray(NodeInst ni,
boolean electrical,
boolean reasonable,
Layer.Function.Set onlyTheseLayers)
Returns the polygons that describe arc "ai".
|
Poly |
makePoly(ImmutableArcInst a,
long gridWidth,
Poly.Type style)
Method to create a Poly object that describes an ImmutableArcInst.
|
genShapeOfArc, genShapeOfNode, genShapeOfPort, genShapeOfPort, genShapeOfPort, getCellBackup, getConnections, getConnections, getCurObj, getExportsOnNode, getShrinkage, getTechPool, hasExportsOnNode, isElectrical, isReasonable, isWiped, isWipePins, makeGridPoly, pinUseCount, pushOutlineSegment, pushPoint, pushPoint, pushPoint, pushPoint, pushPoint, pushPoly, pushTextPoly, setCurNode, setup, setup, setup, setup, skipLayer
public java.util.Iterator<Poly> getShape(NodeInst ni)
ni
- the NodeInst that is being described.
The prototype of this NodeInst must be a PrimitiveNode and not a Cell.public Poly[] getShapeArray(NodeInst ni, boolean electrical, boolean reasonable, Layer.Function.Set onlyTheseLayers)
ni
- the NodeInst that is being described.public Poly getShape(NodeInst ni, PrimitivePort pp)
public Poly getShape(ImmutableNodeInst n, PrimitivePort pp)
public Poly getShape(CellTree cellTree, ImmutableNodeInst n, PrimitivePort pp, java.awt.geom.Point2D selectPt)
public java.util.Iterator<Poly> getShape(ArcInst ai)
ai
- the ArcInst that is being described.public Poly[] getShapeArray(ArcInst ai, Layer.Function.Set onlyTheseLayers)
ai
- the ArcInst that is being described.public Poly makePoly(ImmutableArcInst a, long gridWidth, Poly.Type style)
a
- an ImmutableArcInstgridWidth
- the width of the Poly in grid units.style
- the style of the ArcInst.public void addPoly(int numPoints, Poly.Type style, Layer layer, EGraphics graphicsOverride, PrimitivePort pp)
AbstractShapeBuilder
addPoly
in class AbstractShapeBuilder
numPoints
- number of pointsstyle
- style of Polylayer
- layer of PolygraphicsOverride
- optional graphics overridepp
- port connected to this Polypublic void addTextPoly(int numPoints, Poly.Type style, Layer layer, PrimitivePort pp, java.lang.String message, TextDescriptor descriptor)
AbstractShapeBuilder
addTextPoly
in class AbstractShapeBuilder
numPoints
- number of pointsstyle
- style of Polylayer
- layer of Polypp
- port connected to this Polymessage
- text messagedescriptor
- text descriptorpublic void addBox(Layer layer)
AbstractShapeBuilder
addBox
in class AbstractShapeBuilder
layer
- layer of the box