Package org.eclipse.birt.chart.render
Class AxesRenderer
- java.lang.Object
-
- org.eclipse.birt.chart.render.BaseRenderer
-
- org.eclipse.birt.chart.render.AxesRenderer
-
- All Implemented Interfaces:
ISeriesRenderer
- Direct Known Subclasses:
EmptyWithAxes
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.
-
-
Constructor Summary
Constructors Constructor Description AxesRenderer()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAxesDecoratorgetAxesDecorator(OneAxis ax)Returns the decorator renderer associated with current series, default is none.AxisgetAxis()Gets current model AxisObject3DgetFloor()java.lang.ObjectgetFloorEvent()Object3DgetLeftWall()java.lang.ObjectgetLeftWallEvent()Object3DgetRightWall()java.lang.ObjectgetRightWallEvent()booleanisDimension3D()Returns if its a 3D rendering.booleanisLastRuntimeSeriesInAxis()booleanisLastRuntimeSeriesInGroup()To judge whether current series is the last runtime series in a series definition or not .booleanisTransposed()Returns if current chart is transposed.voidrender(java.util.Map<Series,LegendItemRenderingHints> htRenderers, Bounds bo)Overridden behavior for graphic element series that are plotted along axesvoidrenderEachAxis(IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw)Renders the axis.voidrenderPlot(IPrimitiveRenderer ipr, Plot p)This method renders the bar graphic elements superimposed over the plot background and any previously rendered series' graphic elements.voidset(Chart _cm, 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
-
-
-
-
Method Detail
-
getLeftWall
public Object3D getLeftWall()
-
getLeftWallEvent
public java.lang.Object getLeftWallEvent()
-
getRightWall
public Object3D getRightWall()
-
getRightWallEvent
public java.lang.Object getRightWallEvent()
-
getFloor
public Object3D getFloor()
-
getFloorEvent
public java.lang.Object getFloorEvent()
-
render
public final void render(java.util.Map<Series,LegendItemRenderingHints> htRenderers, Bounds bo) throws ChartException
Overridden behavior for graphic element series that are plotted along axes- Overrides:
renderin classBaseRenderer- 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:
renderPlotin classBaseRenderer- Parameters:
ipr- The Primitive Renderer of a Device Rendererp- The Plot to render- Throws:
ChartException
-
getAxesDecorator
public IAxesDecorator getAxesDecorator(OneAxis ax)
Returns the decorator renderer associated with current series, default is none.- Overrides:
getAxesDecoratorin classBaseRenderer
-
renderEachAxis
public final void renderEachAxis(IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw) throws ChartException
Renders the axis.- Parameters:
ipr-pl-ax-iWhatToDraw-- Throws:
ChartException
-
set
public void set(Chart _cm, PlotComputation _o, Series _se, Axis _ax, SeriesDefinition _sd)
-
isDimension3D
public final boolean isDimension3D()
Returns if its a 3D rendering.
-
isTransposed
public boolean isTransposed()
Returns if current chart is transposed.- Overrides:
isTransposedin classBaseRenderer
-
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.
-
-