public static class Poly.Builder extends AbstractShapeBuilder
AbstractShapeBuilder.Shrinkage
doubleCoords, intCoords, pointCount
Modifier and Type | Method and Description |
---|---|
void |
addDoublePoly(int numPoints,
Poly.Type style,
Layer layer,
EGraphics graphicsOverride,
PrimitivePort pp) |
void |
addDoubleTextPoly(int numPoints,
Poly.Type style,
Layer layer,
PrimitivePort pp,
java.lang.String message,
TextDescriptor descriptor) |
void |
addIntBox(int[] coords,
Layer layer) |
void |
addIntPoly(int numPoints,
Poly.Type style,
Layer layer,
EGraphics graphicsOverride,
PrimitivePort pp) |
java.util.Iterator<Poly> |
getShape(ArcInst ai)
Returns the polygons that describe arc "ai".
|
java.util.Iterator<Poly> |
getShape(NodeInst ni)
Returns the polygons that describe node "ni".
|
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.
|
computeExtension, curvedArcGridOutline, genShapeEasy, genShapeOfArc, genShapeOfNode, genShapeOfNode, getCellBackup, getMemoization, getShrinkage, getTechPool, isElectrical, isReasonable, makeGridPoly, pushIntBox, pushIntLine, pushPoint, pushPoint, pushPoint, pushPoly, pushTextPoly, 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 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 addDoublePoly(int numPoints, Poly.Type style, Layer layer, EGraphics graphicsOverride, PrimitivePort pp)
addDoublePoly
in class AbstractShapeBuilder
public void addDoubleTextPoly(int numPoints, Poly.Type style, Layer layer, PrimitivePort pp, java.lang.String message, TextDescriptor descriptor)
addDoubleTextPoly
in class AbstractShapeBuilder
public void addIntPoly(int numPoints, Poly.Type style, Layer layer, EGraphics graphicsOverride, PrimitivePort pp)
addIntPoly
in class AbstractShapeBuilder
public void addIntBox(int[] coords, Layer layer)
addIntBox
in class AbstractShapeBuilder