public class IlvDefaultIMapDefinition extends IlvIMapDefinition
IlvDefaultIMapDefinition
class can be used to generate image
maps by specifying an association between data sets and area attributes.DATASET_MAP, POINT_MAP
Constructor and Description |
---|
IlvDefaultIMapDefinition(IlvDataSet[] dataSets,
IlvIMapAttributes[] attr)
Initializes a definition to generate areas for all the points of
the specified data sets.
|
IlvDefaultIMapDefinition(IlvDataSet[] dataSets,
IlvIMapAttributes[][] attr)
Initializes a definition to generate areas for all the points of
the specified data sets.
|
IlvDefaultIMapDefinition(IlvDataSet dataSet,
IlvIMapAttributes attr)
Initializes a definition to generate areas for all the points of
the specified data sets.
|
IlvDefaultIMapDefinition(IlvDataSetPoint[] dataPoints,
IlvIMapAttributes[] attr)
Initializes a definition to generate areas for the specified data points.
|
IlvDefaultIMapDefinition(Map<?,? extends IlvIMapAttributes> itemsAttributes)
Initializes a definition to generate areas for the specified legend
items or tree model nodes.
|
Modifier and Type | Method and Description |
---|---|
IlvIMapAttributes |
getAttributes(IlvDataSetPoint dp)
Returns the area attributes for the specified point.
|
IlvIMapAttributes |
getAttributes(IlvLegendItem item)
Returns the area attributes for the specified legend item.
|
IlvIMapAttributes |
getAttributes(IlvTreeListModel model,
TreePath path)
Returns the area attributes for the specified tree model element.
|
boolean |
mustGenerate(IlvChartRenderer r)
Indicates whether areas should be generated for the specified renderer.
|
void |
setLegendItemAttributes(Map<IlvLegendItem,? extends IlvIMapAttributes> itemsAttributes)
Sets the legend items attributes for this area definition.
|
void |
setTreeNodeAttributes(Map<Object,? extends IlvIMapAttributes> nodesAttributes)
Sets the tree node attributes for this area definition.
|
getCircleRadius, getType, isChartOrigin, setChartOrigin, setCircleRadius
public IlvDefaultIMapDefinition(IlvDataSet dataSet, IlvIMapAttributes attr)
IlvIMapDefinition.DATASET_MAP
.dataSet
- The considered data set.attr
- The attributes for all the data points.public IlvDefaultIMapDefinition(IlvDataSet[] dataSets, IlvIMapAttributes[] attr)
IlvIMapDefinition.DATASET_MAP
.dataSets
- The considered data sets.attr
- The attributes for the data points. Each element in the
array represents the attribute for all the points of the corresponding
data set in the dataSets
parameter.IllegalArgumentException
- If dataSets
and
attr
do not have the same length.public IlvDefaultIMapDefinition(IlvDataSet[] dataSets, IlvIMapAttributes[][] attr)
IlvIMapDefinition.POINT_MAP
.dataSets
- The considered data sets.attr
- The attributes for the data points, specified in a
two-dimensional array:
dataSets
parameter.IllegalArgumentException
- If the dataSets
and
attr
do not have the same length, or if the inner dimensions
of attr
do not match the number of data points in the
corresponding data set.public IlvDefaultIMapDefinition(IlvDataSetPoint[] dataPoints, IlvIMapAttributes[] attr)
IlvIMapDefinition.POINT_MAP
.dataPoints
- The considered data points.attr
- The attributes for the data points.IllegalArgumentException
- If the dataPoints
and
attr
do not have the same length.public IlvDefaultIMapDefinition(Map<?,? extends IlvIMapAttributes> itemsAttributes)
itemsAttributes
- A Map
containing the area attributes
as an object-attributes binding. This map is not copied.public void setTreeNodeAttributes(Map<Object,? extends IlvIMapAttributes> nodesAttributes)
nodesAttributes
- A Map
containing the area attributes
as a node-attributes binding. This map is not copied.public void setLegendItemAttributes(Map<IlvLegendItem,? extends IlvIMapAttributes> itemsAttributes)
itemsAttributes
- A Map
containing the area attributes
as an item-attributes binding. This map is not copied.public boolean mustGenerate(IlvChartRenderer r)
mustGenerate
in class IlvIMapDefinition
public IlvIMapAttributes getAttributes(IlvDataSetPoint dp)
getAttributes
in class IlvIMapDefinition
public IlvIMapAttributes getAttributes(IlvTreeListModel model, TreePath path)
getAttributes
in class IlvIMapDefinition
model
- The tree model.path
- A tree path starting at the tree model root and ending at
the specific tree model node.public IlvIMapAttributes getAttributes(IlvLegendItem item)
getAttributes
in class IlvIMapDefinition
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.