public class Point extends Object
Point elements are used to represent the points in a line chart or a bubble chart.
When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.
Constructor and Description |
---|
Point() |
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor() |
Color |
getBorderColor() |
Integer |
getBorderWidth() |
Integer |
getHitRadius() |
Integer |
getHoverBorderWidth() |
Integer |
getHoverRadius() |
PointStyle |
getPointStyle() |
Integer |
getRadius() |
Point |
setBackgroundColor(Color backgroundColor)
Default point fill color
|
Point |
setBorderColor(Color borderColor)
Default point stroke color
|
Point |
setBorderWidth(Integer borderWidth)
Default point stroke width
|
Point |
setHitRadius(Integer hitRadius)
Extra radius added to point radius for hit detection
|
Point |
setHoverBorderWidth(Integer hoverBorderWidth)
Default stroke width when hovered
|
Point |
setHoverRadius(Integer hoverRadius)
Default point radius when hovered
|
Point |
setPointStyle(PointStyle pointStyle)
Default point style
|
Point |
setRadius(Integer radius)
Default point radius
|
public Integer getRadius()
setRadius(Integer)
public PointStyle getPointStyle()
setPointStyle(PointStyle)
public Point setPointStyle(PointStyle pointStyle)
Default point style
Default 'circle'
public Color getBackgroundColor()
setBackgroundColor(Color)
public Point setBackgroundColor(Color backgroundColor)
Default point fill color
Default 'rgba(0,0,0,0.1)'
public Integer getBorderWidth()
setBorderWidth(Integer)
public Point setBorderWidth(Integer borderWidth)
Default point stroke width
Default 1
public Color getBorderColor()
setBorderColor(Color)
public Point setBorderColor(Color borderColor)
Default point stroke color
Default 'rgba(0,0,0,0.1)'
public Integer getHitRadius()
setHitRadius(Integer)
public Point setHitRadius(Integer hitRadius)
Extra radius added to point radius for hit detection
Default 1
public Integer getHoverRadius()
setHoverRadius(Integer)
public Point setHoverRadius(Integer hoverRadius)
Default point radius when hovered
Default 4
public Integer getHoverBorderWidth()
setHoverBorderWidth(Integer)
Copyright © 2017. All rights reserved.