Package org.zkoss.chart.plotOptions
Class TargetOptions
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.TargetOptions
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class TargetOptions extends Optionable
All options related with look and position of targets.- Since:
- 7.2.1.0
- Author:
- rudyhuang
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description TargetOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetBorderColor()Returns the border color of the rectangle representing the target.NumbergetBorderWidth()Returns the border width of the rectangle representing the target.ColorgetColor()Returns the color of the rectangle representing the target.NumbergetHeight()Returns the height of the rectangle representing the target.ObjectgetWidth()Returns the width of the rectangle representing the target.voidsetBorderColor(String borderColor)Sets the border color of the rectangle representing the target.voidsetBorderColor(Color borderColor)Sets the border color of the rectangle representing the target.voidsetBorderWidth(Number borderWidth)Sets the border width of the rectangle representing the target.voidsetColor(String color)Sets the color of the rectangle representing the target.voidsetColor(Color color)Sets the color of the rectangle representing the target.voidsetColor(LinearGradient color)Sets the color of the rectangle representing the target.voidsetColor(RadialGradient color)Sets the color of the rectangle representing the target.voidsetHeight(Number height)Sets the height of the rectangle representing the target.voidsetWidth(Number width)Sets the width of the rectangle representing the target.voidsetWidth(String width)Sets the width of the rectangle representing the target.-
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
-
-
-
-
Method Detail
-
getBorderColor
public Color getBorderColor()
Returns the border color of the rectangle representing the target. When not set, the point's border color is used.Default: null
-
setBorderColor
public void setBorderColor(Color borderColor)
Sets the border color of the rectangle representing the target.
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the border color of the rectangle representing the target.
-
getBorderWidth
public Number getBorderWidth()
Returns the border width of the rectangle representing the target.Default: 0
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the border width of the rectangle representing the target.Default: 0
-
getColor
public Color getColor()
Returns the color of the rectangle representing the target. When not set, point's color (if set in point's options - color) or zone of the target value (if zones or negativeColor are set) or the same color as the point has is used.Default: null
-
setColor
public void setColor(Color color)
Sets the color of the rectangle representing the target.
-
setColor
public void setColor(String color)
Sets the color of the rectangle representing the target.
-
setColor
public void setColor(LinearGradient color)
Sets the color of the rectangle representing the target.
-
setColor
public void setColor(RadialGradient color)
Sets the color of the rectangle representing the target.
-
getHeight
public Number getHeight()
Returns the height of the rectangle representing the target.Default: 3
-
setHeight
public void setHeight(Number height)
Sets the height of the rectangle representing the target.
-
getWidth
public Object getWidth()
Returns the width of the rectangle representing the target. Could be set as a pixel value or as a percentage of a column width.Default: "140%"
-
setWidth
public void setWidth(Number width)
Sets the width of the rectangle representing the target. Could be set as a pixel value.
-
setWidth
public void setWidth(String width)
Sets the width of the rectangle representing the target. Could be set as a percentage of a column width.
-
-