public class Arc extends Object
Modifier and Type | Method and Description |
---|---|
double |
getAngle()
Returns the arc angle to cover.
|
IsColor |
getBackgroundColor()
Returns the background color.
|
String |
getBackgroundColorAsString()
Returns the background color.
|
BorderAlign |
getBorderAlign()
Returns the property to set the border alignment on chart datasets.
|
IsColor |
getBorderColor()
Returns the border color.
|
String |
getBorderColorAsString()
Returns the border color.
|
int |
getBorderRadius()
Returns the arc border radius (in pixels).
|
int |
getBorderWidth()
Returns the border width.
|
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
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.
|
IsColor |
getHoverBorderColor()
Returns the border color when hovered.
|
String |
getHoverBorderColorAsString()
Returns the border color when hovered.
|
int |
getHoverBorderWidth()
Returns the border width when hovered.
|
int |
getHoverOffset()
Returns the arc offset (in pixels) when hovered.
|
int |
getOffset()
Returns the arc offset (in pixels).
|
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
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(double angle)
Sets the arc angle to cover.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color.
|
void |
setBorderAlign(BorderAlign align)
Sets the property to set the border alignment on chart datasets.
|
void |
setBorderColor(IsColor borderColor)
Sets the border color.
|
void |
setBorderColor(String borderColor)
Sets the border color.
|
void |
setBorderRadius(int borderRadius)
Sets the arc border radius (in pixels).
|
void |
setBorderWidth(int borderWidth)
Sets the border width.
|
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 |
setHoverOffset(int offset)
Sets the arc offset (in pixels) when hovered.
|
void |
setOffset(int offset)
Sets the arc offset (in pixels).
|
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()
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 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 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()