org.eclipse.birt.chart.render
Class DeferredCache

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

public final class DeferredCache
extends java.lang.Object

This class implements deferred rendering capability for chart.


Constructor Summary
DeferredCache(IDeviceRenderer idr, Chart c)
          The constructor.
 
Method Summary
 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)
          Adds marker rendering event to cache.
 void addModel(WrappedInstruction wi)
          Adds wrapped rendering event to cache.
 void addPlane(PrimitiveRenderEvent pre, int iInstruction)
          Addes rendering event to cache.
 void flush()
          Flush the cache, perform all pending rendering tasks.
 boolean isTransposed()
           
 void process3DEvent(Engine3D engine, double xOffset, double yOffset)
          Pre-process all the 3D rendering events.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeferredCache

public DeferredCache(IDeviceRenderer idr,
                     Chart c)
The constructor.

Method Detail

addPlane

public final void addPlane(PrimitiveRenderEvent pre,
                           int iInstruction)
Addes rendering event to cache.

Parameters:
pre - As of now, supported types are RectanguleRenderEvent and PolygonRenderEvent

addModel

public final void addModel(WrappedInstruction wi)
Adds wrapped rendering event to cache. Never use this for 3D rendering event.


addLine

public final void addLine(LineRenderEvent lre)
Adds line rendering event to cache.


addLabel

public final void addLabel(TextRenderEvent tre)
Adds text rendering event to cache.


addMarker

public final void addMarker(PrimitiveRenderEvent pre,
                            int iInstruction)
Adds marker rendering event to cache.


flush

public final void flush()
                 throws ChartException
Flush the cache, perform all pending rendering tasks.

Throws:
ChartException

process3DEvent

public void process3DEvent(Engine3D engine,
                           double xOffset,
                           double yOffset)
Pre-process all the 3D rendering events. This must be called before flush().


isTransposed

public boolean isTransposed()
Returns:
Returns if current rendering context is transposed.


Copyright © 2005 Actuate Corp. All rights reserved.