org.eclipse.birt.chart.render
Class AxesRenderer

java.lang.Object
  extended by org.eclipse.birt.chart.render.BaseRenderer
      extended by org.eclipse.birt.chart.render.AxesRenderer
All Implemented Interfaces:
ISeriesRenderer

public abstract class AxesRenderer
extends BaseRenderer

Provides a base framework for custom series rendering extensions that are interested in being rendered in a pre-computed plot containing axes. Series type extensions could subclass this class to participate in the axes rendering framework.


Field Summary
 
Fields inherited from class org.eclipse.birt.chart.render.BaseRenderer
SHADOW
 
Constructor Summary
AxesRenderer()
          The constructor.
 
Method Summary
 org.eclipse.birt.chart.render.IAxesDecorator getAxesDecorator(org.eclipse.birt.chart.computation.withaxes.OneAxis ax)
          Returns the decorator renderer associated with current series, default is none.
 Axis getAxis()
          Gets current model Axis
 org.eclipse.birt.chart.computation.Object3D getFloor()
           
 org.eclipse.birt.chart.computation.Object3D getLeftWall()
           
 org.eclipse.birt.chart.computation.Object3D getRightWall()
           
 boolean isDimension3D()
          Returns if its a 3D rendering.
 boolean isLastRuntimeSeriesInAxis()
           
 boolean isLastRuntimeSeriesInGroup()
          To judge whether current series is the last runtime series in a series definition or not .
 boolean isTransposed()
          Returns if current chart is transposed.
 void render(java.util.Map<Series,org.eclipse.birt.chart.computation.LegendItemRenderingHints> htRenderers, Bounds bo)
          Overridden behavior for graphic element series that are plotted along axes
 void renderEachAxis(IPrimitiveRenderer ipr, Plot pl, org.eclipse.birt.chart.computation.withaxes.OneAxis ax, int iWhatToDraw)
          Renders the axis.
 void renderPlot(IPrimitiveRenderer ipr, Plot p)
          This method renders the bar graphic elements superimposed over the plot background and any previously rendered series' graphic elements.
 void set(Chart _cm, org.eclipse.birt.chart.computation.PlotComputation _o, Series _se, Axis _ax, SeriesDefinition _sd)
           
 
Methods inherited from class org.eclipse.birt.chart.render.BaseRenderer
getComputations, getDeferredCache, getDeferredCacheManager, getDevice, getDeviceScale, getFilteredMinSliceEntry, getModel, getRenderer, getRunTimeContext, getSeries, getSeriesCount, getSeriesDefinition, getSeriesIndex, getSeriesRenderingHints, getX, getXServer, getY, instances, isInteractivityEnabled, isRightToLeft, processTrigger, renderLabel, renderLabel, renderLabel, renderLegend, renderTitle, set, set, set, set, set, set, set, setDeferredCacheManager, switchAnchor, switchPosition, switchTextAlignment, updateTranslucency
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.birt.chart.render.ISeriesRenderer
compute, renderLegendGraphic, renderSeries
 

Constructor Detail

AxesRenderer

public AxesRenderer()
The constructor.

Method Detail

getLeftWall

public org.eclipse.birt.chart.computation.Object3D getLeftWall()

getRightWall

public org.eclipse.birt.chart.computation.Object3D getRightWall()

getFloor

public org.eclipse.birt.chart.computation.Object3D getFloor()

render

public final void render(java.util.Map<Series,org.eclipse.birt.chart.computation.LegendItemRenderingHints> htRenderers,
                         Bounds bo)
                  throws ChartException
Overridden behavior for graphic element series that are plotted along axes

Overrides:
render in class BaseRenderer
Parameters:
bo -
Throws:
ChartException

renderPlot

public void renderPlot(IPrimitiveRenderer ipr,
                       Plot p)
                throws ChartException
This method renders the bar graphic elements superimposed over the plot background and any previously rendered series' graphic elements.

Overrides:
renderPlot in class BaseRenderer
Parameters:
ipr - The Primitive Renderer of a Device Renderer
p - The Plot to render
Throws:
ChartException

getAxesDecorator

public org.eclipse.birt.chart.render.IAxesDecorator getAxesDecorator(org.eclipse.birt.chart.computation.withaxes.OneAxis ax)
Returns the decorator renderer associated with current series, default is none.


renderEachAxis

public final void renderEachAxis(IPrimitiveRenderer ipr,
                                 Plot pl,
                                 org.eclipse.birt.chart.computation.withaxes.OneAxis ax,
                                 int iWhatToDraw)
                          throws ChartException
Renders the axis.

Parameters:
ipr -
pl -
ax -
iWhatToDraw -
Throws:
ChartException

set

public void set(Chart _cm,
                org.eclipse.birt.chart.computation.PlotComputation _o,
                Series _se,
                Axis _ax,
                SeriesDefinition _sd)

isDimension3D

public final boolean isDimension3D()
Returns if its a 3D rendering.


isTransposed

public final boolean isTransposed()
Returns if current chart is transposed.


isLastRuntimeSeriesInAxis

public final boolean isLastRuntimeSeriesInAxis()
Returns:
Returns if current rendering is the last series in associated axis.

isLastRuntimeSeriesInGroup

public final boolean isLastRuntimeSeriesInGroup()
To judge whether current series is the last runtime series in a series definition or not .

Returns:
true current series is the last in series definition
Since:
2.3

getAxis

public final Axis getAxis()
Gets current model Axis

Returns:
Returns the axis associated with current renderer.


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