public final class DeferredCache extends java.lang.Object implements java.lang.Comparable<DeferredCache>
Modifier and Type | Field and Description |
---|---|
java.util.List<java.lang.Object> |
al3D |
static int |
FLUSH_3D |
static int |
FLUSH_ALL |
static int |
FLUSH_CONNECTION_LINE |
static int |
FLUSH_LABLE |
static int |
FLUSH_LINE |
static int |
FLUSH_MARKER |
static int |
FLUSH_PLANE |
static int |
FLUSH_PLANE_SHADOW |
Constructor and Description |
---|
DeferredCache(IDeviceRenderer idr,
Chart c,
int cacheIndex)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectionLine(LineRenderEvent lre)
Adds marker connection line rendering event to cache.
|
void |
addLabel(TextRenderEvent tre)
Adds text rendering event to cache.
|
void |
addLine(LineRenderEvent lre)
Adds line rendering event to cache.
|
void |
addMarker(PrimitiveRenderEvent pre,
int iInstruction,
double iMarkerSize,
int zOrder)
Adds marker rendering event to cache.
|
void |
addModel(WrappedInstruction wi)
Adds wrapped rendering event to cache.
|
java.lang.Object |
addPlane(PrimitiveRenderEvent pre,
int iInstruction)
Adds rendering Plane event to cache.
|
java.lang.Object |
addPlane(PrimitiveRenderEvent pre,
int iInstruction,
int zorder_hint) |
void |
addPlaneShadow(PrimitiveRenderEvent pre,
int iInstruction)
Adds rendering Plane event to cache.
|
void |
addPlaneShadow(PrimitiveRenderEvent pre,
int iInstruction,
int zorder_hint) |
int |
compareTo(DeferredCache other) |
DeferredCache |
deriveNewDeferredCache()
Create a new instance of
DeverredCache according to current
device render and chart model. |
void |
flush()
Flush the cache, perform all pending rendering tasks.
|
void |
flushOptions(int options)
Flush the cache of specified types.
|
java.util.List<LineRenderEvent> |
getAllConnectionLines()
Returns all cached connection lines.
|
java.util.List<TextRenderEvent> |
getAllLabels()
Returns all cached labels.
|
java.util.List<MarkerInstruction> |
getAllMarkers()
Returns all cached markers.
|
DeferredCache |
getParentDeferredCache() |
boolean |
isTransposed() |
void |
process3DEvent(Engine3D engine,
double xOffset,
double yOffset)
Pre-process all the 3D rendering events.
|
void |
setAntialiasing(boolean antialiasing)
Enables if all 3D polygons in current deferred cache need antialiasing.
|
void |
setParentDeferredCache(DeferredCache dc) |
void |
setPlanesComparator(java.util.Comparator<?> cp) |
void |
setPlaneShadowsComparator(java.util.Comparator<?> cp) |
public static final int FLUSH_PLANE
public static final int FLUSH_LINE
public static final int FLUSH_MARKER
public static final int FLUSH_LABLE
public static final int FLUSH_3D
public static final int FLUSH_PLANE_SHADOW
public static final int FLUSH_CONNECTION_LINE
public static final int FLUSH_ALL
public java.util.List<java.lang.Object> al3D
public DeferredCache(IDeviceRenderer idr, Chart c, int cacheIndex)
public final java.lang.Object addPlane(PrimitiveRenderEvent pre, int iInstruction)
pre
- As of now, supported types are RectanguleRenderEvent and
PolygonRenderEventpublic final java.lang.Object addPlane(PrimitiveRenderEvent pre, int iInstruction, int zorder_hint)
public final void addPlaneShadow(PrimitiveRenderEvent pre, int iInstruction)
pre
- As of now, supported types are RectanguleRenderEvent and
PolygonRenderEventpublic final void addPlaneShadow(PrimitiveRenderEvent pre, int iInstruction, int zorder_hint)
public final void addModel(WrappedInstruction wi)
public final void addLine(LineRenderEvent lre)
public final void addConnectionLine(LineRenderEvent lre)
public final void addLabel(TextRenderEvent tre)
public final void addMarker(PrimitiveRenderEvent pre, int iInstruction, double iMarkerSize, int zOrder)
public final void flush() throws ChartException
ChartException
public final void flushOptions(int options) throws ChartException
options
- typesChartException
FLUSH_3D
,
FLUSH_LABLE
,
FLUSH_LINE
,
FLUSH_MARKER
,
FLUSH_PLANE
public void process3DEvent(Engine3D engine, double xOffset, double yOffset)
flush()
.public boolean isTransposed()
public java.util.List<LineRenderEvent> getAllConnectionLines()
public java.util.List<MarkerInstruction> getAllMarkers()
public java.util.List<TextRenderEvent> getAllLabels()
public void setPlaneShadowsComparator(java.util.Comparator<?> cp)
public void setPlanesComparator(java.util.Comparator<?> cp)
public DeferredCache deriveNewDeferredCache()
DeverredCache
according to current
device render and chart model.public DeferredCache getParentDeferredCache()
public void setParentDeferredCache(DeferredCache dc)
public void setAntialiasing(boolean antialiasing)
antialiasing
- public int compareTo(DeferredCache other)
compareTo
in interface java.lang.Comparable<DeferredCache>
Copyright © 2005-2008 Actuate Corp. All rights reserved.