public class Arc extends Object
Modifier and Type | Method and Description |
---|---|
double |
getAngle()
Returns the arc angle to cover.
|
AngleCallback |
getAngleCallback()
Returns the angle callback, if set, otherwise
null . |
IsColor |
getBackgroundColor()
Returns the background color.
|
String |
getBackgroundColorAsString()
Returns the background color.
|
ColorCallback<DatasetContext> |
getBackgroundColorCallback()
Returns the background color callback, if set, otherwise
null . |
BorderAlign |
getBorderAlign()
Returns the property to set the border alignment on chart datasets.
|
BorderAlignCallback |
getBorderAlignCallback()
Returns the border align callback, if set, otherwise
null . |
IsColor |
getBorderColor()
Returns the border color.
|
String |
getBorderColorAsString()
Returns the border color.
|
ColorCallback<DatasetContext> |
getBorderColorCallback()
Returns the border color callback, if set, otherwise
null . |
int |
getBorderRadius()
Returns the arc border radius (in pixels).
|
BorderRadiusCallback |
getBorderRadiusCallback()
Returns the border radius callback, if set, otherwise
null . |
int |
getBorderWidth()
Returns the border width.
|
WidthCallback<DatasetContext> |
getBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
protected IsDefaultArc |
getDefaultElement()
Returns the element instance to be managed.
|
protected AbstractElement<IsDefaultArc> |
getElement()
Returns the element instance to be managed.
|
IsColor |
getHoverBackgroundColor()
Returns the background color when hovered.
|
String |
getHoverBackgroundColorAsString()
Returns the background color when hovered.
|
ColorCallback<DatasetContext> |
getHoverBackgroundColorCallback()
Returns the background color callback, if set, otherwise
null . |
IsColor |
getHoverBorderColor()
Returns the border color when hovered.
|
String |
getHoverBorderColorAsString()
Returns the border color when hovered.
|
ColorCallback<DatasetContext> |
getHoverBorderColorCallback()
Returns the border color callback, if set, otherwise
null . |
int |
getHoverBorderWidth()
Returns the border width when hovered.
|
WidthCallback<DatasetContext> |
getHoverBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
int |
getHoverOffset()
Returns the arc offset (in pixels) when hovered.
|
OffsetCallback<DatasetContext> |
getHoverOffsetCallback()
Returns the offset callback, if set, otherwise
null . |
int |
getOffset()
Returns the arc offset (in pixels).
|
OffsetCallback<DatasetContext> |
getOffsetCallback()
Returns the offset callback, if set, otherwise
null . |
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
int |
getSpacing()
Returns the fixed arc offset (in pixels).
Similar to offset but applies to all arcs. |
double |
getWeight()
Returns the relative thickness of the data set.
Providing a value for weight will cause the pie or doughnut data set to be drawn with a thickness relative to the sum of all the data set weight values. |
void |
setAngle(AngleCallback angleCallback)
Sets the angle callback.
|
void |
setAngle(double angle)
Sets the arc angle to cover.
|
void |
setAngle(NativeCallback angleCallback)
Sets the angle callback.
|
void |
setBackgroundColor(ColorCallback<DatasetContext> backgroundColorCallback)
Sets the background color callback.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color.
|
void |
setBackgroundColor(NativeCallback backgroundColorCallback)
Sets the background color callback.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color.
|
void |
setBorderAlign(BorderAlign align)
Sets the property to set the border alignment on chart datasets.
|
void |
setBorderAlign(BorderAlignCallback borderAlignCallback)
Sets the border align callback.
|
void |
setBorderAlign(NativeCallback borderAlignCallback)
Sets the border align callback.
|
void |
setBorderColor(ColorCallback<DatasetContext> borderColorCallback)
Sets the border color callback.
|
void |
setBorderColor(IsColor borderColor)
Sets the border color.
|
void |
setBorderColor(NativeCallback borderColorCallback)
Sets the border color callback.
|
void |
setBorderColor(String borderColor)
Sets the border color.
|
void |
setBorderRadius(BorderRadiusCallback borderRadiusCallback)
Sets the border radius callback.
|
void |
setBorderRadius(int borderRadius)
Sets the arc border radius (in pixels).
|
void |
setBorderRadius(NativeCallback borderRadiusCallback)
Sets the border radius callback.
|
void |
setBorderWidth(int borderWidth)
Sets the border width.
|
void |
setBorderWidth(NativeCallback borderWidthCallback)
Sets the border width callback.
|
void |
setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
Sets the border width callback.
|
void |
setHoverBackgroundColor(ColorCallback<DatasetContext> hoverBackgroundColorCallback)
Sets the background color callback, as hovered.
|
void |
setHoverBackgroundColor(IsColor backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBackgroundColor(NativeCallback hoverBackgroundColorCallback)
Sets the background color callback, as hovered.
|
void |
setHoverBackgroundColor(String backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBorderColor(ColorCallback<DatasetContext> hoverBorderColorCallback)
Sets the border color callback, as hovered.
|
void |
setHoverBorderColor(IsColor borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderColor(NativeCallback hoverBorderColorCallback)
Sets the border color callback, as hovered.
|
void |
setHoverBorderColor(String borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderWidth(int borderWidth)
Sets the border width when hovered.
|
void |
setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
Sets the border width callback, as hovered.
|
void |
setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
Sets the border width callback, as hovered.
|
void |
setHoverOffset(int offset)
Sets the arc offset (in pixels) when hovered.
|
void |
setHoverOffset(NativeCallback hoverOffsetCallback)
Sets the offset callback, when hovered.
|
void |
setHoverOffset(OffsetCallback<DatasetContext> hoverOffsetCallback)
Sets the offset callback, when hovered.
|
void |
setOffset(int offset)
Sets the arc offset (in pixels).
|
void |
setOffset(NativeCallback offsetCallback)
Sets the offset callback.
|
void |
setOffset(OffsetCallback<DatasetContext> offsetCallback)
Sets the offset callback.
|
void |
setSpacing(int spacing)
Sets the fixed arc offset (in pixels).
Similar to offset but applies to all arcs. |
void |
setWeight(double weight)
Sets the relative thickness of the data set.
Providing a value for weight will cause the pie or doughnut data set to be drawn with a thickness relative to the sum of all the data set weight values. |
protected AbstractElement<IsDefaultArc> getElement()
protected IsDefaultArc getDefaultElement()
public void setBorderAlign(BorderAlign align)
align
- the property to set the border alignment on chart datasetspublic BorderAlign getBorderAlign()
public void setWeight(double weight)
weight
- the relative thickness of the data setpublic double getWeight()
public void setAngle(double angle)
angle
- the arc angle to coverpublic double getAngle()
public void setOffset(int offset)
offset
- the arc offsetpublic int getOffset()
public void setSpacing(int spacing)
offset
but applies to all arcs.spacing
- the fixed arc offset (in pixels)public int getSpacing()
offset
but applies to all arcs.public void setBorderRadius(int borderRadius)
borderRadius
- the arc border radius (in pixels).public int getBorderRadius()
public void setHoverOffset(int offset)
offset
- the arc offset when hoveredpublic int getHoverOffset()
public BorderAlignCallback getBorderAlignCallback()
null
.null
.public void setBorderAlign(BorderAlignCallback borderAlignCallback)
borderAlignCallback
- the border align callback.public void setBorderAlign(NativeCallback borderAlignCallback)
borderAlignCallback
- the border align callback.public BorderRadiusCallback getBorderRadiusCallback()
null
.null
.public void setBorderRadius(BorderRadiusCallback borderRadiusCallback)
borderRadiusCallback
- the border radius callback.public void setBorderRadius(NativeCallback borderRadiusCallback)
borderRadiusCallback
- the border radius callback.public OffsetCallback<DatasetContext> getOffsetCallback()
null
.null
.public void setOffset(OffsetCallback<DatasetContext> offsetCallback)
offsetCallback
- the offset callback.public void setOffset(NativeCallback offsetCallback)
offsetCallback
- the offset callback.public OffsetCallback<DatasetContext> getHoverOffsetCallback()
null
.null
.public void setHoverOffset(OffsetCallback<DatasetContext> hoverOffsetCallback)
hoverOffsetCallback
- the offset callback, when hovered.public void setHoverOffset(NativeCallback hoverOffsetCallback)
hoverOffsetCallback
- the offset callback, when hovered.public AngleCallback getAngleCallback()
null
.null
.public void setAngle(AngleCallback angleCallback)
angleCallback
- the angle callback.public void setAngle(NativeCallback angleCallback)
angleCallback
- the angle callback.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()
public ColorCallback<DatasetContext> getBackgroundColorCallback()
null
.null
.public void setBackgroundColor(ColorCallback<DatasetContext> backgroundColorCallback)
backgroundColorCallback
- the background color callback.public void setBackgroundColor(NativeCallback backgroundColorCallback)
backgroundColorCallback
- the background color callback.public ColorCallback<DatasetContext> getBorderColorCallback()
null
.null
.public void setBorderColor(ColorCallback<DatasetContext> borderColorCallback)
borderColorCallback
- the border color callback.public void setBorderColor(NativeCallback borderColorCallback)
borderColorCallback
- the border color callback.public WidthCallback<DatasetContext> getBorderWidthCallback()
null
.null
.public void setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
borderWidthCallback
- the border width callback.public void setBorderWidth(NativeCallback borderWidthCallback)
borderWidthCallback
- the border width callback.public ColorCallback<DatasetContext> getHoverBackgroundColorCallback()
null
.null
.public void setHoverBackgroundColor(ColorCallback<DatasetContext> hoverBackgroundColorCallback)
hoverBackgroundColorCallback
- the background color callback, as hoveredpublic void setHoverBackgroundColor(NativeCallback hoverBackgroundColorCallback)
hoverBackgroundColorCallback
- the background color callback, as hoveredpublic ColorCallback<DatasetContext> getHoverBorderColorCallback()
null
.null
.public void setHoverBorderColor(ColorCallback<DatasetContext> hoverBorderColorCallback)
hoverBorderColorCallback
- the border color callback, as hoveredpublic void setHoverBorderColor(NativeCallback hoverBorderColorCallback)
hoverBorderColorCallback
- the border color callback, as hoveredpublic WidthCallback<DatasetContext> getHoverBorderWidthCallback()
null
.null
.public void setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
hoverBorderWidthCallback
- the border width callback, as hoveredpublic void setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
hoverBorderWidthCallback
- the border width callback, as hoveredprotected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()