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
Constructors -
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 theadditionalFieldsattribute.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, setZoomOutOnDataUpdateMethods 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, setZoomOutTextMethods 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, setValueAxesMethods 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, setUsePrefixesMethods 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, setValueAxesMethods inherited from interface io.jmix.charts.model.HasMargins
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopMethods inherited from interface io.jmix.charts.model.animation.HasStartEffect
getStartDuration, getStartEffect, setStartDuration, setStartEffectMethods 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, setZoomOutTextMethods 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:
getBrightnessStepin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- brightness step
-
setBrightnessStep
Description copied from interface:GanttChartModelSets brightness step. Lightness increase of each subsequent bar of one series. Value range is from -255 to 255.- Specified by:
setBrightnessStepin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
brightnessStep- brightness step- Returns:
- gantt chart model
-
getColorField
- Specified by:
getColorFieldin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- segment color field
-
setColorField
Description copied from interface:GanttChartModelSets segment color field from your data provider.- Specified by:
setColorFieldin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
colorField- color field string- Returns:
- gantt chart model
-
getColumnWidthField
- Specified by:
getColumnWidthFieldin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- column width field
-
setColumnWidthField
Description copied from interface:GanttChartModelSets field of column width of a segments from your data provider.- Specified by:
setColumnWidthFieldin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
columnWidthField- column width field string- Returns:
- gantt chart model
-
getDurationField
- Specified by:
getDurationFieldin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- duration field
-
setDurationField
Description copied from interface:GanttChartModelSets duration field. Instead of specifying end date or end value in your data, you can specify duration of a segment.- Specified by:
setDurationFieldin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
durationField- duration field string- Returns:
- gantt chart model
-
getEndDateField
- Specified by:
getEndDateFieldin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- end date field
-
setEndDateField
Description copied from interface:GanttChartModelSets end date field from your data provider which holds end date of a segment.- Specified by:
setEndDateFieldin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
endDateField- end date field string- Returns:
- gantt chart model
-
getEndField
- Specified by:
getEndFieldin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- end field
-
setEndField
Description copied from interface:GanttChartModelSets 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:
setEndFieldin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
endField- end field string- Returns:
- gantt chart model
-
getGraph
- Specified by:
getGraphin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- graph
-
setGraph
Description copied from interface:GanttChartModelSets 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:
setGraphin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
graph- the graph- Returns:
- gantt chart model
-
getPeriod
- Specified by:
getPeriodin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- data period
-
setPeriod
Description copied from interface:GanttChartModelSets data period. Used only value axis is date-based.- Specified by:
setPeriodin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
period- the period- Returns:
- gantt chart model
-
getSegmentsField
- Specified by:
getSegmentsFieldin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- segments field
-
setSegmentsField
Description copied from interface:GanttChartModelSets segments field in your data provider.- Specified by:
setSegmentsFieldin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
segmentsField- segments field string- Returns:
- gantt chart model
-
getStartDate
- Specified by:
getStartDatein interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- start date
-
setStartDate
Description copied from interface:GanttChartModelSets 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:
setStartDatein interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
startDate- the start date- Returns:
- gantt chart model
-
getStartDateField
- Specified by:
getStartDateFieldin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- start date field
-
setStartDateField
Description copied from interface:GanttChartModelSets date field from your data provider which holds start date of a segment.- Specified by:
setStartDateFieldin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
startDateField- start date field string- Returns:
- gantt chart model
-
getStartField
- Specified by:
getStartFieldin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- start field
-
setStartField
Description copied from interface:GanttChartModelSets 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:
setStartFieldin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
startField- start field string- Returns:
- gantt chart model
-
getValueAxis
- Specified by:
getValueAxisin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- value axis
-
setValueAxis
Description copied from interface:GanttChartModelSets value axis of Gantt chart. Set it's type to "date" if your data is date or time based.- Specified by:
setValueAxisin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
valueAxis- the value axis- Returns:
- gantt chart model
-
getAdditionalSegmentFields
- Specified by:
getAdditionalSegmentFieldsin interfaceGanttChartModel<GanttChartModelImpl>- Returns:
- additional segment fields that should be fetched from the data provider
-
setAdditionalSegmentFields
Description copied from interface:GanttChartModelSets the list of additional segment fields that should be fetched from the data provider, similarly to theadditionalFieldsattribute.- Specified by:
setAdditionalSegmentFieldsin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
additionalSegmentFields- list of additional segment fields- Returns:
- gantt chart model
-
addAdditionalSegmentFields
Description copied from interface:GanttChartModelAdds additional segment fields.- Specified by:
addAdditionalSegmentFieldsin interfaceGanttChartModel<GanttChartModelImpl>- Parameters:
fields- the fields- Returns:
- gantt chart model
-