|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.tool.user.redisplay.VectorCache
public class VectorCache
Class to hold scalable representation of circuit displays.
| Nested Class Summary | |
|---|---|
static class |
VectorCache.VectorBase
Class which defines the common information for all cached displayable objects |
| Field Summary | |
|---|---|
EDatabase |
database
database to work. |
static boolean |
DEBUG
|
static java.util.Comparator<VectorCache.VectorBase> |
shapeByLayer
Comparator class for sorting VectorBase objects by their layer depth. |
static VectorCache |
theCache
|
| Constructor Summary | |
|---|---|
VectorCache(EDatabase database)
Creates a new instance of VectorCache |
|
| Method Summary | |
|---|---|
void |
addBoxToCell(double lX,
double lY,
double hX,
double hY,
Layer layer,
CellId cellId)
Method to insert a manhattan rectangle into the vector cache for a Cell. |
void |
addInstanceToCell(double lX,
double lY,
double hX,
double hY,
CellId cellId)
Method to insert a manhattan rectangle into the vector cache for a Cell. |
void |
clearCache()
Method called when it is necessary to clear cache. |
void |
clearFadeImages()
Method called when visible layers have changed. |
static VectorCache.VectorBase[] |
drawNode(NodeInst ni)
|
static VectorCache.VectorBase[] |
drawPolys(ImmutableArcInst a,
Poly[] polys)
|
java.util.Set<CellId> |
forceRedrawAfterChange(java.util.Set<CellId> topCells)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean DEBUG
public static final VectorCache theCache
public final EDatabase database
public static java.util.Comparator<VectorCache.VectorBase> shapeByLayer
| Constructor Detail |
|---|
public VectorCache(EDatabase database)
| Method Detail |
|---|
public static VectorCache.VectorBase[] drawNode(NodeInst ni)
public static VectorCache.VectorBase[] drawPolys(ImmutableArcInst a,
Poly[] polys)
public void addBoxToCell(double lX,
double lY,
double hX,
double hY,
Layer layer,
CellId cellId)
lX - the low X of the manhattan rectangle.lY - the low Y of the manhattan rectangle.hX - the high X of the manhattan rectangle.hY - the high Y of the manhattan rectangle.layer - the layer on which to draw the rectangle.cellId - the Cell in which to insert the rectangle.
public void addInstanceToCell(double lX,
double lY,
double hX,
double hY,
CellId cellId)
lX - the low X of the manhattan rectangle.lY - the low Y of the manhattan rectangle.hX - the high X of the manhattan rectangle.hY - the high Y of the manhattan rectangle.cellId - the Cell in which to insert the rectangle.public java.util.Set<CellId> forceRedrawAfterChange(java.util.Set<CellId> topCells)
public void clearCache()
public void clearFadeImages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||