com.supermap.mapping.dyn
Class DynPieChart
- java.lang.Object
-
- com.supermap.mapping.dyn.DynamicElement
-
- com.supermap.mapping.dyn.DynamicChart
-
- com.supermap.mapping.dyn.DynPieChart
-
public class DynPieChart extends DynamicChart
The dynamic pie chart class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.supermap.mapping.dyn.DynamicElement
DynamicElement.ElementType, DynamicElement.OnClickListener, DynamicElement.OnDownAndUpListener, DynamicElement.OnLongPressListener
-
-
Constructor Summary
Constructors Constructor and Description DynPieChart()
Create a new pie chart object on the dynamic layer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addChartData(java.lang.String[] tiles, double[] pieValues, int[] pieColors)
Add the chart data.void
addChartData(java.lang.String tile, double pieValue, int pieColor)
Add the chart data.boolean
fromGeometry(Geometry geometry)
Create a new pie chart object on the dynamic layer through Geometry.boolean
isChartElementClickable()
Gets whether the chart can be clicked.void
setChartElementClickable(boolean isChartElementClickable)
Sets whether the chart can be clicked.-
Methods inherited from class com.supermap.mapping.dyn.DynamicChart
getAxesColor, getChartHeight, getChartTile, getChartWidth, isShowGridX, isShowGridY, setAxesColor, setChartSize, setChartTile, setShowGrid
-
Methods inherited from class com.supermap.mapping.dyn.DynamicElement
addAnimator, addPoint, dispose, getBounds, getGeoPoints, getID, getMinShowScale, getName, getNameColor, getNameOffsetX, getNameOffsetY, getNamePosition, getNameSize, getNameTextAlign, getOnDownAndUpListener, getOnLongPressListener, getPart, getStyle, getTag, getType, getUserData, isNameVisible, setMinShowScale, setName, setNameColor, setNameOffsetX, setNameOffsetY, setNamePosition, setNameSize, setNameTextAlign, setNameVisible, setOnClickListenner, setOnDownAndUpListener, setOnLongPressListener, setStyle, setTag, setUserData, updatePoint
-
-
-
-
Constructor Detail
-
DynPieChart
public DynPieChart()
Create a new pie chart object on the dynamic layer.
-
-
Method Detail
-
addChartData
public void addChartData(java.lang.String tile, double pieValue, int pieColor)
Add the chart data.- Parameters:
tile
- Data titlepieValue
- Value,that is, the pie data.pieColor
- Pie Color
-
addChartData
public void addChartData(java.lang.String[] tiles, double[] pieValues, int[] pieColors)
Add the chart data.- Parameters:
tiles
- Data title array. The number should be the same as pie number.pieValues
- Value, namely, the pie data. The number should be the same as title array number.pieColors
- The pie color. When the color number is less than the value number, use the repeat colors.
-
isChartElementClickable
public boolean isChartElementClickable()
Gets whether the chart can be clicked.- Returns:
- Whether the chart can be clicked.
-
setChartElementClickable
public void setChartElementClickable(boolean isChartElementClickable)
Sets whether the chart can be clicked.- Parameters:
isChartElementClickable
- Whether the chart can be clicked
-
fromGeometry
public boolean fromGeometry(Geometry geometry)
Create a new pie chart object on the dynamic layer through Geometry.- Specified by:
fromGeometry
in classDynamicElement
- Parameters:
geometry
- Geographic elements- Returns:
- Whether it is successful.
-
-