org.eclipse.birt.chart.render
Class DeferredCacheManager

java.lang.Object
  extended byorg.eclipse.birt.chart.render.DeferredCacheManager

public final class DeferredCacheManager
extends java.lang.Object

The class is used to manange runtime DeferredCache of series, it assures the correct painting z-order of series for 2D case.

Since:
2.2.1

Constructor Summary
DeferredCacheManager(IDeviceRenderer idr, Chart chart)
          Constructor of the class.
 
Method Summary
 void clearDC()
          Clear all DeferredCache instances.
 DeferredCache createDeferredCache(BaseRenderer br)
          Create DeferredCache instance for current series.
 void flushAll()
          Flush all DeferredCache in the mananger.
 void flushOptions(int options)
          Flush specified blocks.
 DeferredCache getFirstDeferredCache()
          Returns first DeferredCache instance.
 DeferredCache getLastDeferredCache()
          Returns last DeferredCache instance.
 void getMarkersNLabels(java.util.List allMarkers, java.util.List allLabels)
          Get markers and labels from all caches.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Create DeferredCache instance for current series.

Parameters:
br - current renderer.
Returns:
instance of DeferredCache

flushAll

public void flushAll()
              throws ChartException
Flush all DeferredCache in the mananger.

Throws:
ChartException

flushOptions

public void flushOptions(int options)
                  throws ChartException
Flush specified blocks.

Parameters:
options -
Throws:
ChartException

getMarkersNLabels

public void getMarkersNLabels(java.util.List allMarkers,
                              java.util.List allLabels)
Get markers and labels from all caches.

Parameters:
allMarkers -
allLabels -

clearDC

public void clearDC()
Clear all DeferredCache instances.


getFirstDeferredCache

public DeferredCache getFirstDeferredCache()
Returns first DeferredCache instance.

Returns:
first DeferredCache instance.

getLastDeferredCache

public DeferredCache getLastDeferredCache()
Returns last DeferredCache instance.

Returns:
last DeferredCache instance.


Copyright © 2005-2007 Actuate Corp. All rights reserved.