com.supermap.mapping.dyn
Class DynBarChart
- java.lang.Object
-
- com.supermap.mapping.dyn.DynamicElement
-
- com.supermap.mapping.dyn.DynamicChart
-
- com.supermap.mapping.dyn.DynBarChart
-
public class DynBarChart extends DynamicChart
The dynamic histogram 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 DynBarChart()
Create a new histogram 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 tile, double[] barValues, int barColor)
Add the chart data.boolean
fromGeometry(Geometry geometry)
Create a new histogram object on the dynamic layer through Geometry.float
getBarSpacing()
Gets the columnar interval.java.lang.String
getXTitle()
Gets the X coordinate title.java.lang.String
getYTitle()
Gets the Y coordinate title.void
setBarSpacing(float barSpacing)
Sets the columnar interval.void
setXAxisLabel(int x, java.lang.String label)
Sets the X coordinate point label.void
setXTitle(java.lang.String xTitle)
Sets the X coordinate title.void
setYAxisLabel(int y, java.lang.String label)
Sets the Y coordinate point label.void
setYTitle(java.lang.String yTitle)
Sets the Y coordinate title.-
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
-
DynBarChart
public DynBarChart()
Create a new histogram chart object on the dynamic layer.
-
-
Method Detail
-
setXAxisLabel
public void setXAxisLabel(int x, java.lang.String label)
Sets the X coordinate point label.- Parameters:
x
- X Valuelabel
- The label
-
setYAxisLabel
public void setYAxisLabel(int y, java.lang.String label)
Sets the Y coordinate point label.- Parameters:
y
- Y Valuelabel
- The label
-
addChartData
public void addChartData(java.lang.String tile, double[] barValues, int barColor)
Add the chart data.- Parameters:
tile
- Data titlebarValues
- Value, namely the column data.barColor
- Bar Color
-
getXTitle
public java.lang.String getXTitle()
Gets the X coordinate title.- Returns:
- The X coordinate title.
-
setXTitle
public void setXTitle(java.lang.String xTitle)
Sets the X coordinate title.- Parameters:
xTitle
- The X coordinate title.
-
getYTitle
public java.lang.String getYTitle()
Gets the Y coordinate title.- Returns:
- The Y coordinate title.
-
setYTitle
public void setYTitle(java.lang.String yTitle)
Sets the Y coordinate title.- Parameters:
yTitle
- The Y coordinate title.
-
getBarSpacing
public float getBarSpacing()
Gets the columnar interval.- Returns:
- Column interval, the unit is in pixels.
-
setBarSpacing
public void setBarSpacing(float barSpacing)
Sets the columnar interval.- Parameters:
barSpacing
- Column interval, the unit is in pixels.
-
fromGeometry
public boolean fromGeometry(Geometry geometry)
Create a new histogram object on the dynamic layer through Geometry.- Specified by:
fromGeometry
in classDynamicElement
- Parameters:
geometry
- Geographic elements- Returns:
- Whether it is successful.
-
-