public abstract class CoordinateChartImpl<T extends CoordinateChart,M extends CoordinateChartModelImpl> extends ChartImpl<T,M> implements CoordinateChart<T>
Chart.AbstractChartClickEvent, Chart.AbstractChartEvent, Chart.AbstractClickEvent, Chart.AbstractCursorEvent, Chart.AbstractGraphItemClickEvent, Chart.AbstractItemEvent, Chart.AbstractSliceClickEvent, Chart.AxisZoomEvent, Chart.ChartClickEvent, Chart.ChartRightClickEvent, Chart.CursorPeriodSelectEvent, Chart.CursorZoomEvent, Chart.GraphClickEvent, Chart.GraphItemClickEvent, Chart.GraphItemRightClickEvent, Chart.LegendItemClickEvent, Chart.LegendItemEvent, Chart.LegendItemHideEvent, Chart.LegendItemShowEvent, Chart.LegendMarkerClickEvent, Chart.RollOutGraphEvent, Chart.RollOutGraphItemEvent, Chart.RollOverGraphEvent, Chart.RollOverGraphItemEvent, Chart.SliceClickEvent, Chart.SlicePullInEvent, Chart.SlicePullOutEvent, Chart.SliceRightClickEvent, Chart.ZoomEvent
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
protected AxisZoomListener |
axisZoomHandler |
protected GraphClickListener |
graphClickHandler |
protected GraphItemClickListener |
graphItemClickHandler |
protected GraphItemRightClickListener |
graphItemRightClickHandler |
protected RollOutGraphItemListener |
rollOutGraphItemListener |
protected RollOutGraphListener |
rollOutGraphListener |
protected RollOverGraphItemListener |
rollOverGraphItemListener |
protected RollOverGraphListener |
rollOverGraphListener |
chartLocaleHelper, clickHandler, currentAuthentication, formatStringsRegistry, legendItemHideHandler, legendItemShowHandler, legendLabelClickHandler, legendMarkerClickHandler, messages, messageTools, rightClickHandler
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
CoordinateChartImpl() |
Modifier and Type | Method and Description |
---|---|
io.jmix.core.common.event.Subscription |
addAxisZoomListener(java.util.function.Consumer<Chart.AxisZoomEvent> listener)
Adds a listener to axis.
|
T |
addColors(Color... colors)
Adds colors.
|
io.jmix.core.common.event.Subscription |
addGraphClickListener(java.util.function.Consumer<Chart.GraphClickEvent> listener)
Adds a listener for graph.
|
io.jmix.core.common.event.Subscription |
addGraphItemClickListener(java.util.function.Consumer<Chart.GraphItemClickEvent> listener)
Adds a listener for graph item.
|
io.jmix.core.common.event.Subscription |
addGraphItemRightClickListener(java.util.function.Consumer<Chart.GraphItemRightClickEvent> listener)
Adds a listener for graph item.
|
T |
addGraphs(Graph... graphs)
Adds graphs to the chart.
|
T |
addGuides(Guide... guides)
Adds guides.
|
io.jmix.core.common.event.Subscription |
addRollOutGraphItemListener(java.util.function.Consumer<Chart.RollOutGraphItemEvent> listener)
Adds a listener for graph item.
|
io.jmix.core.common.event.Subscription |
addRollOutGraphListener(java.util.function.Consumer<Chart.RollOutGraphEvent> listener)
Adds a listener for graph.
|
io.jmix.core.common.event.Subscription |
addRollOverGraphItemListener(java.util.function.Consumer<Chart.RollOverGraphItemEvent> listener)
Adds a listener for graph item.
|
io.jmix.core.common.event.Subscription |
addRollOverGraphListener(java.util.function.Consumer<Chart.RollOverGraphEvent> listener)
Adds a listener for graph.
|
T |
addValueAxes(ValueAxis... valueAxes)
Adds ValueAxes.
|
java.util.List<Color> |
getColors() |
protected Graph |
getGraphById(java.lang.String id) |
java.util.List<Graph> |
getGraphs() |
java.lang.Boolean |
getGridAboveGraphs() |
java.util.List<Guide> |
getGuides() |
java.lang.Boolean |
getSequencedAnimation() |
java.lang.Double |
getStartAlpha() |
java.lang.Double |
getStartDuration() |
AnimationEffect |
getStartEffect() |
java.lang.String |
getUrlTarget() |
java.util.List<ValueAxis> |
getValueAxes() |
protected void |
onAxisZoomListener(AxisZoomEvent e) |
protected void |
onGraphClick(GraphClickEvent e) |
protected void |
onGraphItemClick(GraphItemClickEvent e) |
protected void |
onGraphItemRightClick(GraphItemRightClickEvent e) |
protected void |
onRollOutGraphClick(RollOutGraphEvent e) |
protected void |
onRollOutGraphItemClick(RollOutGraphItemEvent e) |
protected void |
onRollOverGraphClick(RollOverGraphEvent e) |
protected void |
onRollOverGraphItemClick(RollOverGraphItemEvent e) |
T |
setColors(java.util.List list)
Sets the list of colors.
|
T |
setGraphs(java.util.List list)
Sets the list of graphs belonging to this chart.
|
T |
setGridAboveGraphs(java.lang.Boolean gridAboveGraphs)
Set grid above graphs to true if grid should be drawn above the graphs or below.
|
T |
setGuides(java.util.List list)
Sets list of guides.
|
T |
setSequencedAnimation(java.lang.Boolean sequencedAnimation)
Specifies whether the animation should be sequenced or all objects should appear at once.
|
T |
setStartAlpha(java.lang.Double startAlpha)
Sets the initial opacity of the column/line.
|
T |
setStartDuration(java.lang.Double startDuration)
Sets duration of the animation, in seconds.
|
T |
setStartEffect(AnimationEffect startEffect)
Sets animation effect.
|
T |
setUrlTarget(java.lang.String urlTarget)
Sets target of URL.
|
T |
setValueAxes(java.util.List valueAxes)
Sets list of ValueAxis.
|
void |
zoomOutValueAxes()
Zooms out value axes, value axes shows all available data.
|
void |
zoomOutValueAxis(int index)
Zooms out value axis, value axis shows all available data.
|
void |
zoomOutValueAxis(java.lang.String id)
Zooms out value axis, value axis shows all available data.
|
void |
zoomValueAxisToValues(int index,
java.lang.Object startValue,
java.lang.Object endValue)
Zooms-in an axis to the provided values.
|
void |
zoomValueAxisToValues(java.lang.String id,
java.lang.Object startValue,
java.lang.Object endValue)
Zooms-in an axis to the provided values.
|
addAdditionalFields, addClickListener, addData, addLabels, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addRightClickListener, addTitles, afterPropertiesSet, createChartConfiguration, createChartSerializer, createComponent, 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, getModel, getNativeJson, getPanEventsEnabled, getPath, getPathToImages, getPercentPrecision, getPrecision, getPrefixesOfBigNumbers, getPrefixesOfSmallNumbers, getProcessCount, getProcessTimeout, getResponsive, getSvgIcons, getTapToActivate, getTheme, getThousandsSeparator, getTitles, getTouchClickDuration, getUsePrefixes, initLocale, onChartClick, onChartRightClick, onLegendItemHide, onLegendItemShow, onLegendLabelClick, onLegendMarkerClick, repaint, setAccessible, setAccessibleDescription, setAccessibleTitle, setAddClassNames, setAdditionalFields, setAllLabels, setAutoDisplay, setAutoResize, setAutoTransform, setBackgroundAlpha, setBackgroundColor, setBalloon, setBorderAlpha, setBorderColor, setChartLocaleHelper, setClassNamePrefix, setColor, setCreditsPosition, setCurrentAuthentication, setDataProvider, setDecimalSeparator, setDefs, setExport, setFontFamily, setFontSize, setFormatStringsRegistry, setHandDrawn, setHandDrawScatter, setHandDrawThickness, setHideBalloonTime, setLanguage, setLegend, setMessages, setMessageTools, setNativeJson, setPanEventsEnabled, setPath, setPathToImages, setPercentPrecision, setPrecision, setPrefixesOfBigNumbers, setPrefixesOfSmallNumbers, setProcessCount, setProcessTimeout, setResponsive, setSvgIcons, setTapToActivate, setTheme, setThousandsSeparator, setTitles, setTouchClickDuration, setupChartLocale, setupDefaults, setUsePrefixes
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClickListener, addLegendItemHideListener, addLegendItemShowListener, addLegendLabelClickListener, addLegendMarkerClickListener, addRightClickListener, getDataProvider, getNativeJson, repaint, setDataProvider, setNativeJson
getFrame, setFrame
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
addAdditionalFields, addData, addLabels, addPrefixesOfBigNumbers, addPrefixesOfSmallNumbers, addTitles, getAccessible, getAccessibleDescription, getAccessibleTitle, getAddClassNames, getAdditionalFields, getAllLabels, getAutoDisplay, getAutoResize, getAutoTransform, getBackgroundAlpha, getBackgroundColor, getBalloon, getBorderAlpha, getBorderColor, getClassNamePrefix, getColor, getCreditsPosition, 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, 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
protected AxisZoomListener axisZoomHandler
protected GraphClickListener graphClickHandler
protected GraphItemClickListener graphItemClickHandler
protected GraphItemRightClickListener graphItemRightClickHandler
protected RollOutGraphListener rollOutGraphListener
protected RollOutGraphItemListener rollOutGraphItemListener
protected RollOverGraphListener rollOverGraphListener
protected RollOverGraphItemListener rollOverGraphItemListener
public java.util.List<Color> getColors()
getColors
in interface HasColors<T extends CoordinateChart>
public T setColors(java.util.List list)
HasColors
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
or StockChartModel
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"]
setColors
in interface HasColors<T extends CoordinateChart>
list
- list of colorspublic T addColors(Color... colors)
HasColors
addColors
in interface HasColors<T extends CoordinateChart>
colors
- list of colorspublic java.util.List<Graph> getGraphs()
getGraphs
in interface CoordinateChartModel<T extends CoordinateChart>
public T setGraphs(java.util.List list)
CoordinateChartModel
setGraphs
in interface CoordinateChartModel<T extends CoordinateChart>
list
- list of graphspublic T addGraphs(Graph... graphs)
CoordinateChartModel
addGraphs
in interface CoordinateChartModel<T extends CoordinateChart>
graphs
- graphspublic AnimationEffect getStartEffect()
getStartEffect
in interface HasStartEffect<T extends CoordinateChart>
public T setStartEffect(AnimationEffect startEffect)
HasStartEffect
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.
setStartEffect
in interface HasStartEffect<T extends CoordinateChart>
startEffect
- the start effectpublic java.lang.Double getStartDuration()
getStartDuration
in interface HasStartEffect<T extends CoordinateChart>
public T setStartDuration(java.lang.Double startDuration)
HasStartEffect
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.
setStartDuration
in interface HasStartEffect<T extends CoordinateChart>
startDuration
- the start durationpublic java.util.List<ValueAxis> getValueAxes()
getValueAxes
in interface CoordinateChartModel<T extends CoordinateChart>
public T setValueAxes(java.util.List valueAxes)
CoordinateChartModel
setValueAxes
in interface CoordinateChartModel<T extends CoordinateChart>
valueAxes
- list of ValueAxispublic T addValueAxes(ValueAxis... valueAxes)
CoordinateChartModel
addValueAxes
in interface CoordinateChartModel<T extends CoordinateChart>
valueAxes
- the value axespublic java.util.List<Guide> getGuides()
getGuides
in interface CoordinateChartModel<T extends CoordinateChart>
public T setGuides(java.util.List list)
CoordinateChartModel
setGuides
in interface CoordinateChartModel<T extends CoordinateChart>
list
- list of guidespublic T addGuides(Guide... guides)
CoordinateChartModel
addGuides
in interface CoordinateChartModel<T extends CoordinateChart>
guides
- the guidespublic java.lang.Boolean getGridAboveGraphs()
getGridAboveGraphs
in interface CoordinateChartModel<T extends CoordinateChart>
public T setGridAboveGraphs(java.lang.Boolean gridAboveGraphs)
CoordinateChartModel
setGridAboveGraphs
in interface CoordinateChartModel<T extends CoordinateChart>
gridAboveGraphs
- grid above graphs optionpublic java.lang.Boolean getSequencedAnimation()
getSequencedAnimation
in interface CoordinateChartModel<T extends CoordinateChart>
public T setSequencedAnimation(java.lang.Boolean sequencedAnimation)
CoordinateChartModel
setSequencedAnimation
in interface CoordinateChartModel<T extends CoordinateChart>
sequencedAnimation
- sequenced animation optionpublic java.lang.Double getStartAlpha()
getStartAlpha
in interface CoordinateChartModel<T extends CoordinateChart>
public T setStartAlpha(java.lang.Double startAlpha)
CoordinateChartModel
setStartAlpha
in interface CoordinateChartModel<T extends CoordinateChart>
startAlpha
- - the start alphapublic java.lang.String getUrlTarget()
getUrlTarget
in interface CoordinateChartModel<T extends CoordinateChart>
public T setUrlTarget(java.lang.String urlTarget)
CoordinateChartModel
setUrlTarget
in interface CoordinateChartModel<T extends CoordinateChart>
urlTarget
- the URL target stringpublic void zoomOutValueAxes()
CoordinateChart
zoomOutValueAxes
in interface CoordinateChart<T extends CoordinateChart>
public void zoomOutValueAxis(java.lang.String id)
CoordinateChart
zoomOutValueAxis
in interface CoordinateChart<T extends CoordinateChart>
id
- id of value axispublic void zoomOutValueAxis(int index)
CoordinateChart
zoomOutValueAxis
in interface CoordinateChart<T extends CoordinateChart>
index
- index of value axispublic void zoomValueAxisToValues(java.lang.String id, java.lang.Object startValue, java.lang.Object endValue)
CoordinateChart
zoomValueAxisToValues
in interface CoordinateChart<T extends CoordinateChart>
id
- id of value axisstartValue
- start valueendValue
- end valuepublic void zoomValueAxisToValues(int index, java.lang.Object startValue, java.lang.Object endValue)
CoordinateChart
zoomValueAxisToValues
in interface CoordinateChart<T extends CoordinateChart>
index
- index of value axisstartValue
- start valueendValue
- end valuepublic io.jmix.core.common.event.Subscription addAxisZoomListener(java.util.function.Consumer<Chart.AxisZoomEvent> listener)
CoordinateChart
addAxisZoomListener
in interface CoordinateChart<T extends CoordinateChart>
listener
- a listener to addprotected void onAxisZoomListener(AxisZoomEvent e)
public io.jmix.core.common.event.Subscription addGraphClickListener(java.util.function.Consumer<Chart.GraphClickEvent> listener)
CoordinateChart
addGraphClickListener
in interface CoordinateChart<T extends CoordinateChart>
listener
- a listener to addprotected void onGraphClick(GraphClickEvent e)
public io.jmix.core.common.event.Subscription addGraphItemClickListener(java.util.function.Consumer<Chart.GraphItemClickEvent> listener)
CoordinateChart
addGraphItemClickListener
in interface CoordinateChart<T extends CoordinateChart>
listener
- a listener to addprotected void onGraphItemClick(GraphItemClickEvent e)
public io.jmix.core.common.event.Subscription addGraphItemRightClickListener(java.util.function.Consumer<Chart.GraphItemRightClickEvent> listener)
CoordinateChart
addGraphItemRightClickListener
in interface CoordinateChart<T extends CoordinateChart>
listener
- a listener to addprotected void onGraphItemRightClick(GraphItemRightClickEvent e)
public io.jmix.core.common.event.Subscription addRollOutGraphListener(java.util.function.Consumer<Chart.RollOutGraphEvent> listener)
CoordinateChart
addRollOutGraphListener
in interface CoordinateChart<T extends CoordinateChart>
listener
- a listener to addprotected void onRollOutGraphClick(RollOutGraphEvent e)
public io.jmix.core.common.event.Subscription addRollOutGraphItemListener(java.util.function.Consumer<Chart.RollOutGraphItemEvent> listener)
CoordinateChart
addRollOutGraphItemListener
in interface CoordinateChart<T extends CoordinateChart>
listener
- a listener to addprotected void onRollOutGraphItemClick(RollOutGraphItemEvent e)
public io.jmix.core.common.event.Subscription addRollOverGraphListener(java.util.function.Consumer<Chart.RollOverGraphEvent> listener)
CoordinateChart
addRollOverGraphListener
in interface CoordinateChart<T extends CoordinateChart>
listener
- a listener to addprotected void onRollOverGraphClick(RollOverGraphEvent e)
public io.jmix.core.common.event.Subscription addRollOverGraphItemListener(java.util.function.Consumer<Chart.RollOverGraphItemEvent> listener)
CoordinateChart
addRollOverGraphItemListener
in interface CoordinateChart<T extends CoordinateChart>
listener
- a listener to addprotected void onRollOverGraphItemClick(RollOverGraphItemEvent e)
protected Graph getGraphById(java.lang.String id)