Interface AQChartModel
-
public interface AQChartModelChartModelSynopsis:
ChartModel contains the data to be rendered in the chart.
Description:
ChartModel provides an interface to query and modify the chart's underlying data set.
Values are stored as a list of rows, with each row containing a category value and a list of series values (one value for each series).
Note that category values are not unique, and the same category value can appear in multiple rows.
The list of series is created and queried using these methods:
addSeries(String name)
addSeries(String ... names)
setSeries(int index, String name)
Once the series are defined, then values can be specified individually using:
setValue(int seriesNumber, int categoryNumber, Number value)
Or, rows of values can be specified using:
addRow(Object category, List <Number> values)
addRow(int rowIndex, Object category, List <Number> values)
Note that the list of values contains a value from each series. These values are all associated with the specified category.
The ChartModel provides a set of statistics for each series, each category and for the entire dataset.
These statistics include totals, min/max, range
ChartModel data can be obtained from an AQDataSource.
Once the DataSource is specified, then the category & series values can be populated by selecting DataSource fields using these methods:
addCategoryField(String field)
addSeriesField(String field)
setCategoryFieldNumbers(Integer ... fieldIndexes)
setCategoryFields(String ... fields)
setSeriesFieldNumbers(Integer ... fieldIndexes)
setSeriesFields(String ... fields)
Values are also summarized by country when the category values contain country names/ids.
This geographic categorization is visualized in the Map chart, which highlights countries based on these totals.
The default country identifiers use the standard ISO2, ISO3, FIPS & GMI codes.
These identifiers can be modified using these methods:
resetCountryNameMap()
addCountryNameMapping(String defaultCountryNameMapping, String newCountryNameMapping)
removeCountryNameMapping(String countryNameMapping)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCategory(java.lang.Object category)Add category with the specified value (String, Number or Date)voidaddCategoryField(java.lang.String categoryFieldName)Select category from a field in the datasourcevoidaddCountryNameMapping(java.lang.String defaultCountryName, java.lang.String newCountryNameMapping)Map the specified name to the specified countryAQChartRowaddRow(java.lang.Object category, java.lang.Number... values)Add a row of data containing the specified Category and an array of numbers, one for each series.voidaddSeries(java.lang.String series)Add a series with the specified namevoidaddSeries(java.lang.String... series)Add an array of series namesvoidaddSeriesField(java.lang.String seriesFieldName)Add a series of values from the specified field in the current DataSourcevoidclearCountryNameMap()Clear all country name mappings.voidclearRows()Remove all rowsvoidclearSeries()Remove all seriesjava.lang.ObjectgetCategory(int categoryNumber)Get the category object at the specified row index.doublegetCategoryAxisDivisor()Get the Divisor used to subdivide the category axisdoublegetCategoryAxisMax()Get the Maximum value on the category axisdoublegetCategoryAxisMin()Get the Minimum value on the category axisdoublegetCategoryAxisMinSeparation()Get the Minimum separation between category axis valuesdoublegetCategoryAxisRange()Get the Size of range on the category axisdoublegetCategoryAxisSubdivisions()Get the Number of subdivisions along the range of the category axisintgetCategoryCount()Get the number of categoriesjava.util.List<java.lang.String>getCategoryFields()Get the list of datasource fields containing category valuesdoublegetCategoryTotal(int categoryNumber)Get the Total of all series values in the specified categorydoublegetCategoryTotalNegative(int categoryNumber)Get the Total of all negative series values in the specified categorydoublegetCategoryTotalPositive(int categoryNumber)Get the Total of all positive series values in the specified categoryjava.lang.DoublegetCountryMax(int seriesNumber)Get the Maximum value of all per-country totals (sum of all values for a specified series and country, regardless of identifier (e.g.java.lang.DoublegetCountryMin(int seriesNumber)Get the Minimum value of all per-country totals (sum of all values for a specified series and country, regardless of identifier (e.g.java.lang.DoublegetCountryValue(java.lang.String countryId, int seriesNumber)Get the Sum of all series values for the specified countryjava.lang.DoublegetCountryValueByIndex(int countryIndex, int seriesNumber)Get the Sum of all series values for the specified countryAQDataSourcegetDataSource()Get the chart model's underlying DataSource (for example, an AQDataSet or AQPivotDataSet).doublegetDivisor()Get the Divisor used when all series are mergeddoublegetDivisor(int seriesNumber)Get the Divisor used for the specified seriesdoublegetDivisorTotal()Get the Divisor used to subdivide the total rangedoublegetMaximumAxisValue()Get the Maximum value for all seriesdoublegetMaximumAxisValue(int seriesNumber)Get the Maximum value in seriesdoublegetMaximumValue()Get the Maximum value across all seriesdoublegetMaximumValue(int seriesNumber)Get the Maximum value in seriesdoublegetMinimumAxisValue()Get the Minimum value for all seriesdoublegetMinimumAxisValue(int seriesNumber)Get the Minimum value in seriesdoublegetMinimumValue()Get the Minimum value across all seriesdoublegetMinimumValue(int seriesNumber)Get the Minimum value in seriesdoublegetRange()Get the Size of range when all series are mergeddoublegetRange(int seriesNumber)Get the Size of the numeric range for the specified seriesdoublegetRangeTotal()Get the Size of numeric range between total positive & total negativeAQChartRowgetRow(int rowNumber)Get the row at the specified indexintgetRowCount()Return the number of rows in the modeljava.util.List<AQChartRow>getRows()Get the list of rowsjava.util.List<java.lang.Number>getRowValues(int rowNumber)Get the List of values at specified rowjava.util.List<java.lang.String>getSeries()Get the list of series namesjava.lang.StringgetSeries(int seriesNumber)Get the series name at the specified indexintgetSeriesCount()Get the number of seriesjava.util.List<java.lang.String>getSeriesFields()Get the list of datasource fields containing series valuesdoublegetSubdivisions()Get the Number of subdivisions on range when all series are mergeddoublegetSubdivisions(int seriesNumber)Get the Number of subdivisions on a series rangedoublegetSubdivisionsTotal()Get the Number of subdivisions on the total rangedoublegetTotal(int seriesNumber)Get the Total of all values in the specified seriesdoublegetTotalAbsolute(int seriesNumber)Get the Total of all absolute values in the specified seriesdoublegetTotalNegative()Get the Sum of all series minima which are less than zerodoublegetTotalPositive()Get the Sum of all series maxima which are greater than zerojava.lang.NumbergetValue(int categoryNumber, int seriesNumber)Get the Value at specified category and series indicesAQChartRowinsertRow(int index, java.lang.Object category, java.lang.Number... values)Insert a row of data containing the specified Category and an array of numbers, one for each series.voidinsertSeriesField(int seriesNumber, java.lang.String seriesFieldName)Select a series field from the datasource and place it at the specified series indexbooleanisUseNumericCategoryAxis()Get the True if the category axis uses numeric valuesvoidparseDataScript(java.lang.String dataScript)Parses string to generate model data
Script Format:
category="[Category A], [Category B], [Category C]",
series="[Series X], [Series Y]",
values="1000,2000,3000,5,10,20"voidremoveCategory(java.lang.Object category)Remove first category which matches the specified categoryvoidremoveCategoryByIndex(int index)Remove the category at the specified indexvoidremoveCountryNameMapping(java.lang.String countryNameMapping)Remove the specified country name mapping.AQChartRowremoveRow(int index)Remove the row at the specified indexvoidremoveSeries(java.lang.String series)Remove first series with the specified namevoidremoveSeriesField(int seriesNumber)Remove a series fieldvoidresetCountryNameMap()Reset the country name mappings to the defaults.voidsetCategory(int categoryNumber, java.lang.Object category)Set category at the specified indexvoidsetCategoryFieldNumbers(java.lang.Integer... categoryFieldNumbers)Select categories from one or more fields in the datasourcevoidsetCategoryFields(java.lang.String... categoryFieldNames)Select categories from one or more fields in the datasourcevoidsetDataSource(AQDataSource dataSource)Use the specified AQDataSource as the Chart Model's data sourcevoidsetDataSource(AQDataSet dataSet)Use the specified AQDataSet as the Chart Model's data source.voidsetDataSource(AQPivotDataSet pivotDataSet)Use the specified AQPivotDataSet as the Chart Model's data source
voidsetMaximumAxisValue(double max)Set the maximum value for all seriesvoidsetMaximumAxisValue(int seriesNumber, double max)Set the maximum value for the specified seriesvoidsetMinimumAxisValue(double min)Set the minimum value for all seriesvoidsetMinimumAxisValue(int seriesNumber, double min)Set the minimum value for the specified seriesvoidsetMinimumMaximumAxisValues(double min, double max)Set both minimum and maximum values for all seriesvoidsetMinimumMaximumAxisValues(int seriesNumber, double min, double max)Set both minimum and maximum values for the specified seriesvoidsetSeries(int seriesNumber, java.lang.String series)Set the value of the specified seriesvoidsetSeriesFieldNumbers(java.lang.Integer... seriesFieldNumbers)Select series from one or more fields in the datasourcevoidsetSeriesFields(java.lang.String... seriesFieldNames)Select series from one or more fields in the datasourcevoidsetValue(int seriesNumber, int categoryNumber, java.lang.Number value)Set value at the specified series and category indices
-
-
-
Method Detail
-
parseDataScript
void parseDataScript(java.lang.String dataScript)
Parses string to generate model data
Script Format:
category="[Category A], [Category B], [Category C]",
series="[Series X], [Series Y]",
values="1000,2000,3000,5,10,20"
Note: values are in the order: [Series 0 Category 0], [Series 0 Category 1], [Series 0 Category 2], [Series 1 Category 0], ...
- Parameters:
dataScript- String in the format: 'category="[Category A], [Category B], [Category C]", series="[Series X], [Series Y]", values="1000,2000,3000, 5,10,20"'
-
setDataSource
void setDataSource(AQDataSet dataSet)
Use the specified AQDataSet as the Chart Model's data source.
Once the DataSource is specified, then the category & series values can be populated by selecting DataSource fields using these methods:
addCategoryField(String field)
addSeriesField(String field)
setCategoryFieldNumbers(Integer ... fieldIndexes)
setCategoryFields(String ... fields)
setSeriesFieldNumbers(Integer ... fieldIndexes)
setSeriesFields(String ... fields)- Parameters:
dataSet- AQDataSet containing rows and columns of data. If null, then values must be explicitly added using the add/insert/set methods.
-
getDataSource
AQDataSource getDataSource()
Get the chart model's underlying DataSource (for example, an AQDataSet or AQPivotDataSet).- Returns:
- dataSource Chart Model's AQDataSource containing rows and columns of data
-
setDataSource
void setDataSource(AQDataSource dataSource)
Use the specified AQDataSource as the Chart Model's data source
Once the DataSource is specified, then the category & series values can be populated by selecting DataSource fields using these methods:
addCategoryField(String field)
addSeriesField(String field)
setCategoryFieldNumbers(Integer ... fieldIndexes)
setCategoryFields(String ... fields)
setSeriesFieldNumbers(Integer ... fieldIndexes)
setSeriesFields(String ... fields)- Parameters:
dataSource- AQDataSource containing rows and columns of data. If null, then values must be explicitly added using the add/insert/set methods.
-
setDataSource
void setDataSource(AQPivotDataSet pivotDataSet)
Use the specified AQPivotDataSet as the Chart Model's data source
Once the DataSource is specified, then the category & series values can be populated by selecting DataSource fields using these methods:
addCategoryField(String field)
addSeriesField(String field)
setCategoryFieldNumbers(Integer ... fieldIndexes)
setCategoryFields(String ... fields)
setSeriesFieldNumbers(Integer ... fieldIndexes)
setSeriesFields(String ... fields)- Parameters:
pivotDataSet- AQPivotDataSet containing rows and columns of data. If null, then values must be explicitly added using the add/insert/set methods.
-
addSeriesField
void addSeriesField(java.lang.String seriesFieldName)
Add a series of values from the specified field in the current DataSource- Parameters:
seriesFieldName- Name of field in datasource
-
insertSeriesField
void insertSeriesField(int seriesNumber, java.lang.String seriesFieldName)Select a series field from the datasource and place it at the specified series index- Parameters:
seriesNumber- Zero-based series indexseriesFieldName- Name of field in datasource
-
getSeriesFields
java.util.List<java.lang.String> getSeriesFields()
Get the list of datasource fields containing series values- Returns:
- List of datasource fields containing series values
-
setSeriesFields
void setSeriesFields(java.lang.String... seriesFieldNames)
Select series from one or more fields in the datasource- Parameters:
seriesFieldNames- Names of fields in datasource
-
setSeriesFieldNumbers
void setSeriesFieldNumbers(java.lang.Integer... seriesFieldNumbers)
Select series from one or more fields in the datasource- Parameters:
seriesFieldNumbers- Column numbers of fields in datasource
-
removeSeriesField
void removeSeriesField(int seriesNumber)
Remove a series field- Parameters:
seriesNumber- Zero-based series index
-
addCategoryField
void addCategoryField(java.lang.String categoryFieldName)
Select category from a field in the datasource- Parameters:
categoryFieldName- Name of field in datasource
-
getCategoryFields
java.util.List<java.lang.String> getCategoryFields()
Get the list of datasource fields containing category values- Returns:
- List of category fields in datasource
-
setCategoryFields
void setCategoryFields(java.lang.String... categoryFieldNames)
Select categories from one or more fields in the datasource- Parameters:
categoryFieldNames- Name of field in datasource
-
setCategoryFieldNumbers
void setCategoryFieldNumbers(java.lang.Integer... categoryFieldNumbers)
Select categories from one or more fields in the datasource- Parameters:
categoryFieldNumbers- Column numbers of field in datasource
-
getSeries
java.lang.String getSeries(int seriesNumber)
Get the series name at the specified index- Parameters:
seriesNumber- Zero-based series index- Returns:
- Series name
-
getSeries
java.util.List<java.lang.String> getSeries()
Get the list of series names- Returns:
- List of series names
-
getSeriesCount
int getSeriesCount()
Get the number of series- Returns:
- Number of series
-
addSeries
void addSeries(java.lang.String series)
Add a series with the specified name- Parameters:
series- Series name
-
addSeries
void addSeries(java.lang.String... series)
Add an array of series names- Parameters:
series- Array of series names
-
removeSeries
void removeSeries(java.lang.String series)
Remove first series with the specified name- Parameters:
series- Series name
-
setSeries
void setSeries(int seriesNumber, java.lang.String series)Set the value of the specified series- Parameters:
seriesNumber- Zero-based index of seriesseries- Series name
-
clearSeries
void clearSeries()
Remove all series
-
getCategory
java.lang.Object getCategory(int categoryNumber)
Get the category object at the specified row index.- Parameters:
categoryNumber- Zero-based index of category- Returns:
- Category value at the specified index
-
getCategoryCount
int getCategoryCount()
Get the number of categories- Returns:
- Number of categories
-
addCategory
void addCategory(java.lang.Object category)
Add category with the specified value (String, Number or Date)- Parameters:
category- Category value (String, Number or Date)
-
removeCategory
void removeCategory(java.lang.Object category)
Remove first category which matches the specified category- Parameters:
category- Category value
-
removeCategoryByIndex
void removeCategoryByIndex(int index)
Remove the category at the specified index- Parameters:
index- Index of category
-
setCategory
void setCategory(int categoryNumber, java.lang.Object category)Set category at the specified index- Parameters:
categoryNumber- Zero-based index of categorycategory- Category value
-
clearRows
void clearRows()
Remove all rows
-
getRows
java.util.List<AQChartRow> getRows()
Get the list of rows- Returns:
- List of rows
-
getRow
AQChartRow getRow(int rowNumber)
Get the row at the specified index- Parameters:
rowNumber- Zero-based index of row- Returns:
- Row at the specified index
-
getRowCount
int getRowCount()
Return the number of rows in the model- Returns:
- the number of rows in the model
-
addRow
AQChartRow addRow(java.lang.Object category, java.lang.Number... values)
Add a row of data containing the specified Category and an array of numbers, one for each series.- Parameters:
category- Category object, allows null valuevalues- Array of numbers, one for each series- Returns:
- the newly added AQChartRow
-
insertRow
AQChartRow insertRow(int index, java.lang.Object category, java.lang.Number... values)
Insert a row of data containing the specified Category and an array of numbers, one for each series.- Parameters:
index- Index at which row should be insertedcategory- Category object, allows null valuevalues- Array of numbers, one for each series- Returns:
- the newly added AQChartRow
-
removeRow
AQChartRow removeRow(int index)
Remove the row at the specified index- Parameters:
index- Row index- Returns:
- the row that was removed
-
setValue
void setValue(int seriesNumber, int categoryNumber, java.lang.Number value)Set value at the specified series and category indices- Parameters:
seriesNumber- Zero-based index of seriescategoryNumber- Zero-based index of categoryvalue- Value to set
-
getRowValues
java.util.List<java.lang.Number> getRowValues(int rowNumber)
Get the List of values at specified row- Parameters:
rowNumber- Zero-based index of row- Returns:
- List of values at specified row
-
getValue
java.lang.Number getValue(int categoryNumber, int seriesNumber)Get the Value at specified category and series indices- Parameters:
categoryNumber- Zero-based index of categoryseriesNumber- Zero-based index of series- Returns:
- Value at specified category and series indices
-
getRange
double getRange(int seriesNumber)
Get the Size of the numeric range for the specified series- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Size of numeric range for the specified series
-
getMaximumValue
double getMaximumValue()
Get the Maximum value across all series- Returns:
- Maximum value across all series
-
getMinimumValue
double getMinimumValue()
Get the Minimum value across all series- Returns:
- Minimum value across all series
-
getMinimumValue
double getMinimumValue(int seriesNumber)
Get the Minimum value in series- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Minimum value in series
-
getMaximumValue
double getMaximumValue(int seriesNumber)
Get the Maximum value in series- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Maximum value in series
-
getMinimumAxisValue
double getMinimumAxisValue(int seriesNumber)
Get the Minimum value in series- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Minimum value in series
-
getMaximumAxisValue
double getMaximumAxisValue(int seriesNumber)
Get the Maximum value in series- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Maximum value in series
-
getMinimumAxisValue
double getMinimumAxisValue()
Get the Minimum value for all series- Returns:
- Minimum value for all series
-
getMaximumAxisValue
double getMaximumAxisValue()
Get the Maximum value for all series- Returns:
- Maximum value for all series
-
setMinimumAxisValue
void setMinimumAxisValue(int seriesNumber, double min)Set the minimum value for the specified series- Parameters:
seriesNumber- Zero-based index of seriesmin- New minimum value
-
setMaximumAxisValue
void setMaximumAxisValue(int seriesNumber, double max)Set the maximum value for the specified series- Parameters:
seriesNumber- Zero-based index of seriesmax- New maximum value
-
setMinimumAxisValue
void setMinimumAxisValue(double min)
Set the minimum value for all series- Parameters:
min- New minimum value
-
setMaximumAxisValue
void setMaximumAxisValue(double max)
Set the maximum value for all series- Parameters:
max- New maximum value
-
setMinimumMaximumAxisValues
void setMinimumMaximumAxisValues(double min, double max)Set both minimum and maximum values for all series- Parameters:
min- New minimum valuemax- New maximum value
-
setMinimumMaximumAxisValues
void setMinimumMaximumAxisValues(int seriesNumber, double min, double max)Set both minimum and maximum values for the specified series- Parameters:
seriesNumber- Zero-based index of seriesmin- New minimum valuemax- New maximum value
-
getTotalPositive
double getTotalPositive()
Get the Sum of all series maxima which are greater than zero- Returns:
- Sum of all series maxima which are greater than zero
-
getTotalNegative
double getTotalNegative()
Get the Sum of all series minima which are less than zero- Returns:
- Sum of all series minima which are less than zero
-
getRangeTotal
double getRangeTotal()
Get the Size of numeric range between total positive & total negative- Returns:
- Size of numeric range between total positive & total negative
-
getSubdivisionsTotal
double getSubdivisionsTotal()
Get the Number of subdivisions on the total range- Returns:
- Number of subdivisions on the total range
-
getDivisorTotal
double getDivisorTotal()
Get the Divisor used to subdivide the total range- Returns:
- Divisor used to subdivide the total range
-
getSubdivisions
double getSubdivisions(int seriesNumber)
Get the Number of subdivisions on a series range- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Number of subdivisions on a series range
-
getDivisor
double getDivisor(int seriesNumber)
Get the Divisor used for the specified series- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Divisor used for the specified series
-
getSubdivisions
double getSubdivisions()
Get the Number of subdivisions on range when all series are merged- Returns:
- Number of subdivisions on range when all series are merged
-
getDivisor
double getDivisor()
Get the Divisor used when all series are merged- Returns:
- Divisor used when all series are merged
-
getRange
double getRange()
Get the Size of range when all series are merged- Returns:
- Size of range when all series are merged
-
getTotal
double getTotal(int seriesNumber)
Get the Total of all values in the specified series- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Total of all values in the specified series
-
getTotalAbsolute
double getTotalAbsolute(int seriesNumber)
Get the Total of all absolute values in the specified series- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Total of all absolute values in the specified series
-
getCategoryAxisMin
double getCategoryAxisMin()
Get the Minimum value on the category axis- Returns:
- Minimum value on the category axis
-
getCategoryAxisMax
double getCategoryAxisMax()
Get the Maximum value on the category axis- Returns:
- Maximum value on the category axis
-
getCategoryAxisDivisor
double getCategoryAxisDivisor()
Get the Divisor used to subdivide the category axis- Returns:
- Divisor used to subdivide the category axis
-
getCategoryAxisSubdivisions
double getCategoryAxisSubdivisions()
Get the Number of subdivisions along the range of the category axis- Returns:
- Number of subdivisions along the range of the category axis
-
getCategoryAxisRange
double getCategoryAxisRange()
Get the Size of range on the category axis- Returns:
- Size of range on the category axis
-
getCategoryAxisMinSeparation
double getCategoryAxisMinSeparation()
Get the Minimum separation between category axis values- Returns:
- Minimum separation between category axis values
-
getCategoryTotal
double getCategoryTotal(int categoryNumber)
Get the Total of all series values in the specified category- Parameters:
categoryNumber- Zero-based index of category- Returns:
- Total of all series values in the specified category
-
getCategoryTotalPositive
double getCategoryTotalPositive(int categoryNumber)
Get the Total of all positive series values in the specified category- Parameters:
categoryNumber- Zero-based index of category- Returns:
- Total of all positive series values in the specified category
-
getCategoryTotalNegative
double getCategoryTotalNegative(int categoryNumber)
Get the Total of all negative series values in the specified category- Parameters:
categoryNumber- Zero-based index of category- Returns:
- Total of all negative series values in the specified category
-
isUseNumericCategoryAxis
boolean isUseNumericCategoryAxis()
Get the True if the category axis uses numeric values- Returns:
- True if the category axis uses numeric values
-
getCountryValueByIndex
java.lang.Double getCountryValueByIndex(int countryIndex, int seriesNumber)Get the Sum of all series values for the specified country- Parameters:
countryIndex- Numeric country identifierseriesNumber- Zero-based index of series- Returns:
- Sum of all series values for the specified country
-
getCountryValue
java.lang.Double getCountryValue(java.lang.String countryId, int seriesNumber)Get the Sum of all series values for the specified country- Parameters:
countryId- Country identifier (e.g. "US", "USA", "United States"...)seriesNumber- Zero-based index of series- Returns:
- Sum of all series values for the specified country
-
getCountryMin
java.lang.Double getCountryMin(int seriesNumber)
Get the Minimum value of all per-country totals (sum of all values for a specified series and country, regardless of identifier (e.g. US, USA and United States all map to the same country))- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Minimum value of all per-country totals (sum of all values for a specified series and country, regardless of identifier (e.g. US, USA and United States all map to the same country))
-
getCountryMax
java.lang.Double getCountryMax(int seriesNumber)
Get the Maximum value of all per-country totals (sum of all values for a specified series and country, regardless of identifier (e.g. US, USA and United States all map to the same country))- Parameters:
seriesNumber- Zero-based index of series- Returns:
- Maximum value of all per-country totals (sum of all values for a specified series and country, regardless of identifier (e.g. US, USA and United States all map to the same country))
-
resetCountryNameMap
void resetCountryNameMap()
Reset the country name mappings to the defaults.
-
clearCountryNameMap
void clearCountryNameMap()
Clear all country name mappings.
-
addCountryNameMapping
void addCountryNameMapping(java.lang.String defaultCountryName, java.lang.String newCountryNameMapping)Map the specified name to the specified country- Parameters:
defaultCountryName- Default name of country to be mapped. Note: this country name is a reference to a default country mapping, and cannot be null.newCountryNameMapping- Name to be associated with the country specified in the first parameter. A null country name can be added to handle null category values.
-
removeCountryNameMapping
void removeCountryNameMapping(java.lang.String countryNameMapping)
Remove the specified country name mapping.- Parameters:
countryNameMapping- Name to be disassociated from its current country.
-
-