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
Constructors -
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, setUsePrefixesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getColorsin interfaceHasColors<T extends CoordinateChartModelImpl>- Returns:
- List of colors
-
setColors
Description copied from interface:HasColorsSets the list of colors.If you use charts based on
SlicedChartModelImplit 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
CoordinateChartModelImplorStockChartModelit 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:
setColorsin interfaceHasColors<T extends CoordinateChartModelImpl>- Parameters:
colors- list of colors- Returns:
- chart
-
addColors
Description copied from interface:HasColorsAdds colors.- Specified by:
addColorsin interfaceHasColors<T extends CoordinateChartModelImpl>- Parameters:
colors- list of colors- Returns:
- chart
-
getGraphs
- Specified by:
getGraphsin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Returns:
- list of graphs
-
setGraphs
Description copied from interface:CoordinateChartModelSets the list of graphs belonging to this chart.- Specified by:
setGraphsin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
graphs- list of graphs- Returns:
- coordinate chart model
-
addGraphs
Description copied from interface:CoordinateChartModelAdds graphs to the chart.- Specified by:
addGraphsin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
graphs- graphs- Returns:
- coordinate chart model
-
getStartEffect
- Specified by:
getStartEffectin interfaceHasStartEffect<T extends CoordinateChartModelImpl>- Returns:
- animation effect
-
setStartEffect
Description copied from interface:HasStartEffectSets animation effect.If you use
AngularGaugeChartModelImplanimation 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
SlicedChartModelImpldefault value is BOUNCE.- Specified by:
setStartEffectin interfaceHasStartEffect<T extends CoordinateChartModelImpl>- Parameters:
startEffect- the start effect- Returns:
- object with set animation effect
-
getStartDuration
- Specified by:
getStartDurationin interfaceHasStartEffect<T extends CoordinateChartModelImpl>- Returns:
- duration of the animation, in seconds
-
setStartDuration
Description copied from interface:HasStartEffectSets duration of the animation, in seconds.If you use
AngularGaugeChartModelImpldefault value is 1.If you use charts based on
CoordinateChartModel(GanttChart, RadarChart, SerialChart, XYChart) default value is 0.If you use chart based on
SlicedChartModelImpldefault value is 1.- Specified by:
setStartDurationin interfaceHasStartEffect<T extends CoordinateChartModelImpl>- Parameters:
startDuration- the start duration- Returns:
- object with set duration of the animation
-
getValueAxes
- Specified by:
getValueAxesin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Returns:
- list of ValueAxis
-
setValueAxes
Description copied from interface:CoordinateChartModelSets list of ValueAxis. Chart creates one value axis automatically.- Specified by:
setValueAxesin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
valueAxes- list of ValueAxis- Returns:
- coordinate chart model
-
addValueAxes
Description copied from interface:CoordinateChartModelAdds ValueAxes.- Specified by:
addValueAxesin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
valueAxes- the value axes- Returns:
- coordinate chart model
-
getGuides
- Specified by:
getGuidesin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Returns:
- list of guides
-
setGuides
Description copied from interface:CoordinateChartModelSets 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:
setGuidesin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
guides- list of guides- Returns:
- coordinate chart model
-
addGuides
Description copied from interface:CoordinateChartModelAdds guides.- Specified by:
addGuidesin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
guides- the guides- Returns:
- coordinate chart model
-
getGridAboveGraphs
- Specified by:
getGridAboveGraphsin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Returns:
- true if grid should be drawn above the graphs or below
-
setGridAboveGraphs
Description copied from interface:CoordinateChartModelSet 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:
setGridAboveGraphsin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
gridAboveGraphs- grid above graphs option- Returns:
- coordinate chart model
-
getSequencedAnimation
- Specified by:
getSequencedAnimationin 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:CoordinateChartModelSpecifies whether the animation should be sequenced or all objects should appear at once. If not set the default value is true.- Specified by:
setSequencedAnimationin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
sequencedAnimation- sequenced animation option- Returns:
- coordinate chart model
-
getStartAlpha
- Specified by:
getStartAlphain interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Returns:
- initial opacity of the column/line
-
setStartAlpha
Description copied from interface:CoordinateChartModelSets 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:
setStartAlphain interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
startAlpha- - the start alpha- Returns:
- coordinate chart model
-
getUrlTarget
- Specified by:
getUrlTargetin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Returns:
- target of URL
-
setUrlTarget
Description copied from interface:CoordinateChartModelSets target of URL. If not set the default value is "_self".- Specified by:
setUrlTargetin interfaceCoordinateChartModel<T extends CoordinateChartModelImpl>- Parameters:
urlTarget- the URL target string- Returns:
- coordinate chart model
-
getWiredFields
- Overrides:
getWiredFieldsin classAbstractChart<T extends CoordinateChartModelImpl>- Returns:
- fields of the
DataItemthat are bound to the chart
-