public final class Generator extends java.lang.Object implements IGenerator
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bindData(IDataRowExpressionEvaluator expressionEvaluator,
Chart chart,
RunTimeContext rtc)
Binds data to the chart model using a row expression evaluator.
|
void |
bindData(IDataRowExpressionEvaluator expressionEvaluator,
IActionEvaluator iae,
Chart chart,
RunTimeContext rtc)
Binds data to the chart model using a row expression evaluator.
|
void |
bindData(java.sql.ResultSet resultSet,
Chart chart,
RunTimeContext rtc)
Binds a sql Resuset to a chart model.
|
GeneratedChartState |
build(IDisplayServer ids,
Chart cmRunTime,
Bounds bo,
IExternalContext externalContext,
RunTimeContext rtc)
Builds and computes preferred sizes of various chart components offscreen
using the provided display server.
|
GeneratedChartState |
build(IDisplayServer ids,
Chart cmRunTime,
Bounds bo,
IExternalContext externalContext,
RunTimeContext rtc,
org.eclipse.birt.chart.style.IStyleProcessor externalProcessor)
Builds and computes preferred sizes of various chart components offscreen
using the provided display server.
|
GeneratedChartState |
build(IDisplayServer ids,
Chart cmRunTime,
Bounds bo,
RunTimeContext rtc)
Builds and computes preferred sizes of various chart components offscreen
using the provided display server.
|
GeneratedChartState |
build(IDisplayServer ids,
Chart cmRunTime,
org.mozilla.javascript.Scriptable scParent,
Bounds bo,
RunTimeContext rtc)
已过时。
|
GeneratedChartState |
build(IDisplayServer ids,
Chart cmRunTime,
org.mozilla.javascript.Scriptable scParent,
Bounds bo,
RunTimeContext rtc,
org.eclipse.birt.chart.style.IStyleProcessor externalProcessor)
|
java.util.List<java.lang.String> |
getRowExpressions(Chart cm)
This retrieves all the data row related expressions stored in the chart
model.
|
java.util.List<java.lang.String> |
getRowExpressions(Chart cm,
IActionEvaluator iae)
This retrieves all the row expressions stored in the chart model.
|
java.util.List<java.lang.String> |
getRowExpressions(Chart cm,
IActionEvaluator iae,
boolean needChangeValueExpr)
This retrieves all the row expressions stored in the chart model.
|
static Generator |
instance()
Returns a singleton instance of the chart generator.
|
RunTimeContext |
prepare(Chart model,
IExternalContext externalContext,
IScriptClassLoader iscl,
java.util.Locale locale)
已过时。
|
RunTimeContext |
prepare(Chart model,
IExternalContext externalContext,
IScriptClassLoader iscl,
com.ibm.icu.util.ULocale locale)
Since v2, it must be called before build( ), and should only be called
once per design model.
|
void |
prepareStyles(Chart model,
org.eclipse.birt.chart.style.IStyleProcessor externalProcessor)
Prepare all default styles for various StyledComponent.
|
void |
prepareStyles(Chart model,
org.eclipse.birt.chart.style.IStyleProcessor externalProcessor,
RunTimeContext rtc)
Prepare all default styles for various StyledComponent.
|
void |
refresh(GeneratedChartState gcs)
Performs a minimal rebuild of the chart if non-sizing attributes are
altered or the dataset for any series has changed.
|
void |
render(IDeviceRenderer idr,
GeneratedChartState gcs)
Draws a previously built chart using the specified device renderer into a
target output device.
|
void |
setDefaultBackground(ColorDefinition cd) |
public static final Generator instance()
public final void prepareStyles(Chart model, org.eclipse.birt.chart.style.IStyleProcessor externalProcessor, RunTimeContext rtc)
model - externalProcessor - rtc - runtime context.public final void prepareStyles(Chart model, org.eclipse.birt.chart.style.IStyleProcessor externalProcessor)
model - externalProcessor - public java.util.List<java.lang.String> getRowExpressions(Chart cm) throws ChartException
cm - The Chart modelChartExceptionpublic java.util.List<java.lang.String> getRowExpressions(Chart cm, IActionEvaluator iae, boolean needChangeValueExpr) throws ChartException
cm - The Chart modeliae - An IActionEvaluator instanceChartExceptionpublic java.util.List<java.lang.String> getRowExpressions(Chart cm, IActionEvaluator iae) throws ChartException
cm - The Chart modeliae - An IActionEvaluator instanceChartExceptionpublic void bindData(java.sql.ResultSet resultSet,
Chart chart,
RunTimeContext rtc)
throws ChartException
bindData 在接口中 IGeneratorresultSet - A sql resultset that contains the data. The following methods
of the interface need to be implemented: first(), next(),
getObject(String), close()chart - The chart model to bind the data tortc - The runtime contextChartExceptionpublic void bindData(IDataRowExpressionEvaluator expressionEvaluator, Chart chart, RunTimeContext rtc) throws ChartException
bindData 在接口中 IGeneratorexpressionEvaluator - The data row expression evaluator implementationchart - The chart modelrtc - The runtime contextChartExceptionpublic void bindData(IDataRowExpressionEvaluator expressionEvaluator, IActionEvaluator iae, Chart chart, RunTimeContext rtc) throws ChartException
bindData 在接口中 IGeneratorexpressionEvaluator - The data row expression evaluator implementationiae - An IActionEvaluator instance.chart - The chart modelrtc - The runtime contextChartExceptionpublic RunTimeContext prepare(Chart model, IExternalContext externalContext, IScriptClassLoader iscl, java.util.Locale locale) throws ChartException
prepare(Chart, IExternalContext, IScriptClassLoader, ULocale)
instead.model - Chart design modelexternalContext - External Contextlocale - LocaleChartExceptionpublic RunTimeContext prepare(Chart model, IExternalContext externalContext, IScriptClassLoader iscl, com.ibm.icu.util.ULocale locale) throws ChartException
prepare 在接口中 IGeneratormodel - Chart design modelexternalContext - External Contextlocale - LocaleChartExceptionpublic final GeneratedChartState build(IDisplayServer ids, Chart cmRunTime, org.mozilla.javascript.Scriptable scParent, Bounds bo, RunTimeContext rtc) throws ChartException
build(IDisplayServer, Chart, Bounds, IExternalContext, RunTimeContext)
instead.ids - A display server using which the chart may be built.cmRunTime - The runtime chart model (bound to a dataset).scParent - A parent script handler that may be attached to the existing
chart model script handler.bo - The bounds associated with the chart being built.rtc - Encapsulates the runtime environment for the build process.ChartExceptionpublic final GeneratedChartState build(IDisplayServer ids, Chart cmRunTime, org.mozilla.javascript.Scriptable scParent, Bounds bo, RunTimeContext rtc, org.eclipse.birt.chart.style.IStyleProcessor externalProcessor) throws ChartException
build(IDisplayServer, Chart, Bounds, IExternalContext, RunTimeContext, IStyleProcessor)
instead.ids - A display server using which the chart may be built.cmRunTime - The runtime chart model (bound to a dataset).scParent - A parent script handler that may be attached to the existing
chart model script handler.bo - The bounds associated with the chart being built.rtc - Encapsulates the runtime environment for the build process.externalProcessor - An external style processor. If this is null, an implicit
processor will be used.ChartExceptionpublic final GeneratedChartState build(IDisplayServer ids, Chart cmRunTime, Bounds bo, RunTimeContext rtc) throws ChartException
ids - A display server using which the chart may be built.cmRunTime - The runtime chart model (bound to a dataset).bo - The bounds associated with the chart being built.rtc - Encapsulates the runtime environment for the build process.ChartExceptionpublic final GeneratedChartState build(IDisplayServer ids, Chart cmRunTime, Bounds bo, IExternalContext externalContext, RunTimeContext rtc) throws ChartException
build 在接口中 IGeneratorids - A display server using which the chart may be built.cmRunTime - The runtime chart model (bound to a dataset).externalContext - An external context object.bo - The bounds associated with the chart being built.rtc - Encapsulates the runtime environment for the build process.ChartExceptionpublic final GeneratedChartState build(IDisplayServer ids, Chart cmRunTime, Bounds bo, IExternalContext externalContext, RunTimeContext rtc, org.eclipse.birt.chart.style.IStyleProcessor externalProcessor) throws ChartException
build 在接口中 IGeneratorids - A display server using which the chart may be built.cmRunTime - The run time chart model (bound to a dataset).externalContext - An external context object.bo - The bounds associated with the chart being built.rtc - Encapsulates the runtime environment for the build process.externalProcessor - An external style processor. If it's null, an implicit
processor will be used.ChartExceptionpublic final void refresh(GeneratedChartState gcs) throws ChartException
refresh 在接口中 IGeneratorgcs - A previously built chart encapsulated in a transient
structure.ChartExceptionpublic final void render(IDeviceRenderer idr, GeneratedChartState gcs) throws ChartException
render 在接口中 IGeneratoridr - A device renderer that determines the target context on which
the chart will be rendered.gcs - A previously built chart that needs to be rendered.ChartExceptionpublic void setDefaultBackground(ColorDefinition cd)
Copyright © 2005-2008 Actuate Corp. All rights reserved.