Class CoordinateChartModelImpl<T extends CoordinateChartModelImpl>
- All Implemented Interfaces:
HasStartEffect<T>
,ChartModel<T>
,CoordinateChartModel<T>
,HasColors<T>
,Serializable
- Direct Known Subclasses:
RadarChartModelImpl
,RectangularChartModelImpl
http://docs.amcharts.com/3/javascriptcharts/AmCoordinateChart
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.charts.model.chart.impl.AbstractChart
AbstractChart.DataProviderChangeListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds colors.Adds graphs to the chart.Adds guides.addValueAxes
(ValueAxis... valueAxes) Adds ValueAxes.Sets the list of colors.Sets the list of graphs belonging to this chart.setGridAboveGraphs
(Boolean gridAboveGraphs) Set grid above graphs to true if grid should be drawn above the graphs or below.Sets list of guides.setSequencedAnimation
(Boolean sequencedAnimation) Specifies whether the animation should be sequenced or all objects should appear at once.setStartAlpha
(Double startAlpha) Sets the initial opacity of the column/line.setStartDuration
(Double startDuration) Sets duration of the animation, in seconds.setStartEffect
(AnimationEffect startEffect) Sets animation effect.setUrlTarget
(String urlTarget) Sets target of URL.setValueAxes
(List<ValueAxis> valueAxes) Sets list of ValueAxis.Methods inherited from class io.jmix.charts.model.chart.impl.AbstractChart
addAdditionalFields, addData, addDataProviderChangeListener, addLabels, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addTitles, fireDataProviderChanged, getAccessible, getAccessibleDescription, getAccessibleTitle, getAddClassNames, getAdditionalFields, getAllLabels, getAutoDisplay, getAutoResize, getAutoTransform, getBackgroundAlpha, getBackgroundColor, getBalloon, getBorderAlpha, getBorderColor, getClassNamePrefix, getColor, getCreditsPosition, getDataProvider, getDecimalSeparator, getDefs, getExport, getFontFamily, getFontSize, getHandDrawn, getHandDrawScatter, getHandDrawThickness, getHideBalloonTime, getLanguage, getLegend, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getType, getUsePrefixes, removeDataProviderSetListener, setAccessible, setAccessibleDescription, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setClassNamePrefix, setColor, setCreditsPosition, setDataProvider, setDecimalSeparator, setDefs, setExport, setFontFamily, setFontSize, setHandDrawn, setHandDrawScatter, setHandDrawThickness, setHideBalloonTime, setLanguage, setLegend, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setUsePrefixes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.charts.model.chart.ChartModel
addAdditionalFields, addData, addLabels, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addTitles, getAccessible, getAccessibleDescription, getAccessibleTitle, getAddClassNames, getAdditionalFields, getAllLabels, getAutoDisplay, getAutoResize, getAutoTransform, getBackgroundAlpha, getBackgroundColor, getBalloon, getBorderAlpha, getBorderColor, getClassNamePrefix, getColor, getCreditsPosition, getDataProvider, getDecimalSeparator, getDefs, getExport, getFontFamily, getFontSize, getHandDrawn, getHandDrawScatter, getHandDrawThickness, getHideBalloonTime, getLanguage, getLegend, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getUsePrefixes, setAccessible, setAccessibleDescription, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setClassNamePrefix, setColor, setCreditsPosition, setDataProvider, setDecimalSeparator, setDefs, setExport, setFontFamily, setFontSize, setHandDrawn, setHandDrawScatter, setHandDrawThickness, setHideBalloonTime, setLanguage, setLegend, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setUsePrefixes
-
Constructor Details
-
CoordinateChartModelImpl
-
-
Method Details
-
getColors
- Specified by:
getColors
in interfaceHasColors<T extends CoordinateChartModelImpl>
- Returns:
- List of colors
-
setColors
Description copied from interface:HasColors
Sets the list of colors.If you use charts based on
SlicedChartModelImpl
it specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color.If you use charts based on
CoordinateChartModelImpl
orStockChartModel
it specifies the colors of the graphs if the lineColor of a graph is not set. If there are more graphs then colors in this array, the chart picks a random color. If not set the default value is["#FF6600", "#FCD202", "#B0DE09", "#0D8ECF", "#2A0CD0", "#CD0D74", "#CC0000", "#00CC00", "#0000CC", "#DDDDDD", "#999999", "#333333", "#990000"]
If you use chart based on
SlicedChartModelImpl
(PieChart, FunnelChart). Specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color. If not set default value is["#FF0F00", "#FF6600", "#FF9E01", "#FCD202", "#F8FF01", "#B0DE09", "#04D215", "#0D8ECF", "#0D52D1", "#2A0CD0", "#8A0CCF", "#CD0D74", "#754DEB", "#DDDDDD", "#999999", "#333333", "#000000", "#57032A", "#CA9726", "#990000", "#4B0C25"]
- Specified by:
setColors
in interfaceHasColors<T extends CoordinateChartModelImpl>
- Parameters:
colors
- list of colors- Returns:
- chart
-
addColors
Description copied from interface:HasColors
Adds colors.- Specified by:
addColors
in interfaceHasColors<T extends CoordinateChartModelImpl>
- Parameters:
colors
- list of colors- Returns:
- chart
-
getGraphs
- Specified by:
getGraphs
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Returns:
- list of graphs
-
setGraphs
Description copied from interface:CoordinateChartModel
Sets the list of graphs belonging to this chart.- Specified by:
setGraphs
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
graphs
- list of graphs- Returns:
- coordinate chart model
-
addGraphs
Description copied from interface:CoordinateChartModel
Adds graphs to the chart.- Specified by:
addGraphs
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
graphs
- graphs- Returns:
- coordinate chart model
-
getStartEffect
- Specified by:
getStartEffect
in interfaceHasStartEffect<T extends CoordinateChartModelImpl>
- Returns:
- animation effect
-
setStartEffect
Description copied from interface:HasStartEffect
Sets animation effect.If you use
AngularGaugeChartModelImpl
animation effect will be applied for the arrow. If not set the default value is EASE_IN_SINE.If you use charts based on
CoordinateChartModel
(GanttChart, RadarChart, SerialChart, XYChart) default value is ELASTIC.If you use chart based on
SlicedChartModelImpl
default value is BOUNCE.- Specified by:
setStartEffect
in interfaceHasStartEffect<T extends CoordinateChartModelImpl>
- Parameters:
startEffect
- the start effect- Returns:
- object with set animation effect
-
getStartDuration
- Specified by:
getStartDuration
in interfaceHasStartEffect<T extends CoordinateChartModelImpl>
- Returns:
- duration of the animation, in seconds
-
setStartDuration
Description copied from interface:HasStartEffect
Sets duration of the animation, in seconds.If you use
AngularGaugeChartModelImpl
default value is 1.If you use charts based on
CoordinateChartModel
(GanttChart, RadarChart, SerialChart, XYChart) default value is 0.If you use chart based on
SlicedChartModelImpl
default value is 1.- Specified by:
setStartDuration
in interfaceHasStartEffect<T extends CoordinateChartModelImpl>
- Parameters:
startDuration
- the start duration- Returns:
- object with set duration of the animation
-
getValueAxes
- Specified by:
getValueAxes
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Returns:
- list of ValueAxis
-
setValueAxes
Description copied from interface:CoordinateChartModel
Sets list of ValueAxis. Chart creates one value axis automatically.- Specified by:
setValueAxes
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
valueAxes
- list of ValueAxis- Returns:
- coordinate chart model
-
addValueAxes
Description copied from interface:CoordinateChartModel
Adds ValueAxes.- Specified by:
addValueAxes
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
valueAxes
- the value axes- Returns:
- coordinate chart model
-
getGuides
- Specified by:
getGuides
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Returns:
- list of guides
-
setGuides
Description copied from interface:CoordinateChartModel
Sets list of guides. Instead of adding guides to the axes, you can push all of them to this list. In case guide has category or date defined, it will automatically will be assigned to the category axis. Otherwise to first value axis, unless you specify a different valueAxis for the guide.- Specified by:
setGuides
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
guides
- list of guides- Returns:
- coordinate chart model
-
addGuides
Description copied from interface:CoordinateChartModel
Adds guides.- Specified by:
addGuides
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
guides
- the guides- Returns:
- coordinate chart model
-
getGridAboveGraphs
- Specified by:
getGridAboveGraphs
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Returns:
- true if grid should be drawn above the graphs or below
-
setGridAboveGraphs
Description copied from interface:CoordinateChartModel
Set grid above graphs to true if grid should be drawn above the graphs or below. Will not work properly with 3D charts. If not set the default value is false.- Specified by:
setGridAboveGraphs
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
gridAboveGraphs
- grid above graphs option- Returns:
- coordinate chart model
-
getSequencedAnimation
- Specified by:
getSequencedAnimation
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Returns:
- true if the animation should be sequenced, false if all objects should appear at once
-
setSequencedAnimation
Description copied from interface:CoordinateChartModel
Specifies whether the animation should be sequenced or all objects should appear at once. If not set the default value is true.- Specified by:
setSequencedAnimation
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
sequencedAnimation
- sequenced animation option- Returns:
- coordinate chart model
-
getStartAlpha
- Specified by:
getStartAlpha
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Returns:
- initial opacity of the column/line
-
setStartAlpha
Description copied from interface:CoordinateChartModel
Sets the initial opacity of the column/line. If you set startDuration to a value higher than 0, the columns/lines will fade in from startAlpha. Value range is 0 - 1. If not set the default value is 1.- Specified by:
setStartAlpha
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
startAlpha
- - the start alpha- Returns:
- coordinate chart model
-
getUrlTarget
- Specified by:
getUrlTarget
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Returns:
- target of URL
-
setUrlTarget
Description copied from interface:CoordinateChartModel
Sets target of URL. If not set the default value is "_self".- Specified by:
setUrlTarget
in interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>
- Parameters:
urlTarget
- the URL target string- Returns:
- coordinate chart model
-
getWiredFields
- Overrides:
getWiredFields
in classAbstractChart<T extends CoordinateChartModelImpl>
- Returns:
- fields of the
DataItem
that are bound to the chart
-