Package org.zkoss.chart.plotOptions
Class BoxPlotOptions
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.SeriesPlotOptions
-
- org.zkoss.chart.plotOptions.ColumnPlotOptions
-
- org.zkoss.chart.plotOptions.BoxPlotOptions
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
- Direct Known Subclasses:
ErrorBarPlotOptions
public class BoxPlotOptions extends ColumnPlotOptions
An option for box plotAll the options in this class support
DynamicalAttribute.- Author:
- RaymondChao
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description BoxPlotOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBoxDashStyle()Returns the dash style of the box.ColorgetFillColor()Returns the fill color of the box.NumbergetLineWidth()Returns the width of the line surrounding the box.StringgetMedianColor()Returns the color of the median line.StringgetMedianDashStyle()Returns a name for the dash style of the median.NumbergetMedianWidth()Returns the pixel width of the median line.ColorgetStemColor()Returns the color of the stem, the vertical line extending from the box to the whiskers.StringgetStemDashStyle()Returns the dash style of the stem, the vertical line extending from the box to the whiskers.NumbergetStemWidth()Returns the width of the stem, the vertical line extending from the box to the whiskers.ColorgetWhiskerColor()Returns the color of the whiskers, the horizontal lines marking low and high values.StringgetWhiskerDashStyle()Returns the dash style of the whisker.StringgetWhiskerLength()Returns the length of the whiskers, the horizontal lines marking low and high values.NumbergetWhiskerWidth()Returns the line width of the whiskers, the horizontal lines marking low and high values.voidsetBoxDashStyle(String boxDashStyle)Sets the dash style of the box.voidsetFillColor(String color)Sets the fill color of the box.voidsetFillColor(Color color)Sets the fill color of the box.voidsetFillColor(LinearGradient color)Sets the fill color of the box.voidsetFillColor(RadialGradient color)Sets the fill color of the box.voidsetLineWidth(Number lineWidth)Sets the width of the line surrounding the box.voidsetMedianColor(String medianColor)Sets the color of the median line.voidsetMedianColor(Color medianColor)Sets the color of the median line.voidsetMedianColor(LinearGradient medianColor)Sets the color of the median line.voidsetMedianColor(RadialGradient medianColor)Sets the color of the median line.voidsetMedianDashStyle(String medianDashStyle)Sets a name for the dash style of the median.voidsetMedianWidth(Number medianWidth)Sets the pixel width of the median line.voidsetStemColor(String color)Sets the color of the stem, the vertical line extending from the box to the whiskers.voidsetStemColor(Color color)Sets the color of the stem, the vertical line extending from the box to the whiskers.voidsetStemColor(LinearGradient color)Sets the color of the stem, the vertical line extending from the box to the whiskers.voidsetStemColor(RadialGradient color)Sets the color of the stem, the vertical line extending from the box to the whiskers.voidsetStemDashStyle(String stemDashStyle)Sets the dash style of the stem, the vertical line extending from the box to the whiskers.voidsetStemWidth(Number stemWidth)Sets the width of the stem, the vertical line extending from the box to the whiskers.voidsetWhiskerColor(String color)Sets the color of the whiskers, the horizontal lines marking low and high values.voidsetWhiskerColor(Color color)Sets the color of the whiskers, the horizontal lines marking low and high values.voidsetWhiskerColor(LinearGradient color)Sets the color of the whiskers, the horizontal lines marking low and high values.voidsetWhiskerColor(RadialGradient color)Sets the color of the whiskers, the horizontal lines marking low and high values.voidsetWhiskerDashStyle(String whiskerDashStyle)Sets the dash style of the whisker.voidsetWhiskerLength(Number whiskerLength)Sets the length of the whiskers, the horizontal lines marking low and high values.voidsetWhiskerLength(String whiskerLength)Sets the length of the whiskers, the horizontal lines marking low and high values.voidsetWhiskerWidth(Number whiskerWidth)Sets the line width of the whiskers, the horizontal lines marking low and high values.-
Methods inherited from class org.zkoss.chart.plotOptions.ColumnPlotOptions
getBorderColor, getBorderRadius, getBorderWidth, getColors, getCropThreshold, getEdgeColor, getEdgeWidth, getGroupPadding, getGroupZPadding, getMaxPointWidth, getMinPointLength, getPointPadding, getPointRange, getPointWidth, isCenterInCategory, isCrisp, isGrouping, setBorderColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setCenterInCategory, setColors, setColors, setCrisp, setCropThreshold, setEdgeColor, setEdgeColor, setEdgeWidth, setGrouping, setGroupPadding, setGroupZPadding, setMaxPointWidth, setMinPointLength, setPointPadding, setPointRange, setPointWidth
-
Methods inherited from class org.zkoss.chart.plotOptions.SeriesPlotOptions
addDataLabels, getAccessibility, getAnimation, getAnimationLimit, getBoostBlending, getBoostThreshold, getClassName, getColor, getColorAxis, getColorIndex, getColorKey, getConnectorWidth, getCursor, getCustom, getDashStyle, getDataLabels, getDataLabelsList, getDataSorting, getDepth, getDescription, getDragDrop, getFindNearestPointBy, getId, getIndex, getKeys, getLabel, getLegendSymbol, getLinecap, getLinkedTo, getMarker, getName, getNeckHeight, getNeckWidth, getNegativeColor, getOnPoint, getOpacity, getPointDescriptionFormatter, getPointInterval, getPointIntervalUnit, getPointPlacement, getPointStart, getStacking, getStates, getStep, getThreshold, getTooltip, getTurboThreshold, getZoneAxis, getZones, isAllowPointSelect, isAnimation, isClip, isColorByPoint, isConnectEnds, isConnectNulls, isDataAsColumns, isEnableMouseTracking, isGetExtremesFromAll, isIncludeInDataExport, isRelativeXValue, isSelected, isShadow, isShowCheckbox, isShowInLegend, isSkipKeyboardNavigation, isSoftThreshold, isStacking, isStickyTracking, isVisible, isZoomEnabled, newDataLabels, setAccessibility, setAllowPointSelect, setAnimation, setAnimation, setAnimationLimit, setBoostBlending, setBoostThreshold, setBorderRadius, setBorderRadius, setCenter, setCenter, setClassName, setClip, setColor, setColor, setColor, setColor, setColorAxis, setColorAxis, setColorAxis, setColorByPoint, setColorIndex, setColorKey, setConnectEnds, setConnectNulls, setConnectorWidth, setCursor, setCustom, setDashStyle, setDataAsColumns, setDataLabels, setDataLabels, setDataSorting, setDepth, setDescription, setDragDrop, setEnableMouseTracking, setFindNearestPointBy, setGetExtremesFromAll, setId, setIncludeInDataExport, setIndex, setKeys, setLabel, setLegendSymbol, setLinecap, setLinkedTo, setMarker, setName, setNeckHeight, setNeckWidth, setNegativeColor, setNegativeColor, setNegativeColor, setNegativeColor, setOnPoint, setOpacity, setPointDescriptionFormatter, setPointInterval, setPointIntervalUnit, setPointPlacement, setPointPlacement, setPointStart, setPointStart, setRelativeXValue, setSelected, setShadow, setShowCheckbox, setShowInLegend, setSkipKeyboardNavigation, setSoftThreshold, setStacking, setStacking, setStates, setStep, setStickyTracking, 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
-
getBoxDashStyle
public String getBoxDashStyle()
Returns the dash style of the box.Defaults to Solid.
- Since:
- 10.2.1.
-
setBoxDashStyle
public void setBoxDashStyle(String boxDashStyle)
Sets the dash style of the box.Defaults to Solid.
- Since:
- 10.2.1.
-
getFillColor
public Color getFillColor()
Returns the fill color of the box.Default: #FFFFFF
-
setFillColor
public void setFillColor(Color color)
Sets the fill color of the box.
-
setFillColor
public void setFillColor(String color)
Sets the fill color of the box.
-
setFillColor
public void setFillColor(LinearGradient color)
Sets the fill color of the box.
-
setFillColor
public void setFillColor(RadialGradient color)
Sets the fill color of the box.
-
getLineWidth
public Number getLineWidth()
Returns the width of the line surrounding the box. If any ofsetStemWidth(Number),setMedianWidth(Number), orsetWhiskerWidth(Number)arenull, the lineWidth also applies to these lines.- Overrides:
getLineWidthin classSeriesPlotOptions
-
setLineWidth
public void setLineWidth(Number lineWidth)
Sets the width of the line surrounding the box. If any ofsetStemWidth(Number),setMedianWidth(Number), orsetWhiskerWidth(Number)arenull, the lineWidth also applies to these lines.- Overrides:
setLineWidthin classSeriesPlotOptions
-
getMedianColor
public String getMedianColor()
Returns the color of the median line. Ifnull, the general series color applies.
-
setMedianColor
public void setMedianColor(String medianColor)
Sets the color of the median line. Ifnull, the general series color applies. 'medianColor the color of the median line. Ifnull, the general series color applies.
-
setMedianColor
public void setMedianColor(Color medianColor)
Sets the color of the median line. Ifnull, the general series color applies. 'medianColor the color of the median line. Ifnull, the general series color applies.- Since:
- 10.2.1.0
-
setMedianColor
public void setMedianColor(LinearGradient medianColor)
Sets the color of the median line. Ifnull, the general series color applies. 'medianColor the color of the median line. Ifnull, the general series color applies.- Since:
- 10.2.1.0
-
setMedianColor
public void setMedianColor(RadialGradient medianColor)
Sets the color of the median line. Ifnull, the general series color applies. 'medianColor the color of the median line. Ifnull, the general series color applies.- Since:
- 10.2.1.0
-
getMedianDashStyle
public String getMedianDashStyle()
Returns a name for the dash style of the median. The value for themedianDashStyleinclude:- Solid
- ShortDash
- ShortDot
- ShortDashDot
- ShortDashDotDot
- Dot
- Dash
- LongDash
- DashDot
- LongDashDot
- LongDashDotDot
Default:
"Solid"- Since:
- 10.2.1.0
-
setMedianDashStyle
public void setMedianDashStyle(String medianDashStyle)
Sets a name for the dash style of the median. The value for themedianDashStyleinclude:- Solid
- ShortDash
- ShortDot
- ShortDashDot
- ShortDashDotDot
- Dot
- Dash
- LongDash
- DashDot
- LongDashDot
- LongDashDotDot
- Since:
- 10.2.1.0
-
getMedianWidth
public Number getMedianWidth()
-
setMedianWidth
public void setMedianWidth(Number medianWidth)
-
getStemColor
public Color getStemColor()
Returns the color of the stem, the vertical line extending from the box to the whiskers. Ifnull, the series color is used.
-
setStemColor
public void setStemColor(Color color)
Sets the color of the stem, the vertical line extending from the box to the whiskers. Ifnull, the series color is used.
-
setStemColor
public void setStemColor(String color)
Sets the color of the stem, the vertical line extending from the box to the whiskers. Ifnull, the series color is used.
-
setStemColor
public void setStemColor(LinearGradient color)
Sets the color of the stem, the vertical line extending from the box to the whiskers. Ifnull, the series color is used.
-
setStemColor
public void setStemColor(RadialGradient color)
Sets the color of the stem, the vertical line extending from the box to the whiskers. Ifnull, the series color is used.
-
getStemDashStyle
public String getStemDashStyle()
Returns the dash style of the stem, the vertical line extending from the box to the whiskers.
-
setStemDashStyle
public void setStemDashStyle(String stemDashStyle)
Sets the dash style of the stem, the vertical line extending from the box to the whiskers.
-
getStemWidth
public Number getStemWidth()
Returns the width of the stem, the vertical line extending from the box to the whiskers. Ifnull, the width is inherited from thesetLineWidth(Number)option.
-
setStemWidth
public void setStemWidth(Number stemWidth)
Sets the width of the stem, the vertical line extending from the box to the whiskers. Ifnull, the width is inherited from thesetLineWidth(Number)option.
-
getWhiskerColor
public Color getWhiskerColor()
Returns the color of the whiskers, the horizontal lines marking low and high values. Whennull, the general series color is used.Default: null
-
setWhiskerColor
public void setWhiskerColor(Color color)
Sets the color of the whiskers, the horizontal lines marking low and high values. Whennull, the general series color is used.
-
setWhiskerColor
public void setWhiskerColor(String color)
Sets the color of the whiskers, the horizontal lines marking low and high values. Whennull, the general series color is used.
-
setWhiskerColor
public void setWhiskerColor(LinearGradient color)
Sets the color of the whiskers, the horizontal lines marking low and high values. Whennull, the general series color is used.
-
setWhiskerColor
public void setWhiskerColor(RadialGradient color)
Sets the color of the whiskers, the horizontal lines marking low and high values. Whennull, the general series color is used.
-
getWhiskerLength
public String getWhiskerLength()
Returns the length of the whiskers, the horizontal lines marking low and high values. It can be a numerical pixel value, or a percentage value of the box width. Set0to disable whiskers.Default: 50%
-
setWhiskerLength
public void setWhiskerLength(String whiskerLength)
Sets the length of the whiskers, the horizontal lines marking low and high values. It can be a numerical pixel value, or a percentage value of the box width. Set0to disable whiskers.
-
setWhiskerLength
public void setWhiskerLength(Number whiskerLength)
Sets the length of the whiskers, the horizontal lines marking low and high values. It can be a numerical pixel value, or a percentage value of the box width. Set0to disable whiskers.
-
getWhiskerWidth
public Number getWhiskerWidth()
Returns the line width of the whiskers, the horizontal lines marking low and high values. Whennull, the generalsetLineWidth(Number)applies.
-
setWhiskerWidth
public void setWhiskerWidth(Number whiskerWidth)
Sets the line width of the whiskers, the horizontal lines marking low and high values. Whennull, the generalsetLineWidth(Number)applies.
-
getWhiskerDashStyle
public String getWhiskerDashStyle()
Returns the dash style of the whisker.Defaults to Solid.
- Since:
- 10.2.1.
-
setWhiskerDashStyle
public void setWhiskerDashStyle(String whiskerDashStyle)
Sets the dash style of the whisker.Defaults to Solid.
- Since:
- 10.2.1.
-
-