public class VectorCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VectorCache.VectorBase
Class which defines the common information for all cached displayable objects
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
VectorCache(EDatabase database)
Creates a new instance of VectorCache
|
Modifier and Type | Method and Description |
---|---|
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) |
public static boolean DEBUG
public static final VectorCache theCache
public final EDatabase database
public static java.util.Comparator<VectorCache.VectorBase> shapeByLayer
public VectorCache(EDatabase database)
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()