com.supermap.mapping.imChart
Class BarChartData
- java.lang.Object
-
- com.supermap.mapping.imChart.ChartData
-
- com.supermap.mapping.imChart.BarChartData
-
public class BarChartData extends ChartData
Bar chart data class, build chart data for displaying bar chart Each value corresponds to a label and color and is scaled to a rectangle
-
-
Constructor Summary
Constructors Constructor and Description BarChartData()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addData(java.lang.String label, int color, double value)
Added a data, include its color and label.void
clear()
clean all databoolean
remove(int index)
Removed a data, include its value, color and label.void
setColor(int color)
Sets chart sub-object colorvoid
setLabel(java.lang.String label)
Sets chart sub-object label
-
-
-
Method Detail
-
setColor
public void setColor(int color)
Description copied from class:ChartData
Sets chart sub-object color- Overrides:
setColor
in classChartData
- Parameters:
color
- chart sub-object color- See Also:
ChartData.setColor(int)
-
setLabel
public void setLabel(java.lang.String label)
Description copied from class:ChartData
Sets chart sub-object label- Overrides:
setLabel
in classChartData
- Parameters:
label
- label text of icon sub-object.- See Also:
ChartData.setLabel(java.lang.String)
-
addData
public void addData(java.lang.String label, int color, double value)
Added a data, include its color and label.- Parameters:
label
- label.color
- display color.value
- value.
-
remove
public boolean remove(int index)
Removed a data, include its value, color and label.- Parameters:
index
- data index.- Returns:
- True, if successful; Otherwise false.
-
clear
public void clear()
clean all data
-
-