public abstract class BaseRenderer extends java.lang.Object implements ISeriesRenderer
Constructor and Description |
---|
BaseRenderer()
The internal constructor that must be defined as public
|
Modifier and Type | Method and Description |
---|---|
IAxesDecorator |
getAxesDecorator(OneAxis ax)
Returns the decorator renderer associated with current series, default is
none.
|
PlotComputation |
getComputations() |
DeferredCache |
getDeferredCache() |
DeferredCacheManager |
getDeferredCacheManager()
Returns
DeferredCacheManager instance. |
IDeviceRenderer |
getDevice() |
double |
getDeviceScale() |
java.util.Collection<java.lang.Integer> |
getFilteredMinSliceEntry(DataSetIterator dsi)
Returns if the corresponding category entry is filtered as minslice in
legend.
|
Chart |
getModel() |
BaseRenderer |
getRenderer(int iIndex)
Provides access to any other renderer in the group that participates in
chart rendering
|
RunTimeContext |
getRunTimeContext() |
Series |
getSeries() |
int |
getSeriesCount() |
SeriesDefinition |
getSeriesDefinition() |
int |
getSeriesIndex()
Identifies the series sequence # in the list of series renders(start from
0).
|
ISeriesRenderingHints |
getSeriesRenderingHints() |
static double |
getX(Location[] loa,
int iProperty)
Finds particular X value from given location list.
|
IDisplayServer |
getXServer() |
static double |
getY(Location[] loa,
int iProperty)
Finds particular Y value from given location list.
|
static BaseRenderer[] |
instances(Chart cm,
RunTimeContext rtc,
PlotComputation oComputations)
This method returns appropriate renders for the given chart model.
|
boolean |
isInteractivityEnabled()
Returns if interactivity is enabled on the model.
|
boolean |
isRightToLeft()
Returns if the right-left mode is enabled.
|
boolean |
isTransposed()
Returns if current chart is transposed.
|
void |
processTrigger(Trigger tg,
StructureSource source)
post-process the triggers.
|
void |
render(java.util.Map<Series,LegendItemRenderingHints> htRenderers,
Bounds bo)
Renders all blocks using the appropriate block z-order and the
containment hierarchy.
|
void |
renderLabel(IPrimitiveRenderer ipr,
Block b,
java.lang.Object oSource)
Renders label of a LabelBlock.
|
void |
renderLabel(java.lang.Object oSource,
int iTextRenderType,
Label laDataPoint,
Position lp,
Location lo,
Bounds bo)
This convenience method renders the data point label along with the
shadow If there's a need to render the data point label and the shadow
separately, each call should be made separately by calling into the
primitive rendering interface directly.
|
void |
renderLabel(java.lang.Object oSource,
int iTextRenderType,
Label laDataPoint,
Position lp,
Location lo,
Bounds bo,
DeferredCache _dc)
Renderer label with specified
DeferredCache . |
void |
renderLegend(IPrimitiveRenderer ipr,
Legend lg,
java.util.Map<Series,LegendItemRenderingHints> htRenderers)
Renders the legend block based on the legend rendering rules.
|
void |
renderPlot(IPrimitiveRenderer ipr,
Plot p)
Renders the Plot
|
void |
renderTitle(IPrimitiveRenderer ipr,
TitleBlock b)
Renders the Chart Title Block
|
void |
set(BaseRenderer[] _brna)
Sets all associated renderers used for current chart rendering.
|
void |
set(Chart _cm,
PlotComputation _oComputation,
Series _se,
SeriesDefinition _sd)
Sets the context information for current renderer.
|
void |
set(DeferredCache _dc)
Sets the deferred cache used by current renderer.
|
void |
set(IDeviceRenderer _ir)
Sets the device renderer for current renderer.
|
void |
set(IDisplayServer _xs)
Sets the diplay server for current renderer.
|
void |
set(ISeriesRenderingHints _srh)
Sets the series rendering hints for current renderer.
|
void |
set(RunTimeContext _rtc)
Sets the runtime context object for current renderer.
|
void |
setDeferredCacheManager(DeferredCacheManager dcm)
Set current
DeferredCacheManager instance. |
Anchor |
switchAnchor(Anchor anchor)
Switch Anchor value due to right-left setting.
|
Position |
switchPosition(Position po)
Switch Position value due to right-left setting.
|
TextAlignment |
switchTextAlignment(TextAlignment ta)
Switch TextAlignment value due to right-left setting.
|
void |
updateTranslucency(Fill fill,
Series se)
Updates the tranlucency of the fill according to series setting.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, renderLegendGraphic, renderSeries
public BaseRenderer()
_ir
- _cm
- public void set(Chart _cm, PlotComputation _oComputation, Series _se, SeriesDefinition _sd)
_cm
- _o
- _se
- _ax
- _sd
- public void set(DeferredCache _dc)
public final void set(IDeviceRenderer _ir)
public final void set(IDisplayServer _xs)
public final void set(ISeriesRenderingHints _srh)
public final void set(BaseRenderer[] _brna)
public final void set(RunTimeContext _rtc)
public final ISeriesRenderingHints getSeriesRenderingHints()
public final IDisplayServer getXServer()
public final double getDeviceScale()
public final SeriesDefinition getSeriesDefinition()
public final int getSeriesIndex()
public final int getSeriesCount()
public final DeferredCache getDeferredCache()
public final BaseRenderer getRenderer(int iIndex)
iIndex
- public final RunTimeContext getRunTimeContext()
public void render(java.util.Map<Series,LegendItemRenderingHints> htRenderers, Bounds bo) throws ChartException
bo
- ChartException
public IAxesDecorator getAxesDecorator(OneAxis ax)
public boolean isTransposed()
public void renderLegend(IPrimitiveRenderer ipr, Legend lg, java.util.Map<Series,LegendItemRenderingHints> htRenderers) throws ChartException
ipr
- lg
- htRenderers
- ChartException
public void renderPlot(IPrimitiveRenderer ipr, Plot p) throws ChartException
ipr
- The Primitive Renderer of a Device Rendererp
- The Plot to renderChartException
public void renderLabel(IPrimitiveRenderer ipr, Block b, java.lang.Object oSource) throws ChartException
ipr
- b
- ChartException
public void renderTitle(IPrimitiveRenderer ipr, TitleBlock b) throws ChartException
ipr
- The Primitive Renderer of a Device Rendererb
- The TitleBlock to renderChartException
public static final BaseRenderer[] instances(Chart cm, RunTimeContext rtc, PlotComputation oComputations) throws ChartException
cm
- rtc
- oComputations
- ChartException
public final Series getSeries()
public final Chart getModel()
public final PlotComputation getComputations()
public final IDeviceRenderer getDevice()
public static final double getY(Location[] loa, int iProperty)
loa
- Location list.iProperty
- This value must be one of following:
public static final double getX(Location[] loa, int iProperty)
loa
- Location list.iProperty
- This value must be one of following:
public void processTrigger(Trigger tg, StructureSource source)
tg
- The Trigger to modifysource
- The StructureSource associated with the Triggerpublic final void renderLabel(java.lang.Object oSource, int iTextRenderType, Label laDataPoint, Position lp, Location lo, Bounds bo) throws ChartException
ChartException
public final void renderLabel(java.lang.Object oSource, int iTextRenderType, Label laDataPoint, Position lp, Location lo, Bounds bo, DeferredCache _dc) throws ChartException
DeferredCache
.oSource
- iTextRenderType
- laDataPoint
- lp
- lo
- bo
- _dc
- ChartException
public boolean isRightToLeft()
public Anchor switchAnchor(Anchor anchor)
anchor
- public Position switchPosition(Position po)
po
- public TextAlignment switchTextAlignment(TextAlignment ta)
ta
- public boolean isInteractivityEnabled()
public java.util.Collection<java.lang.Integer> getFilteredMinSliceEntry(DataSetIterator dsi)
public void updateTranslucency(Fill fill, Series se)
fill
- se
- public void setDeferredCacheManager(DeferredCacheManager dcm)
DeferredCacheManager
instance.dcm
- specified instance of DeferredCacheMananger
.public DeferredCacheManager getDeferredCacheManager()
DeferredCacheManager
instance.DeferredCacheManager
instance.Copyright © 2014 OpenText Corp. All rights reserved.