com.supermap.mapping.imChart
Class LineChartData
- java.lang.Object
-
- com.supermap.mapping.imChart.ChartData
-
- com.supermap.mapping.imChart.LineChartData
-
public class LineChartData extends ChartData
line chart data class, build chart data for displaying line chart A number of values form a polyline
-
-
Constructor Summary
Constructors Constructor and Description LineChartData()
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addValue(double value)
Added a valuevoid
clearValues()
clear databoolean
removeValue(int index)
remove value with specified positionvoid
setLineWidth(float width)
sets line widthvoid
setNodeColor(int color)
Sets node colorvoid
setNodeRadius(float radius)
Sets node radius
-
-
-
Method Detail
-
addValue
public void addValue(double value)
Added a value- Parameters:
value
- value
-
removeValue
public boolean removeValue(int index)
remove value with specified position- Parameters:
index
- value index.- Returns:
- return whether remove successfully
-
clearValues
public void clearValues()
clear data
-
setLineWidth
public void setLineWidth(float width)
sets line width- Parameters:
width
- line width
-
setNodeRadius
public void setNodeRadius(float radius)
Sets node radius- Parameters:
radius
- node radius
-
setNodeColor
public void setNodeColor(int color)
Sets node color- Parameters:
color
- node color
-
-