Package org.eclipse.birt.chart.render
Class DeferredCacheManager
- java.lang.Object
-
- org.eclipse.birt.chart.render.DeferredCacheManager
-
public final class DeferredCacheManager extends java.lang.Object
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
Constructors Constructor Description DeferredCacheManager(IDeviceRenderer idr, Chart chart)
Constructor of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearDC()
Clear allDeferredCache
instances.DeferredCache
createDeferredCache(BaseRenderer br, int cacheIndex)
CreateDeferredCache
instance for current series.void
flushAll()
Flush allDeferredCache
in the manager.void
flushOptions(int options)
Flush specified blocks.DeferredCache
getFirstDeferredCache()
Returns firstDeferredCache
instance.DeferredCache
getLastDeferredCache()
Returns lastDeferredCache
instance.void
getMarkersNLabels(java.util.List<IRenderInstruction> allMarkers, java.util.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 Detail
-
DeferredCacheManager
public DeferredCacheManager(IDeviceRenderer idr, Chart chart)
Constructor of the class.- Parameters:
idr
- specified device renderer.chart
- specified chart instance.
-
-
Method Detail
-
createDeferredCache
public DeferredCache createDeferredCache(BaseRenderer br, int cacheIndex)
CreateDeferredCache
instance for current series.- Parameters:
br
- current renderer.- Returns:
- instance of
DeferredCache
-
flushAll
public void flushAll() throws ChartException
Flush allDeferredCache
in the manager.- Throws:
ChartException
-
flushOptions
public void flushOptions(int options) throws ChartException
Flush specified blocks.- Parameters:
options
-- Throws:
ChartException
-
getMarkersNLabels
public void getMarkersNLabels(java.util.List<IRenderInstruction> allMarkers, java.util.List<TextRenderEvent> allLabels)
Get markers and labels from all caches.- Parameters:
allMarkers
-allLabels
-
-
clearDC
public void clearDC()
Clear allDeferredCache
instances.
-
getFirstDeferredCache
public DeferredCache getFirstDeferredCache()
Returns firstDeferredCache
instance.- Returns:
- first
DeferredCache
instance.
-
getLastDeferredCache
public DeferredCache 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
-
-