public class Point extends Object
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the background color.
|
String |
getBackgroundColorAsString()
Returns the background color.
|
IsColor |
getBorderColor()
Returns the border color.
|
String |
getBorderColorAsString()
Returns the border color.
|
int |
getBorderWidth()
Returns the border width.
|
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
protected AbstractElement<IsDefaultPoint> |
getElement()
Returns the element instance to be managed.
|
double |
getHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
IsColor |
getHoverBackgroundColor()
Returns the background color when hovered.
|
String |
getHoverBackgroundColorAsString()
Returns the background color when hovered.
|
IsColor |
getHoverBorderColor()
Returns the border color when hovered.
|
String |
getHoverBorderColorAsString()
Returns the border color when hovered.
|
int |
getHoverBorderWidth()
Returns the border width when hovered.
|
double |
getHoverRadius()
Returns the radius of the point when hovered.
|
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
PointStyle |
getPointStyle()
Returns the style of the point.
|
Img |
getPointStyleAsImage()
Returns the style of the point as image.
|
double |
getRadius()
Returns the radius of the point.
|
double |
getRotation()
Returns the point rotation (in degrees).
|
boolean |
isPointStyleAsImage()
Returns
true if the point style is set by an Img . |
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color.
|
void |
setBorderColor(IsColor borderColor)
Sets the border color.
|
void |
setBorderColor(String borderColor)
Sets the border color.
|
void |
setBorderWidth(int borderWidth)
Sets the border width.
|
void |
setHitRadius(double hitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.
|
void |
setHoverBackgroundColor(IsColor backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBackgroundColor(String backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBorderColor(IsColor borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderColor(String borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderWidth(int borderWidth)
Sets the border width when hovered.
|
void |
setHoverRadius(double hoverRadius)
Sets the radius of the point when hovered.
|
void |
setPointStyle(Img pointStyle)
Sets the style of the point as image .
|
void |
setPointStyle(PointStyle pointStyle)
Sets the style of the point.
|
void |
setRadius(double radius)
Sets the radius of the point shape.
If set to 0, the point is not rendered. |
void |
setRotation(double rotation)
Sets the point rotation (in degrees).
|
protected AbstractElement<IsDefaultPoint> getElement()
public void setRadius(double radius)
radius
- array of the radius of the point shape.public double getRadius()
public void setPointStyle(PointStyle pointStyle)
pointStyle
- array of the style of the point.public void setPointStyle(Img pointStyle)
pointStyle
- array of the style of the point.public boolean isPointStyleAsImage()
true
if the point style is set by an Img
.true
if the point style is set by an Img
public PointStyle getPointStyle()
public Img getPointStyleAsImage()
public void setHitRadius(double hitRadius)
hitRadius
- the pixel size of the non-displayed point.public double getHitRadius()
public void setHoverRadius(double hoverRadius)
hoverRadius
- the radius of the point when hovered.public double getHoverRadius()
public void setRotation(double rotation)
rotation
- the point rotation (in degrees).public double getRotation()
public void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color.public void setBackgroundColor(String backgroundColor)
backgroundColor
- the background color.public String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public void setBorderWidth(int borderWidth)
borderWidth
- the border width.public int getBorderWidth()
public void setBorderColor(IsColor borderColor)
borderColor
- the border color.public void setBorderColor(String borderColor)
borderColor
- the border color.public String getBorderColorAsString()
public IsColor getBorderColor()
public void setHoverBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color when hovered.public void setHoverBackgroundColor(String backgroundColor)
backgroundColor
- the background color when hovered.public String getHoverBackgroundColorAsString()
public IsColor getHoverBackgroundColor()
public void setHoverBorderWidth(int borderWidth)
borderWidth
- the border width when hovered.public int getHoverBorderWidth()
public void setHoverBorderColor(IsColor borderColor)
borderColor
- the border color when hovered.public void setHoverBorderColor(String borderColor)
borderColor
- the border color when hovered.public String getHoverBorderColorAsString()
public IsColor getHoverBorderColor()
protected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()