Package org.eclipse.birt.chart.render
Class DeferredCacheManager
java.lang.Object
org.eclipse.birt.chart.render.DeferredCacheManager
The class is used to manage runtime DeferredCache of series, it assures the
correct painting z-order of series for 2D case.
- Since:
- 2.2.1
-
Constructor Summary
ConstructorsConstructorDescriptionDeferredCacheManager
(IDeviceRenderer idr, Chart chart) Constructor of the class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearDC()
Clear allDeferredCache
instances.createDeferredCache
(BaseRenderer br, int cacheIndex) CreateDeferredCache
instance for current series.void
flushAll()
Flush allDeferredCache
in the manager.void
flushOptions
(int options) Flush specified blocks.Returns firstDeferredCache
instance.Returns lastDeferredCache
instance.void
getMarkersNLabels
(List<IRenderInstruction> allMarkers, List<TextRenderEvent> allLabels) Get markers and labels from all caches.void
process3DEvent
(DeferredCache deferredCache, Engine3D engine, double xOffset, double yOffset) Pre-process all the 3D rendering events.
-
Constructor Details
-
DeferredCacheManager
Constructor of the class.- Parameters:
idr
- specified device renderer.chart
- specified chart instance.
-
-
Method Details
-
createDeferredCache
CreateDeferredCache
instance for current series.- Parameters:
br
- current renderer.- Returns:
- instance of
DeferredCache
-
flushAll
Flush allDeferredCache
in the manager.- Throws:
ChartException
-
flushOptions
Flush specified blocks.- Parameters:
options
-- Throws:
ChartException
-
getMarkersNLabels
Get markers and labels from all caches.- Parameters:
allMarkers
-allLabels
-
-
clearDC
public void clearDC()Clear allDeferredCache
instances. -
getFirstDeferredCache
Returns firstDeferredCache
instance.- Returns:
- first
DeferredCache
instance.
-
getLastDeferredCache
Returns lastDeferredCache
instance.- Returns:
- last
DeferredCache
instance.
-
process3DEvent
public void process3DEvent(DeferredCache deferredCache, Engine3D engine, double xOffset, double yOffset) Pre-process all the 3D rendering events. This must be called beforeflushAll()
.- Parameters:
deferredCache
- specified deferred cache instance.engine
-xOffset
-yOffset
-- Since:
- 2.3
-