public class BoundsBuilder extends AbstractShapeBuilder
AbstractShapeBuilder.Shrinkage
coords, pointCount
Constructor and Description |
---|
BoundsBuilder(CellBackup cellBackup) |
BoundsBuilder(TechPool techPool) |
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 |
clear() |
boolean |
genBoundsEasy(ImmutableArcInst a,
long[] gridCoords)
Generate bounds of this ImmutableArcInst in easy case.
|
ERectangle |
makeBounds() |
ERectangle |
makeBounds(EPoint anchor,
ERectangle oldBounds) |
addTextPoly, 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 BoundsBuilder(TechPool techPool)
public BoundsBuilder(CellBackup cellBackup)
public void clear()
public boolean genBoundsEasy(ImmutableArcInst a, long[] gridCoords)
a
- ImmutableArcInst to examine.gridCoords
- grid coordinates to fill.public ERectangle makeBounds()
public ERectangle makeBounds(EPoint anchor, ERectangle oldBounds)
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 addBox(Layer layer)
AbstractShapeBuilder
addBox
in class AbstractShapeBuilder
layer
- layer of the box