public abstract class CoordinateChartModelImpl<T extends CoordinateChartModelImpl> extends AbstractChart<T> implements CoordinateChartModel<T>
AbstractChart.DataProviderChangeListener
Constructor and Description |
---|
CoordinateChartModelImpl(ChartType type) |
Modifier and Type | Method and Description |
---|---|
T |
addColors(Color... colors)
Adds colors.
|
T |
addGraphs(Graph... graphs)
Adds graphs to the chart.
|
T |
addGuides(Guide... guides)
Adds guides.
|
T |
addValueAxes(ValueAxis... valueAxes)
Adds ValueAxes.
|
java.util.List<Color> |
getColors() |
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() |
java.util.List<java.lang.String> |
getWiredFields() |
T |
setColors(java.util.List<Color> colors)
Sets the list of colors.
|
T |
setGraphs(java.util.List<Graph> graphs)
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<Guide> guides)
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<ValueAxis> valueAxes)
Sets list of ValueAxis.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public CoordinateChartModelImpl(ChartType type)
public java.util.List<Color> getColors()
getColors
in interface HasColors<T extends CoordinateChartModelImpl>
public T setColors(java.util.List<Color> colors)
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 CoordinateChartModelImpl>
colors
- list of colorspublic T addColors(Color... colors)
HasColors
addColors
in interface HasColors<T extends CoordinateChartModelImpl>
colors
- list of colorspublic java.util.List<Graph> getGraphs()
getGraphs
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
public T setGraphs(java.util.List<Graph> graphs)
CoordinateChartModel
setGraphs
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
graphs
- list of graphspublic T addGraphs(Graph... graphs)
CoordinateChartModel
addGraphs
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
graphs
- graphspublic AnimationEffect getStartEffect()
getStartEffect
in interface HasStartEffect<T extends CoordinateChartModelImpl>
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 CoordinateChartModelImpl>
startEffect
- the start effectpublic java.lang.Double getStartDuration()
getStartDuration
in interface HasStartEffect<T extends CoordinateChartModelImpl>
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 CoordinateChartModelImpl>
startDuration
- the start durationpublic java.util.List<ValueAxis> getValueAxes()
getValueAxes
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
public T setValueAxes(java.util.List<ValueAxis> valueAxes)
CoordinateChartModel
setValueAxes
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
valueAxes
- list of ValueAxispublic T addValueAxes(ValueAxis... valueAxes)
CoordinateChartModel
addValueAxes
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
valueAxes
- the value axespublic java.util.List<Guide> getGuides()
getGuides
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
public T setGuides(java.util.List<Guide> guides)
CoordinateChartModel
setGuides
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
guides
- list of guidespublic T addGuides(Guide... guides)
CoordinateChartModel
addGuides
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
guides
- the guidespublic java.lang.Boolean getGridAboveGraphs()
getGridAboveGraphs
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
public T setGridAboveGraphs(java.lang.Boolean gridAboveGraphs)
CoordinateChartModel
setGridAboveGraphs
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
gridAboveGraphs
- grid above graphs optionpublic java.lang.Boolean getSequencedAnimation()
getSequencedAnimation
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
public T setSequencedAnimation(java.lang.Boolean sequencedAnimation)
CoordinateChartModel
setSequencedAnimation
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
sequencedAnimation
- sequenced animation optionpublic java.lang.Double getStartAlpha()
getStartAlpha
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
public T setStartAlpha(java.lang.Double startAlpha)
CoordinateChartModel
setStartAlpha
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
startAlpha
- - the start alphapublic java.lang.String getUrlTarget()
getUrlTarget
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
public T setUrlTarget(java.lang.String urlTarget)
CoordinateChartModel
setUrlTarget
in interface CoordinateChartModel<T extends CoordinateChartModelImpl>
urlTarget
- the URL target stringpublic java.util.List<java.lang.String> getWiredFields()
getWiredFields
in class AbstractChart<T extends CoordinateChartModelImpl>
DataItem
that are bound to the chart