com.sun.electric.technology
Class BoundsBuilder

java.lang.Object
  extended by com.sun.electric.technology.AbstractShapeBuilder
      extended by com.sun.electric.technology.BoundsBuilder

public class BoundsBuilder
extends AbstractShapeBuilder

A support class to build shapes of arcs and nodes.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.electric.technology.AbstractShapeBuilder
AbstractShapeBuilder.Shrinkage
 
Field Summary
 
Fields inherited from class com.sun.electric.technology.AbstractShapeBuilder
doubleCoords, intCoords, pointCount
 
Constructor Summary
BoundsBuilder(Cell cell)
           
BoundsBuilder(CellBackup cellBackup)
           
 
Method Summary
 void addDoublePoly(int numPoints, Poly.Type style, Layer layer, EGraphics graphicsOverride, PrimitivePort pp)
           
 void addIntBox(int[] coords, Layer layer)
           
 void addIntPoly(int numPoints, Poly.Type style, Layer layer, EGraphics graphicsOverride, PrimitivePort pp)
           
 void clear()
           
 boolean genBoundsEasy(ImmutableArcInst a, int[] intCoords)
          Generate bounds of this ImmutableArcInst in easy case.
 ERectangle makeBounds()
           
 boolean makeBounds(java.awt.geom.Rectangle2D.Double visBounds)
           
 
Methods inherited from class com.sun.electric.technology.AbstractShapeBuilder
addDoubleTextPoly, computeExtension, curvedArcGridOutline, genShapeEasy, genShapeOfArc, genShapeOfNode, genShapeOfNode, getCellBackup, getMemoization, getShrinkage, getTechPool, isElectrical, isReasonable, makeGridPoly, pushIntBox, pushIntLine, pushPoint, pushPoint, pushPoint, pushPoly, pushTextPoly, setup, setup, skipLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundsBuilder

public BoundsBuilder(Cell cell)

BoundsBuilder

public BoundsBuilder(CellBackup cellBackup)
Method Detail

clear

public void clear()

genBoundsEasy

public boolean genBoundsEasy(ImmutableArcInst a,
                             int[] intCoords)
Generate bounds of this ImmutableArcInst in easy case.

Parameters:
a - ImmutableArcInst to examine.
intCoords - integer coords to fill.
Returns:
true if bounds were generated.

makeBounds

public ERectangle makeBounds()

makeBounds

public boolean makeBounds(java.awt.geom.Rectangle2D.Double visBounds)

addDoublePoly

public void addDoublePoly(int numPoints,
                          Poly.Type style,
                          Layer layer,
                          EGraphics graphicsOverride,
                          PrimitivePort pp)
Specified by:
addDoublePoly in class AbstractShapeBuilder

addIntPoly

public void addIntPoly(int numPoints,
                       Poly.Type style,
                       Layer layer,
                       EGraphics graphicsOverride,
                       PrimitivePort pp)
Specified by:
addIntPoly in class AbstractShapeBuilder

addIntBox

public void addIntBox(int[] coords,
                      Layer layer)
Specified by:
addIntBox in class AbstractShapeBuilder