public final class Point extends AbstractElement<IsDefaultPoint> implements IsDefaultPoint
Modifier and Type | Method and Description |
---|---|
protected void |
checkAndAddToParent()
Called recursively when a property has been set in the item.
This is mandatory because it could happen that the parent item is not present, therefore it must be added. |
protected Key |
getChildKey()
Returns the property name to use to add this element to its parent.
|
protected D |
getDefaultValues()
Returns the default provider instance.
|
double |
getHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
int |
getHoverBorderWidth()
Returns the border width of point when hovered.
|
double |
getHoverRadius()
Returns the radius of the point when hovered.
|
protected P |
getParent()
Returns the parent element.
|
PointStyle |
getPointStyle()
Returns the style of the point.
|
ImageElement |
getPointStyleAsImages()
Returns the style of the point as image.
|
double |
getRadius()
Returns the radius of the point when hovered.
|
double |
getRotation()
Returns the point rotation (in degrees).
|
protected void |
setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for callbacks) to a model at the specific key.
|
protected void |
setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for events) to a model at the specific key.
|
void |
setHitRadius(double hitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.
|
void |
setHoverBorderWidth(int hoverBorderWidth)
Sets the border width of point when hovered.
|
void |
setHoverRadius(double hoverRadius)
Sets the radius of the point when hovered.
|
void |
setPointStyle(Image pointStyle)
Sets the style of the point as image.
|
void |
setPointStyle(ImageElement pointStyle)
Sets the style of the point as image.
|
void |
setPointStyle(ImageResource 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.
|
void |
setRotation(double rotation)
Sets the point rotation (in degrees).
|
getBackgroundColor, getBackgroundColorAsString, getBorderColor, getBorderColorAsString, getBorderWidth, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderWidth
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackgroundColorAsString, getBorderColorAsString, getBorderWidth
public void setRadius(double radius)
radius
- array of the radius of the point shape.public double getRadius()
getRadius
in interface IsDefaultPoint
public void setPointStyle(PointStyle pointStyle)
pointStyle
- array of the style of the point.public PointStyle getPointStyle()
getPointStyle
in interface IsDefaultPoint
null
if point style is set as imagepublic void setPointStyle(ImageResource pointStyle)
pointStyle
- image resource of the style of the point as image.public void setPointStyle(Image pointStyle)
pointStyle
- image resource of the style of the point as image.public void setPointStyle(ImageElement pointStyle)
pointStyle
- image element of the style of the point as image.public ImageElement getPointStyleAsImages()
null
.null
.public void setHitRadius(double hitRadius)
hitRadius
- the pixel size of the non-displayed point.public double getHitRadius()
getHitRadius
in interface IsDefaultPoint
public void setHoverRadius(double hoverRadius)
hoverRadius
- the radius of the point when hovered.public double getHoverRadius()
getHoverRadius
in interface IsDefaultPoint
public void setHoverBorderWidth(int hoverBorderWidth)
hoverBorderWidth
- the border width of point when hovered.public int getHoverBorderWidth()
getHoverBorderWidth
in interface IsDefaultPoint
public void setRotation(double rotation)
rotation
- the point rotation (in degrees).public double getRotation()
getRotation
in interface IsDefaultPoint
protected final Key getChildKey()
null
if is a root element.protected final P getParent()
null
if is a root element.protected final D getDefaultValues()
protected final void setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model, Key key, CallbackProxy.Proxy proxy)
model
- element where adding the function proxykey
- property name to use to add the function proxyproxy
- the function proxy instance to addprotected final void setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model, Key key, CallbackProxy.Proxy proxy)
model
- element where adding the function proxykey
- property name to use to add the function proxyproxy
- the function proxy instance to addprotected final void checkAndAddToParent()