com.supermap.mapping.dyn
Class DynLineChart
- java.lang.Object
-
- com.supermap.mapping.dyn.DynamicElement
-
- com.supermap.mapping.dyn.DynamicChart
-
- com.supermap.mapping.dyn.DynLineChart
-
public class DynLineChart extends DynamicChart
The dynamic line 'chart class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
DynLineChart.LineChartType
The line chart type.static class
DynLineChart.ValuePointStyle
The value point style on the line chart.-
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 DynLineChart()
Create a new line 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[] points, int pointColor, float lineWidth, DynLineChart.ValuePointStyle pointStyle)
Add the chart data.void
addChartData(java.lang.String tile, double[] points, int pointColor, float lineWidth, DynLineChart.ValuePointStyle pointStyle, boolean display)
Add the chart data.boolean
fromGeometry(Geometry geometry)
Create a new line chart object on the dynamic layer through Geometry.DynLineChart.LineChartType
getLineChartType()
Gets the line chart type.java.lang.String
getXTitle()
Gets the X coordinate title.java.lang.String
getYTitle()
Gets the Y coordinate title.void
setLineChartType(DynLineChart.LineChartType lineChartType)
Sets the line chart type.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
-
DynLineChart
public DynLineChart()
Create a new line 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[] points, int pointColor, float lineWidth, DynLineChart.ValuePointStyle pointStyle)
Add the chart data.- Parameters:
tile
- Data titlepoints
- Value. The point data in the line chart.pointColor
- The point and line color in the line chart.lineWidth
- The line WidthpointStyle
- The point style in line chart, such as square, triangle, circle and so on.
-
addChartData
public void addChartData(java.lang.String tile, double[] points, int pointColor, float lineWidth, DynLineChart.ValuePointStyle pointStyle, boolean display)
Add the chart data.- Parameters:
tile
- Data titlepoints
- Value. The point data in the line chart.pointColor
- The point and line color in the line chart.lineWidth
- The line WidthpointStyle
- The point style in line chart, such as square, triangle, circle and so on.display
- Whether to display the value.
-
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.
-
getLineChartType
public DynLineChart.LineChartType getLineChartType()
Gets the line chart type.- Returns:
- The line chart type.
-
setLineChartType
public void setLineChartType(DynLineChart.LineChartType lineChartType)
Sets the line chart type.- Parameters:
lineChartType
- The line chart type.
-
fromGeometry
public boolean fromGeometry(Geometry geometry)
Create a new line chart object on the dynamic layer through Geometry.- Specified by:
fromGeometry
in classDynamicElement
- Parameters:
geometry
- Geographic elements- Returns:
- Whether it is successful.
-
-