|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.render.BaseRenderer
Provides a generic framework that initiates the rendering sequence of the various chart components. Series type extensions could subclass this class if they plan on rendering everything for themselves in the plot area.
Field Summary | |
static ColorDefinition |
SHADOW
Internally used to simulate a translucent shadow |
Constructor Summary | |
BaseRenderer()
The internal constructor that must be defined as public |
Method Summary | |
Axis |
getAxis()
|
java.lang.Object |
getComputations()
|
DeferredCache |
getDeferredCache()
|
IDeviceRenderer |
getDevice()
|
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()
|
ISeriesRenderingHints |
getSeriesRenderingHints()
|
static double |
getX(Location[] loa,
int iProperty)
|
IDisplayServer |
getXServer()
|
static double |
getY(Location[] loa,
int iProperty)
|
static BaseRenderer[] |
instances(Chart cm,
RunTimeContext rtc,
java.lang.Object oComputations)
This method returns appropriate renders for the given chart model. |
boolean |
isInteractivityEnabled()
Returns if interactivity is enabled on the model. |
void |
processTrigger(Trigger tg,
StructureSource source)
post-process the triggers. |
void |
render(java.util.Map 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)
|
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 |
renderLegend(IPrimitiveRenderer ipr,
Legend lg,
java.util.Map htRenderers)
Renders the legend block based on the legend rendering rules. |
void |
renderPlot(IPrimitiveRenderer ipr,
Plot p)
|
void |
renderTitle(IPrimitiveRenderer ipr,
TitleBlock b)
|
void |
set(BaseRenderer[] _brna)
|
void |
set(Chart _cm,
java.lang.Object _o,
Series _se,
Axis _ax,
SeriesDefinition _sd)
|
void |
set(DeferredCache _dc)
|
void |
set(IDeviceRenderer _ir)
|
void |
set(IDisplayServer _xs)
|
void |
set(ISeriesRenderingHints _srh)
|
void |
set(RunTimeContext _rtc)
|
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 |
Field Detail |
public static final ColorDefinition SHADOW
Constructor Detail |
public BaseRenderer()
Method Detail |
public void set(Chart _cm, java.lang.Object _o, Series _se, Axis _ax, SeriesDefinition _sd)
_cm
- _o
- _se
- _ax
- _sd
- public final void set(DeferredCache _dc)
_dc
- public final void set(IDeviceRenderer _ir)
_ir
- public final void set(IDisplayServer _xs)
_xs
- public final void set(ISeriesRenderingHints _srh)
_srh
- public final void set(BaseRenderer[] _brna)
_brna
- public final void set(RunTimeContext _rtc)
_rtc
- public final ISeriesRenderingHints getSeriesRenderingHints()
public final IDisplayServer getXServer()
public final SeriesDefinition getSeriesDefinition()
public Axis getAxis()
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 htRenderers, Bounds bo) throws ChartException
bo
-
ChartException
public void renderLegend(IPrimitiveRenderer ipr, Legend lg, java.util.Map htRenderers) throws ChartException
ipr
- lg
- htRenderers
-
RenderingException
ChartException
public void renderPlot(IPrimitiveRenderer ipr, Plot p) throws ChartException
ipr
- p
-
RenderingException
ChartException
public void renderLabel(IPrimitiveRenderer ipr, Block b, java.lang.Object oSource) throws ChartException
ipr
- b
-
RenderingException
ChartException
public void renderTitle(IPrimitiveRenderer ipr, TitleBlock b) throws ChartException
ipr
- b
-
RenderingException
ChartException
public static final BaseRenderer[] instances(Chart cm, RunTimeContext rtc, java.lang.Object oComputations) throws ChartException
cm
- rtc
- oComputations
-
PluginException
ChartException
public final Series getSeries()
public final Chart getModel()
public final java.lang.Object getComputations()
public final IDeviceRenderer getDevice()
public static final double getY(Location[] loa, int iProperty)
loa
- iProperty
-
public static final double getX(Location[] loa, int iProperty)
loa
- iProperty
-
public void processTrigger(Trigger tg, StructureSource source)
tg
- public final void renderLabel(java.lang.Object oSource, int iTextRenderType, Label laDataPoint, Position lp, Location lo, Bounds bo) throws ChartException
ChartException
public boolean isInteractivityEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |