Package com.storedobject.chart
Class ScatterChart
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Chart
com.storedobject.chart.AbstractChart
com.storedobject.chart.XYChart
com.storedobject.chart.ScatterChart
- All Implemented Interfaces:
Component
,ComponentPart
,ComponentProperty
,HasAnimation
,HasData
,HasEmphasis
Scatter chart. A scatter chart is plotted on a
RectangularCoordinate
system.- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.chart.Chart
Chart.Emphasis, Chart.Label, Chart.LabelPosition
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ScatterChart
(AbstractDataProvider<?> xData, AbstractDataProvider<?> yData) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Encode the JSON string with the properties of this.getPointSymbol
(boolean create) Get thePointSymbol
.void
setPointSymbol
(PointSymbol pointSymbol) Set a different point-symbol.void
validate()
This method is invoked bySOChart
to check if the component or part is valid or not.Methods inherited from class com.storedobject.chart.XYChart
setStackName, setXData, setYData
Methods inherited from class com.storedobject.chart.AbstractChart
setData, setData, setType
Methods inherited from class com.storedobject.chart.Chart
addEvent, addParts, dataToEmbed, dataValue, dataValueIndex, declareData, getAnimation, getCoordinateSystem, getData, getEmphasis, getEvents, getItemStyle, getLabel, getLabelName, getMarkArea, getMax, getMin, getName, getTooltip, getType, plotOn, plotOn, setAnimation, setColors, setCustomRenderer, setEmphasis, setItemStyle, setLabel, setMarkArea, setName, setTooltip, typeValue
Methods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getSerial, getZ, hashCode, hasId, setSerial, setZ
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getRenderingIndex, getSerial, setRenderingIndex, setSerial
-
Constructor Details
-
ScatterChart
public ScatterChart()Constructor. (Data can be set later). -
ScatterChart
Constructor.- Parameters:
xData
- Data for X axis.yData
- Data for Y axis.
-
-
Method Details
-
validate
Description copied from interface:ComponentPart
This method is invoked bySOChart
to check if the component or part is valid or not.- Specified by:
validate
in interfaceComponentPart
- Overrides:
validate
in classAbstractChart
- Throws:
ChartException
- Raises exception if the component or part is not valid.
-
encodeJSON
Description copied from interface:ComponentProperty
Encode the JSON string with the properties of this.- Specified by:
encodeJSON
in interfaceComponentProperty
- Overrides:
encodeJSON
in classXYChart
- Parameters:
sb
- Encoded JSON string to be appended to this.
-
getPointSymbol
Get thePointSymbol
.- Parameters:
create
- Whether to create it if not exists or not.- Returns:
- The instance of the current
PointSymbol
or newly created instance if requested.
-
setPointSymbol
Set a different point-symbol.- Parameters:
pointSymbol
- An instance of thePointSymbol
.
-