|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.technology.AbstractShapeBuilder
public abstract class AbstractShapeBuilder
A support class to build shapes of arcs and nodes.
Nested Class Summary | |
---|---|
static class |
AbstractShapeBuilder.Shrinkage
|
Field Summary | |
---|---|
protected double[] |
doubleCoords
|
protected boolean |
electrical
|
int[] |
intCoords
|
protected Layer.Function.Set |
onlyTheseLayers
|
protected int |
pointCount
|
protected boolean |
reasonable
|
Constructor Summary | |
---|---|
AbstractShapeBuilder()
Creates a new instance of AbstractShapeBuilder |
Method Summary | |
---|---|
abstract void |
addDoublePoly(int numPoints,
Poly.Type style,
Layer layer)
|
abstract void |
addIntBox(int[] coords,
Layer layer)
|
abstract void |
addIntLine(int[] coords,
Poly.Type style,
Layer layer)
|
static java.awt.geom.Point2D |
computeExtension(int w2,
double ix1,
double iy1,
int angle,
short shrink)
Computes extension vector of wire, |
boolean |
curvedArcGridOutline(ImmutableArcInst a,
long gridWidth,
long gridRadius)
Method to fill polygon "poly" with the outline in grid units of the curved arc in this ImmutableArcInst whose width in grid units is "gridWidth". |
boolean |
genShapeEasy(ImmutableArcInst a)
Generate shape of this ImmutableArcInst in easy case. |
void |
genShapeOfArc(ImmutableArcInst a)
|
CellBackup.Memoization |
getMemoization()
|
Layer.Function.Set |
getOnlyTheseLayers()
|
AbstractShapeBuilder.Shrinkage |
getShrinkage()
|
TechPool |
getTechPool()
|
void |
makeGridPoly(ImmutableArcInst a,
long gridWidth,
Poly.Type style,
Layer layer)
Method to fill in an AbstractShapeBuilder a polygon that describes this ImmutableArcInst in grid units. |
void |
pushBox(int minX,
int minY,
int maxX,
int maxY,
Layer layer)
|
void |
pushPoint(double gridX,
double gridY)
|
void |
pushPoint(EPoint p)
|
void |
pushPoint(EPoint p,
double gridX,
double gridY)
|
void |
pushPoly(Poly.Type style,
Layer layer)
|
void |
setElectrical(boolean b)
|
void |
setOnlyTheseLayers(Layer.Function.Set onlyTheseLayers)
|
void |
setReasonable(boolean b)
|
void |
setup(Cell cell)
|
void |
setup(CellBackup cellBackup)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Layer.Function.Set onlyTheseLayers
protected boolean reasonable
protected boolean electrical
protected double[] doubleCoords
protected int pointCount
public int[] intCoords
Constructor Detail |
---|
public AbstractShapeBuilder()
Method Detail |
---|
public Layer.Function.Set getOnlyTheseLayers()
public void setOnlyTheseLayers(Layer.Function.Set onlyTheseLayers)
public void setReasonable(boolean b)
public void setElectrical(boolean b)
public void setup(Cell cell)
public void setup(CellBackup cellBackup)
public CellBackup.Memoization getMemoization()
public AbstractShapeBuilder.Shrinkage getShrinkage()
public TechPool getTechPool()
public void genShapeOfArc(ImmutableArcInst a)
public void makeGridPoly(ImmutableArcInst a, long gridWidth, Poly.Type style, Layer layer)
a
- the arc information.gridWidth
- the gridWidth of the Poly.style
- the style of the Poly.public static java.awt.geom.Point2D computeExtension(int w2, double ix1, double iy1, int angle, short shrink)
public boolean curvedArcGridOutline(ImmutableArcInst a, long gridWidth, long gridRadius)
a
- the arc information.gridWidth
- width in grid units.gridRadius
- radius in grid units.
public boolean genShapeEasy(ImmutableArcInst a)
a
- the arc information.
public void pushPoint(EPoint p, double gridX, double gridY)
public void pushPoint(double gridX, double gridY)
public void pushPoint(EPoint p)
public void pushPoly(Poly.Type style, Layer layer)
public void pushBox(int minX, int minY, int maxX, int maxY, Layer layer)
public abstract void addDoublePoly(int numPoints, Poly.Type style, Layer layer)
public abstract void addIntLine(int[] coords, Poly.Type style, Layer layer)
public abstract void addIntBox(int[] coords, Layer layer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |