Package io.jmix.charts.model.chart.impl
Class GanttChartModelImpl
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.chart.impl.ChartModelImpl
io.jmix.charts.model.chart.impl.AbstractChart<T>
io.jmix.charts.model.chart.impl.CoordinateChartModelImpl<T>
io.jmix.charts.model.chart.impl.RectangularChartModelImpl<T>
io.jmix.charts.model.chart.impl.AbstractSerialChart<GanttChartModelImpl>
io.jmix.charts.model.chart.impl.GanttChartModelImpl
- All Implemented Interfaces:
HasStartEffect<GanttChartModelImpl>
,ChartModel<GanttChartModelImpl>
,CoordinateChartModel<GanttChartModelImpl>
,GanttChartModel<GanttChartModelImpl>
,RectangularChartModel<GanttChartModelImpl>
,SeriesBasedChartModel<GanttChartModelImpl>
,HasColors<GanttChartModelImpl>
,HasMargins<GanttChartModelImpl>
,Serializable
public class GanttChartModelImpl
extends AbstractSerialChart<GanttChartModelImpl>
implements GanttChartModel<GanttChartModelImpl>
See documentation for properties of AmGanttChart JS object.
http://docs.amcharts.com/3/javascriptcharts/AmGanttChart
http://docs.amcharts.com/3/javascriptcharts/AmGanttChart
- 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 TypeMethodDescriptionaddAdditionalSegmentFields
(String... fields) Adds additional segment fields.getGraph()
setAdditionalSegmentFields
(List<String> additionalSegmentFields) Sets the list of additional segment fields that should be fetched from the data provider, similarly to theadditionalFields
attribute.setBrightnessStep
(Integer brightnessStep) Sets brightness step.setColorField
(String colorField) Sets segment color field from your data provider.setColumnWidthField
(String columnWidthField) Sets field of column width of a segments from your data provider.setDurationField
(String durationField) Sets duration field.setEndDateField
(String endDateField) Sets end date field from your data provider which holds end date of a segment.setEndField
(String endField) Sets end field from your data provider which holds end value of a segment.Sets graph of a Gantt chart.setPeriod
(DatePeriod period) Sets data period.setSegmentsField
(String segmentsField) Sets segments field in your data provider.setStartDate
(Date startDate) Sets initial date of value axis.setStartDateField
(String startDateField) Sets date field from your data provider which holds start date of a segment.setStartField
(String startField) Sets start field from your data provider which holds start value of a segment.setValueAxis
(ValueAxis valueAxis) Sets value axis of Gantt chart.Methods inherited from class io.jmix.charts.model.chart.impl.AbstractSerialChart
getBalloonDateFormat, getCategoryAxis, getCategoryField, getColumnSpacing, getColumnSpacing3D, getColumnWidth, getDataDateFormat, getMaxSelectedSeries, getMaxSelectedTime, getMinSelectedTime, getMouseWheelScrollEnabled, getMouseWheelZoomEnabled, getRotate, getSynchronizeGrid, getValueScrollbar, getWiredFields, getZoomOutOnDataUpdate, setBalloonDateFormat, setCategoryAxis, setCategoryField, setColumnSpacing, setColumnSpacing3D, setColumnWidth, setDataDateFormat, setMaxSelectedSeries, setMaxSelectedTime, setMinSelectedTime, setMouseWheelScrollEnabled, setMouseWheelZoomEnabled, setRotate, setSynchronizeGrid, setValueScrollbar, setZoomOutOnDataUpdate
Methods inherited from class io.jmix.charts.model.chart.impl.RectangularChartModelImpl
addTrendLines, getAngle, getAutoMarginOffset, getAutoMargins, getChartCursor, getChartScrollbar, getDepth3D, getMarginBottom, getMarginLeft, getMarginRight, getMarginsUpdated, getMarginTop, getMaxZoomFactor, getMinMarginBottom, getMinMarginLeft, getMinMarginRight, getMinMarginTop, getPlotAreaBorderAlpha, getPlotAreaBorderColor, getPlotAreaFillAlphas, getPlotAreaFillColors, getPlotAreaGradientAngle, getTrendLines, getZoomOutButtonAlpha, getZoomOutButtonColor, getZoomOutButtonImage, getZoomOutButtonImageSize, getZoomOutButtonPadding, getZoomOutButtonRollOverAlpha, getZoomOutButtonTabIndex, getZoomOutText, setAngle, setAutoMarginOffset, setAutoMargins, setChartCursor, setChartScrollbar, setDepth3D, setMarginBottom, setMarginLeft, setMarginRight, setMarginsUpdated, setMarginTop, setMaxZoomFactor, setMinMarginBottom, setMinMarginLeft, setMinMarginRight, setMinMarginTop, setPlotAreaBorderAlpha, setPlotAreaBorderColor, setPlotAreaFillAlphas, setPlotAreaFillColors, setPlotAreaGradientAngle, setTrendLines, setZoomOutButtonAlpha, setZoomOutButtonColor, setZoomOutButtonImage, setZoomOutButtonImageSize, setZoomOutButtonPadding, setZoomOutButtonRollOverAlpha, setZoomOutButtonTabIndex, setZoomOutText
Methods inherited from class io.jmix.charts.model.chart.impl.CoordinateChartModelImpl
addColors, addGraphs, addGuides, addValueAxes, getColors, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getStartDuration, getStartEffect, getUrlTarget, getValueAxes, setColors, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setStartDuration, setStartEffect, setUrlTarget, setValueAxes
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
Methods inherited from interface io.jmix.charts.model.chart.CoordinateChartModel
addGraphs, addGuides, addValueAxes, getGraphs, getGridAboveGraphs, getGuides, getSequencedAnimation, getStartAlpha, getUrlTarget, getValueAxes, setGraphs, setGridAboveGraphs, setGuides, setSequencedAnimation, setStartAlpha, setUrlTarget, setValueAxes
Methods inherited from interface io.jmix.charts.model.HasMargins
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
Methods inherited from interface io.jmix.charts.model.animation.HasStartEffect
getStartDuration, getStartEffect, setStartDuration, setStartEffect
Methods inherited from interface io.jmix.charts.model.chart.RectangularChartModel
addTrendLines, getAngle, getAutoMarginOffset, getAutoMargins, getChartCursor, getChartScrollbar, getDepth3D, getMarginsUpdated, getMaxZoomFactor, getMinMarginBottom, getMinMarginLeft, getMinMarginRight, getMinMarginTop, getPlotAreaBorderAlpha, getPlotAreaBorderColor, getPlotAreaFillAlphas, getPlotAreaFillColors, getPlotAreaGradientAngle, getTrendLines, getZoomOutButtonAlpha, getZoomOutButtonColor, getZoomOutButtonImage, getZoomOutButtonImageSize, getZoomOutButtonPadding, getZoomOutButtonRollOverAlpha, getZoomOutButtonTabIndex, getZoomOutText, setAngle, setAutoMarginOffset, setAutoMargins, setChartCursor, setChartScrollbar, setDepth3D, setMarginsUpdated, setMaxZoomFactor, setMinMarginBottom, setMinMarginLeft, setMinMarginRight, setMinMarginTop, setPlotAreaBorderAlpha, setPlotAreaBorderColor, setPlotAreaFillAlphas, setPlotAreaFillColors, setPlotAreaGradientAngle, setTrendLines, setZoomOutButtonAlpha, setZoomOutButtonColor, setZoomOutButtonImage, setZoomOutButtonImageSize, setZoomOutButtonPadding, setZoomOutButtonRollOverAlpha, setZoomOutButtonTabIndex, setZoomOutText
Methods inherited from interface io.jmix.charts.model.chart.SeriesBasedChartModel
getBalloonDateFormat, getCategoryAxis, getCategoryField, getColumnSpacing, getColumnSpacing3D, getColumnWidth, getDataDateFormat, getMaxSelectedSeries, getMaxSelectedTime, getMinSelectedTime, getMouseWheelScrollEnabled, getMouseWheelZoomEnabled, getRotate, getSynchronizeGrid, getValueScrollbar, getZoomOutOnDataUpdate, setBalloonDateFormat, setCategoryAxis, setCategoryField, setColumnSpacing, setColumnSpacing3D, setColumnWidth, setDataDateFormat, setMaxSelectedSeries, setMaxSelectedTime, setMinSelectedTime, setMouseWheelScrollEnabled, setMouseWheelZoomEnabled, setRotate, setSynchronizeGrid, setValueScrollbar, setZoomOutOnDataUpdate
-
Constructor Details
-
GanttChartModelImpl
public GanttChartModelImpl()
-
-
Method Details
-
getBrightnessStep
- Specified by:
getBrightnessStep
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- brightness step
-
setBrightnessStep
Description copied from interface:GanttChartModel
Sets brightness step. Lightness increase of each subsequent bar of one series. Value range is from -255 to 255.- Specified by:
setBrightnessStep
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
brightnessStep
- brightness step- Returns:
- gantt chart model
-
getColorField
- Specified by:
getColorField
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- segment color field
-
setColorField
Description copied from interface:GanttChartModel
Sets segment color field from your data provider.- Specified by:
setColorField
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
colorField
- color field string- Returns:
- gantt chart model
-
getColumnWidthField
- Specified by:
getColumnWidthField
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- column width field
-
setColumnWidthField
Description copied from interface:GanttChartModel
Sets field of column width of a segments from your data provider.- Specified by:
setColumnWidthField
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
columnWidthField
- column width field string- Returns:
- gantt chart model
-
getDurationField
- Specified by:
getDurationField
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- duration field
-
setDurationField
Description copied from interface:GanttChartModel
Sets duration field. Instead of specifying end date or end value in your data, you can specify duration of a segment.- Specified by:
setDurationField
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
durationField
- duration field string- Returns:
- gantt chart model
-
getEndDateField
- Specified by:
getEndDateField
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- end date field
-
setEndDateField
Description copied from interface:GanttChartModel
Sets end date field from your data provider which holds end date of a segment.- Specified by:
setEndDateField
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
endDateField
- end date field string- Returns:
- gantt chart model
-
getEndField
- Specified by:
getEndField
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- end field
-
setEndField
Description copied from interface:GanttChartModel
Sets end field from your data provider which holds end value of a segment. If your data is date-based, you should use endDateField instead, unless you specified startDate and period values. In this case you can use endField and set number of periods instead of providing exact end date. If not set the default value is "ss".- Specified by:
setEndField
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
endField
- end field string- Returns:
- gantt chart model
-
getGraph
- Specified by:
getGraph
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- graph
-
setGraph
Description copied from interface:GanttChartModel
Sets graph of a Gantt chart. Gantt chart actually creates multiple graphs (separate for each segment). Properties of this graph are passed to each of the created graphs - this allows you to control the look of segments.- Specified by:
setGraph
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
graph
- the graph- Returns:
- gantt chart model
-
getPeriod
- Specified by:
getPeriod
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- data period
-
setPeriod
Description copied from interface:GanttChartModel
Sets data period. Used only value axis is date-based.- Specified by:
setPeriod
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
period
- the period- Returns:
- gantt chart model
-
getSegmentsField
- Specified by:
getSegmentsField
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- segments field
-
setSegmentsField
Description copied from interface:GanttChartModel
Sets segments field in your data provider.- Specified by:
setSegmentsField
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
segmentsField
- segments field string- Returns:
- gantt chart model
-
getStartDate
- Specified by:
getStartDate
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- start date
-
setStartDate
Description copied from interface:GanttChartModel
Sets initial date of value axis. If you set this date, then you can set start, end, duration of segments using number of periods instead of providing exact dates.- Specified by:
setStartDate
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
startDate
- the start date- Returns:
- gantt chart model
-
getStartDateField
- Specified by:
getStartDateField
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- start date field
-
setStartDateField
Description copied from interface:GanttChartModel
Sets date field from your data provider which holds start date of a segment.- Specified by:
setStartDateField
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
startDateField
- start date field string- Returns:
- gantt chart model
-
getStartField
- Specified by:
getStartField
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- start field
-
setStartField
Description copied from interface:GanttChartModel
Sets start field from your data provider which holds start value of a segment. If your data is date-based, you should use startDateField instead, unless you specified startDate and period values. In this case you can use startField and set number of periods instead of providing exact start date.- Specified by:
setStartField
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
startField
- start field string- Returns:
- gantt chart model
-
getValueAxis
- Specified by:
getValueAxis
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- value axis
-
setValueAxis
Description copied from interface:GanttChartModel
Sets value axis of Gantt chart. Set it's type to "date" if your data is date or time based.- Specified by:
setValueAxis
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
valueAxis
- the value axis- Returns:
- gantt chart model
-
getAdditionalSegmentFields
- Specified by:
getAdditionalSegmentFields
in interfaceGanttChartModel<GanttChartModelImpl>
- Returns:
- additional segment fields that should be fetched from the data provider
-
setAdditionalSegmentFields
Description copied from interface:GanttChartModel
Sets the list of additional segment fields that should be fetched from the data provider, similarly to theadditionalFields
attribute.- Specified by:
setAdditionalSegmentFields
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
additionalSegmentFields
- list of additional segment fields- Returns:
- gantt chart model
-
addAdditionalSegmentFields
Description copied from interface:GanttChartModel
Adds additional segment fields.- Specified by:
addAdditionalSegmentFields
in interfaceGanttChartModel<GanttChartModelImpl>
- Parameters:
fields
- the fields- Returns:
- gantt chart model
-