Package org.zkoss.chart.plotOptions
Class TreegraphPlotOptions
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.SeriesPlotOptions
-
- org.zkoss.chart.plotOptions.TreegraphPlotOptions
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class TreegraphPlotOptions extends SeriesPlotOptions
Options for treegraph.- Since:
- 10.3.3.0
- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description TreegraphPlotOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumbergetAnimationLimit()For some series, there is a limit that shuts down initial animation by default when the total number of points in the chart is too high.CollapseButtongetCollapseButton()Returns the options applied to collapse Button.List<Color>getColors()Returns the series specific or series type specific color set to apply instead of the global colors whenSeriesPlotOptions.isColorByPoint()is true.StringgetFindNearestPointBy()Returns whether the series should look for the nearest point in both dimensions or just the x-dimension when hovering the series.List<Level>getLevels()Set options on specific levels.TreeGraphLinkgetLink()Returns the link style options, if any.NumbergetOpacity()Returns opacity of a series parts: line, fill (e.g.TraverseUpButtongetTraverseUpButton()Returns options for the button appearing when traversing down in a treegraph, if any.booleanisAllowTraversingTree()When enabled the user can click on a point which is a parent and zoom in on its children.booleanisFillSpace()Returns whether the treegraph series should fill the entire plot area in the X axis direction, even when there are collapsed points.booleanisReversed()Returns whether the series should be placed on the other side of the plotArea.booleanisShowInLegend()Returns whether to display this particular series or series type in the legend.booleanisStickyTracking()Returns sticky tracking of mouse events.voidsetAllowTraversingTree(boolean allowTraversingTree)voidsetAnimationLimit(Number animationLimit)For some series, there is a limit that shuts down initial animation by default when the total number of points in the chart is too high.voidsetCollapseButton(CollapseButton collapseButton)Sets the options applied to collapse Button.voidsetColors(String... colors)Sets the series specific or series type specific color set to apply instead of the global colors whenSeriesPlotOptions.isColorByPoint()is true.voidsetColors(List<Color> colors)Sets the series specific or series type specific color set to apply instead of the global colors whenSeriesPlotOptions.isColorByPoint()is true.voidsetColors(Color... colors)Sets the series specific or series type specific color set to apply instead of the global colors whenSeriesPlotOptions.isColorByPoint()is true.voidsetFillSpace(boolean fillSpace)Sets whether the treegraph series should fill the entire plot area in the X axis direction, even when there are collapsed points.voidsetFindNearestPointBy(String findNearestPointBy)Sets whether the series should look for the nearest point in both dimensions or just the x-dimension when hovering the series.voidsetLevels(List<Level> levels)voidsetLevels(Level... levels)Set options on specific levels.voidsetLink(TreeGraphLink link)Sets the link style options.voidsetOpacity(Number opacity)Sets opacity of a series parts: line, fill (e.g.voidsetReversed(boolean reversed)Sets whether the series should be placed on the other side of the plotArea.voidsetShowInLegend(boolean showInLegend)Sets whether to display this particular series or series type in the legend.voidsetStickyTracking(boolean stickyTracking)Sets sticky tracking of mouse events.voidsetTraverseUpButton(TraverseUpButton traverseUpButton)Sets options for the button appearing when traversing down in a treemap.-
Methods inherited from class org.zkoss.chart.plotOptions.SeriesPlotOptions
addDataLabels, getAccessibility, getAnimation, getBoostBlending, getBoostThreshold, getBorderRadius, getBorderWidth, getClassName, getColor, getColorAxis, getColorIndex, getColorKey, getConnectorWidth, getCropThreshold, getCursor, getCustom, getDashStyle, getDataLabels, getDataLabelsList, getDataSorting, getDepth, getDescription, getDragDrop, getGroupPadding, getId, getIndex, getKeys, getLabel, getLegendSymbol, getLinecap, getLineWidth, getLinkedTo, getMarker, getName, getNeckHeight, getNeckWidth, getNegativeColor, getOnPoint, getPointDescriptionFormatter, getPointInterval, getPointIntervalUnit, getPointPlacement, getPointStart, getStacking, getStates, getStep, getThreshold, getTooltip, getTurboThreshold, getZoneAxis, getZones, isAllowPointSelect, isAnimation, isCenterInCategory, isClip, isColorByPoint, isConnectEnds, isConnectNulls, isCrisp, isDataAsColumns, isEnableMouseTracking, isGetExtremesFromAll, isIncludeInDataExport, isRelativeXValue, isSelected, isShadow, isShowCheckbox, isSkipKeyboardNavigation, isSoftThreshold, isStacking, isVisible, isZoomEnabled, newDataLabels, setAccessibility, setAllowPointSelect, setAnimation, setAnimation, setBoostBlending, setBoostThreshold, setBorderRadius, setBorderRadius, setBorderWidth, setCenter, setCenter, setCenterInCategory, setClassName, setClip, setColor, setColor, setColor, setColor, setColorAxis, setColorAxis, setColorAxis, setColorByPoint, setColorIndex, setColorKey, setConnectEnds, setConnectNulls, setConnectorWidth, setCrisp, setCropThreshold, setCursor, setCustom, setDashStyle, setDataAsColumns, setDataLabels, setDataLabels, setDataSorting, setDepth, setDescription, setDragDrop, setEnableMouseTracking, setGetExtremesFromAll, setGroupPadding, setId, setIncludeInDataExport, setIndex, setKeys, setLabel, setLegendSymbol, setLinecap, setLineWidth, setLinkedTo, setMarker, setName, setNeckHeight, setNeckWidth, setNegativeColor, setNegativeColor, setNegativeColor, setNegativeColor, setOnPoint, setPointDescriptionFormatter, setPointInterval, setPointIntervalUnit, setPointPlacement, setPointPlacement, setPointStart, setPointStart, setRelativeXValue, setSelected, setShadow, setShowCheckbox, setSkipKeyboardNavigation, setSoftThreshold, setStacking, setStacking, setStates, setStep, setThreshold, setTooltip, setTurboThreshold, setVisible, setWidth, setZoneAxis, setZones, setZones, setZoomEnabled
-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.zkoss.chart.OptionDataListener
onChange
-
-
-
-
Method Detail
-
isAllowTraversingTree
public boolean isAllowTraversingTree()
When enabled the user can click on a point which is a parent and zoom in on its children.Defaults to false.
-
setAllowTraversingTree
public void setAllowTraversingTree(boolean allowTraversingTree)
- Parameters:
allowTraversingTree-- See Also:
isAllowTraversingTree()
-
getAnimationLimit
public Number getAnimationLimit()
For some series, there is a limit that shuts down initial animation by default when the total number of points in the chart is too high. For example, for a column chart and its derivatives, animation does not run if there is more than 250 points totally. To disable this cap, set animationLimit to Infinity.Default: 250
- Overrides:
getAnimationLimitin classSeriesPlotOptions- Since:
- 11.2.0.0
-
setAnimationLimit
public void setAnimationLimit(Number animationLimit)
For some series, there is a limit that shuts down initial animation by default when the total number of points in the chart is too high. For example, for a column chart and its derivatives, animation does not run if there is more than 250 points totally. To disable this cap, set animationLimit to Infinity.Default: 250
- Overrides:
setAnimationLimitin classSeriesPlotOptions- Since:
- 11.2.0.0
-
getCollapseButton
public CollapseButton getCollapseButton()
Returns the options applied to collapse Button.
-
setCollapseButton
public void setCollapseButton(CollapseButton collapseButton)
Sets the options applied to collapse Button.
-
setColors
public void setColors(List<Color> colors)
Sets the series specific or series type specific color set to apply instead of the global colors whenSeriesPlotOptions.isColorByPoint()is true.
-
setColors
public void setColors(String... colors)
Sets the series specific or series type specific color set to apply instead of the global colors whenSeriesPlotOptions.isColorByPoint()is true.
-
setColors
public void setColors(Color... colors)
Sets the series specific or series type specific color set to apply instead of the global colors whenSeriesPlotOptions.isColorByPoint()is true.
-
getColors
public List<Color> getColors()
Returns the series specific or series type specific color set to apply instead of the global colors whenSeriesPlotOptions.isColorByPoint()is true.
-
isFillSpace
public boolean isFillSpace()
Returns whether the treegraph series should fill the entire plot area in the X axis direction, even when there are collapsed points.Defaults: false
- Since:
- 11.2.0.0
-
setFillSpace
public void setFillSpace(boolean fillSpace)
Sets whether the treegraph series should fill the entire plot area in the X axis direction, even when there are collapsed points.- Since:
- 11.2.0.0
-
getFindNearestPointBy
public String getFindNearestPointBy()
Returns whether the series should look for the nearest point in both dimensions or just the x-dimension when hovering the series. Defaults to 'xy' for scatter series and 'x' for most other series. If the data has duplicate x-values, it is recommended to set this to 'xy' to allow hovering over all points. Applies only to series types using nearest neighbor search (not direct hover) for tooltip.Default: "xy"
- Overrides:
getFindNearestPointByin classSeriesPlotOptions- Since:
- 11.2.0.0
-
setFindNearestPointBy
public void setFindNearestPointBy(String findNearestPointBy)
Sets whether the series should look for the nearest point in both dimensions or just the x-dimension when hovering the series. Defaults to 'xy' for scatter series and 'x' for most other series. If the data has duplicate x-values, it is recommended to set this to 'xy' to allow hovering over all points. Applies only to series types using nearest neighbor search (not direct hover) for tooltip.- Overrides:
setFindNearestPointByin classSeriesPlotOptions- Since:
- 11.2.0.0
-
getLevels
public List<Level> getLevels()
Set options on specific levels. Takes precedence over series options, but not point options.Default: null
-
setLevels
public void setLevels(List<Level> levels)
- Parameters:
levels-- See Also:
getLevels()
-
setLevels
public void setLevels(Level... levels)
Set options on specific levels. Takes precedence over series options, but not point options.
-
getLink
public TreeGraphLink getLink()
Returns the link style options, if any. Otherwise, create a new one.
-
setLink
public void setLink(TreeGraphLink link)
Sets the link style options.
-
getOpacity
public Number getOpacity()
Returns opacity of a series parts: line, fill (e.g. area) and dataLabels.Default: 0.15
- Overrides:
getOpacityin classSeriesPlotOptions- Since:
- 11.2.0.0
-
setOpacity
public void setOpacity(Number opacity)
Sets opacity of a series parts: line, fill (e.g. area) and dataLabels.- Overrides:
setOpacityin classSeriesPlotOptions- Since:
- 11.2.0.0
-
isReversed
public boolean isReversed()
Returns whether the series should be placed on the other side of the plotArea.Default:
false.- Since:
- 11.2.0.0
-
setReversed
public void setReversed(boolean reversed)
Sets whether the series should be placed on the other side of the plotArea.- Since:
- 11.2.0.0
-
isShowInLegend
public boolean isShowInLegend()
Returns whether to display this particular series or series type in the legend. The default value istruefor standalone series,falsefor linked series. Default:false.- Overrides:
isShowInLegendin classSeriesPlotOptions- Since:
- 11.2.0.0
-
setShowInLegend
public void setShowInLegend(boolean showInLegend)
Sets whether to display this particular series or series type in the legend. The default value istruefor standalone series,falsefor linked series.- Overrides:
setShowInLegendin classSeriesPlotOptions- Since:
- 11.2.0.0
-
isStickyTracking
public boolean isStickyTracking()
Returns sticky tracking of mouse events. When true, themouseOutevent on a series isn't triggered until the mouse moves over another series, or out of the plot area. When false, themouseOutevent on a series is triggered when the mouse leaves the area around the series' graph or markers. This also implies the tooltip. WhenstickyTrackingis false andTooltip.isShared()is false, the tooltip will be hidden when moving the mouse between series. Defaults to true for line and area type series, but to false for columns, pies etc. Default:false.- Overrides:
isStickyTrackingin classSeriesPlotOptions- Since:
- 11.2.0.0
-
setStickyTracking
public void setStickyTracking(boolean stickyTracking)
Sets sticky tracking of mouse events. When true, themouseOutevent on a series isn't triggered until the mouse moves over another series, or out of the plot area. When false, themouseOutevent on a series is triggered when the mouse leaves the area around the series' graph or markers. This also implies the tooltip. WhenstickyTrackingis false andTooltip.isShared()is false, the tooltip will be hidden when moving the mouse between series. Defaults to true for line and area type series, but to false for columns, pies etc.- Overrides:
setStickyTrackingin classSeriesPlotOptions- Since:
- 11.2.0.0
-
getTraverseUpButton
public TraverseUpButton getTraverseUpButton()
Returns options for the button appearing when traversing down in a treegraph, if any. Otherwise, create a new one.
-
setTraverseUpButton
public void setTraverseUpButton(TraverseUpButton traverseUpButton)
Sets options for the button appearing when traversing down in a treemap.
-
-