com.supermap.mapping.dyn
Class DynamicChart
- java.lang.Object
-
- com.supermap.mapping.dyn.DynamicElement
-
- com.supermap.mapping.dyn.DynamicChart
-
- Direct Known Subclasses:
- DynBarChart, DynLineChart, DynPieChart
public abstract class DynamicChart extends DynamicElement
The chart base class on dynamic layer.
-
-
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 DynamicChart()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getAxesColor()
Gets the color of coordinate axis.int
getChartHeight()
Gets the chart height.java.lang.String
getChartTile()
Gets the title.int
getChartWidth()
Gets the chart width.boolean
isShowGridX()
Gets whether to display the grid X.boolean
isShowGridY()
Gets whether to display the grid Y.void
setAxesColor(int axesColor)
Sets the color of coordinate axis.void
setChartSize(int width, int height)
Sets the chart size.void
setChartTile(java.lang.String chartTile, int color, float textSize)
Sets the chart title, color and font size.void
setShowGrid(boolean isShowGridX, boolean isShowGridY)
Sets whether to display the grid.-
Methods inherited from class com.supermap.mapping.dyn.DynamicElement
addAnimator, addPoint, dispose, fromGeometry, 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
-
-
-
-
Method Detail
-
getAxesColor
public int getAxesColor()
Gets the color of coordinate axis.- Returns:
- The color of coordinate axis.
-
setAxesColor
public void setAxesColor(int axesColor)
Sets the color of coordinate axis.- Parameters:
axesColor
- The color of coordinate axis.
-
setChartSize
public void setChartSize(int width, int height)
Sets the chart size.- Parameters:
width
- The chart width and the unit is pixel.height
- The chart height and the unit is pixel.
-
getChartWidth
public int getChartWidth()
Gets the chart width.- Returns:
- The chart width and the unit is pixel..
-
getChartHeight
public int getChartHeight()
Gets the chart height.- Returns:
- The chart height and the unit is pixel..
-
getChartTile
public java.lang.String getChartTile()
Gets the title.- Returns:
- Title
-
setChartTile
public void setChartTile(java.lang.String chartTile, int color, float textSize)
Sets the chart title, color and font size.- Parameters:
chartTile
- Titlecolor
- Color.textSize
- Font size.
-
setShowGrid
public void setShowGrid(boolean isShowGridX, boolean isShowGridY)
Sets whether to display the grid.- Parameters:
isShowGridX
- Whether to display the X axis grid.isShowGridY
- Whether to display the Y axis grid.
-
isShowGridX
public boolean isShowGridX()
Gets whether to display the grid X.- Returns:
- Whether to display the grid X.
-
isShowGridY
public boolean isShowGridY()
Gets whether to display the grid Y.- Returns:
- Whether to display the grid Y.
-
-