Package io.jmix.charts.model.chart
Interface GanttChartModel<T extends GanttChartModel>
- All Superinterfaces:
ChartModel<T>
,CoordinateChartModel<T>
,HasColors<T>
,HasMargins<T>
,HasStartEffect<T>
,RectangularChartModel<T>
,SeriesBasedChartModel<T>
- All Known Subinterfaces:
GanttChart
- All Known Implementing Classes:
GanttChartImpl
,GanttChartModelImpl
-
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 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
-
Method Details
-
getBrightnessStep
Integer getBrightnessStep()- Returns:
- brightness step
-
setBrightnessStep
Sets brightness step. Lightness increase of each subsequent bar of one series. Value range is from -255 to 255.- Parameters:
brightnessStep
- brightness step- Returns:
- gantt chart model
-
getColorField
String getColorField()- Returns:
- segment color field
-
setColorField
Sets segment color field from your data provider.- Parameters:
colorField
- color field string- Returns:
- gantt chart model
-
getColumnWidthField
String getColumnWidthField()- Returns:
- column width field
-
setColumnWidthField
Sets field of column width of a segments from your data provider.- Parameters:
columnWidthField
- column width field string- Returns:
- gantt chart model
-
getDurationField
String getDurationField()- Returns:
- duration field
-
setDurationField
Sets duration field. Instead of specifying end date or end value in your data, you can specify duration of a segment.- Parameters:
durationField
- duration field string- Returns:
- gantt chart model
-
getEndDateField
String getEndDateField()- Returns:
- end date field
-
setEndDateField
Sets end date field from your data provider which holds end date of a segment.- Parameters:
endDateField
- end date field string- Returns:
- gantt chart model
-
getEndField
String getEndField()- Returns:
- end field
-
setEndField
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".- Parameters:
endField
- end field string- Returns:
- gantt chart model
-
getGraph
Graph getGraph()- Returns:
- graph
-
setGraph
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.- Parameters:
graph
- the graph- Returns:
- gantt chart model
-
getPeriod
DatePeriod getPeriod()- Returns:
- data period
-
setPeriod
Sets data period. Used only value axis is date-based.- Parameters:
period
- the period- Returns:
- gantt chart model
-
getSegmentsField
String getSegmentsField()- Returns:
- segments field
-
setSegmentsField
Sets segments field in your data provider.- Parameters:
segmentsField
- segments field string- Returns:
- gantt chart model
-
getStartDate
Date getStartDate()- Returns:
- start date
-
setStartDate
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.- Parameters:
startDate
- the start date- Returns:
- gantt chart model
-
getStartDateField
String getStartDateField()- Returns:
- start date field
-
setStartDateField
Sets date field from your data provider which holds start date of a segment.- Parameters:
startDateField
- start date field string- Returns:
- gantt chart model
-
getStartField
String getStartField()- Returns:
- start field
-
setStartField
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.- Parameters:
startField
- start field string- Returns:
- gantt chart model
-
getValueAxis
ValueAxis getValueAxis()- Returns:
- value axis
-
setValueAxis
Sets value axis of Gantt chart. Set it's type to "date" if your data is date or time based.- Parameters:
valueAxis
- the value axis- Returns:
- gantt chart model
-
getAdditionalSegmentFields
- Returns:
- additional segment fields that should be fetched from the data provider
-
setAdditionalSegmentFields
Sets the list of additional segment fields that should be fetched from the data provider, similarly to theadditionalFields
attribute.- Parameters:
additionalSegmentFields
- list of additional segment fields- Returns:
- gantt chart model
-
addAdditionalSegmentFields
Adds additional segment fields.- Parameters:
fields
- the fields- Returns:
- gantt chart model
-