Package com.storedobject.chart
Class SelfPositioningChart
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Chart
com.storedobject.chart.AbstractChart
com.storedobject.chart.SelfPositioningChart
- All Implemented Interfaces:
Component
,ComponentPart
,ComponentProperty
,HasAnimation
,HasData
,HasEmphasis
,HasPosition
- Direct Known Subclasses:
FunnelChart
,GaugeChart
,PieChart
Base class for those charts that do not require a
CoordinateSystem
to
plot on and supports its own positioning.- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.chart.Chart
Chart.Emphasis, Chart.Label, Chart.LabelPosition
-
Constructor Summary
ConstructorsConstructorDescriptionSelfPositioningChart
(ChartType type, boolean axesBased, AbstractDataProvider<?>... data) Create a chart of a given type and data.SelfPositioningChart
(ChartType type, AbstractDataProvider<?>... data) Create a chart of a given type and data. -
Method Summary
Modifier and TypeMethodDescriptionfinal Position
getPosition
(boolean create) Get the position of this on the chart display area.final void
setPosition
(Position position) Set the position of this.Methods inherited from class com.storedobject.chart.AbstractChart
setData, setData, setType, validate
Methods inherited from class com.storedobject.chart.Chart
addEvent, addParts, dataToEmbed, dataValue, dataValueIndex, declareData, encodeJSON, 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
-
SelfPositioningChart
Create a chart of a given type and data.- Parameters:
type
- type of the chart.data
- Data to be used (multiples of them for charts that use multi-axis coordinate systems).
-
SelfPositioningChart
Create a chart of a given type and data.- Parameters:
type
- type of the chart.axesBased
- Whether this is an axes-based chart or not.data
- Data to be used (multiples of them for charts that use multi-axis coordinate systems).
-
-
Method Details
-
getPosition
Description copied from interface:HasPosition
Get the position of this on the chart display area. (Iftrue
is passed as the parameter, a new position will be created if not already exists).- Specified by:
getPosition
in interfaceHasPosition
- Parameters:
create
- Whether to create it or not.- Returns:
- Position.
-
setPosition
Description copied from interface:HasPosition
Set the position of this.- Specified by:
setPosition
in interfaceHasPosition
- Parameters:
position
- Position to set.
-