|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.computation.Methods
org.eclipse.birt.chart.datafeed.DataSetAdapter
public class DataSetAdapter
Provides a no-op implementation of the
IDataSetProcessor
interface
definition to be subclassed by each extension writer as needed.
Field Summary |
---|
Fields inherited from interface org.eclipse.birt.chart.computation.IConstants |
---|
ABOVE, ANCILLARY_AXIS, ANCILLARY_BASE, ARRAY, AUTO, AVERAGE, AXIS, BACKWARD, BASE, BASE_AXIS, BELOW, BIG_NUMBER_PRIMITIVE_ARRAY, BOOLEAN, BOTTOM, CENTER, COLLECTION, DATE_TIME, DESIGN_TIME, EMPTY_STRING, EQUAL, FORWARD, HORIZONTAL, INSIDE, LABELS, LEFT, LEGEND_ENTRY, LEGEND_GROUP_NAME, LEGEND_MINSLICE_ENTRY, LEGEND_SEPERATOR, LESS, LINE_EXPAND_DOUBLE_SIZE, LINE_EXPAND_SIZE, LINEAR, LOG_10, LOGARITHMIC, MAJOR, MAX, MIN, MINOR, MORE, NON_PRIMITIVE_ARRAY, NULL_STRING, NUMBER_PRIMITIVE_ARRAY, NUMERICAL, ONE_SPACE, ORTHOGONAL, ORTHOGONAL_AXIS, OTHER, OUTSIDE, PERCENT, POSITION_MASK, POSITION_MOVE_ABOVE, POSITION_MOVE_BELOW, POSITION_MOVE_LEFT, POSITION_MOVE_RIGHT, PRIMITIVE_ARRAY, RIGHT, RUN_TIME, SOME_NULL, TEXT, THREE_D, TICK_ABOVE, TICK_ACROSS, TICK_BELOW, TICK_LEFT, TICK_NONE, TICK_RIGHT, TICK_SIDE1, TICK_SIDE2, TICK_SIZE, TOP, TWO_5_D, TWO_D, UNDEFINED, UNDEFINED_STRING, USER_INTERFACE, VALUE, VERTICAL |
Constructor Summary | |
---|---|
DataSetAdapter()
|
Method Summary | |
---|---|
DataSet |
fromString(java.lang.String sDataSetRepresentation,
DataSet ds)
Attempts to parse a line of text representing multiple values of a specific data element type and updates an existing data set or creates a new data set filled with these values. |
java.util.List<Query> |
getDataDefinitionsForGrouping(Series series)
Provides a list of data definitions for grouping. |
java.lang.String |
getExpectedStringFormat()
|
java.util.Locale |
getLocale()
Provides the locale to device renderer implementations as needed to retrieve localized resources for presentation. |
java.lang.Object |
getMaximum(DataSet ds)
Causes implementation specific data set processor classes to compute the maximum value in a data set of a specific series type. |
java.lang.Object |
getMinimum(DataSet ds)
Causes implementation specific data set processor classes to compute the minimum value in a data set of a specific series type. |
com.ibm.icu.util.ULocale |
getULocale()
Provides the locale to device renderer implementations as needed to retrieve localized resources for presentation. |
DataSet |
populate(java.lang.Object oResultSetDef,
DataSet ds)
Populates a data set with data element values retrieved from a result set created as a result of query execution |
void |
setLocale(com.ibm.icu.util.ULocale lcl)
A convenience method provided to associate a locale with a display server |
java.lang.String |
toString(java.lang.Object[] columnData)
Attempts to format a column of data to string. |
Methods inherited from class org.eclipse.birt.chart.computation.Methods |
---|
asDateTime, asDouble, asInteger, computeBox, computeBox, computeBox, computeBox, computeFontHeight, computeHeight, computeHeight, computeLabelSize, computePolygon, computePolygon, computePolygon, computeRotatedTopPoint, computeWidth, computeWidth, getLabelPosition, getLocation, getLocation, getLocation, getNormalizedLocation, getNormalizedLocation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSetAdapter()
Method Detail |
---|
public DataSet fromString(java.lang.String sDataSetRepresentation, DataSet ds) throws ChartException
IDataSetProcessor
fromString
in interface IDataSetProcessor
sDataSetRepresentation
- A line of text containing a list of data element values that
may be parsed.ds
- An existing data set (or null for a new one) that needs to be
filled with data elements created by parsing the line of text
as per the expected string format.
ChartException
public DataSet populate(java.lang.Object oResultSetDef, DataSet ds) throws ChartException
IDataSetProcessor
populate
in interface IDataSetProcessor
oResultSetDef
- An instance of a generic result set that is host application
specific. For BIRT, the result set class is ResultSetDataSetds
- An existing data set (or null for a new one) that needs to be
filled with with data elements extracted from the result set
definition
ChartException
public java.lang.Object getMinimum(DataSet ds) throws ChartException
IDataSetProcessor
getMinimum
in interface IDataSetProcessor
ds
- The data set for which the minimum value needs to be computed
ChartException
public java.lang.Object getMaximum(DataSet ds) throws ChartException
IDataSetProcessor
getMaximum
in interface IDataSetProcessor
ds
- The data set for which the maximum value needs to be computed
ChartException
public java.lang.String getExpectedStringFormat()
getExpectedStringFormat
in interface IDataSetProcessor
public java.util.Locale getLocale()
IDataSetProcessor
getLocale
in interface IDataSetProcessor
public com.ibm.icu.util.ULocale getULocale()
IDataSetProcessor
getULocale
in interface IDataSetProcessor
public final void setLocale(com.ibm.icu.util.ULocale lcl)
lcl
- The locale to be setpublic java.lang.String toString(java.lang.Object[] columnData) throws ChartException
IDataSetProcessor
toString
in interface IDataSetProcessor
columnData
- array of column data. All elements have same class type.
ChartException
public java.util.List<Query> getDataDefinitionsForGrouping(Series series)
IDataSetProcessor
getDataDefinitionsForGrouping
in interface IDataSetProcessor
series
- series to get data definitions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |