Class DefaultChartArc
- java.lang.Object
- 
- org.pepstock.charba.client.defaults.chart.DefaultChartArc
 
- 
- All Implemented Interfaces:
- IsDefaultArc,- IsDefaultOptionsElement
 
 public final class DefaultChartArc extends Object implements IsDefaultArc Defaults for arc option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAngle()Returns the arc angle to cover.StringgetBackgroundColorAsString()Returns the background color.BorderAligngetBorderAlign()Returns the property to set the border alignment on chart datasets.StringgetBorderColorAsString()Returns the border color.JoinStylegetBorderJoinStyle()Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).intgetBorderRadius()Returns the arc border radius (in pixels).intgetBorderWidth()Returns the border width.StringgetHoverBackgroundColorAsString()Returns the background color when hovered.StringgetHoverBorderColorAsString()Returns the border color when hovered.JoinStylegetHoverBorderJoinStyle()Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped), when hovered.intgetHoverBorderWidth()Returns the border width when hovered.intgetHoverOffset()Returns the arc offset (in pixels) when hovered.intgetOffset()Returns the arc offset (in pixels).intgetSpacing()Returns the fixed arc offset (in pixels).
 Similar tooffsetbut applies to all arcs.doublegetWeight()Returns the relative thickness of the dataset.
 Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.booleanisCircular()Returnstrueif the arc is curved.
 
- 
- 
- 
Method Detail- 
getBackgroundColorAsStringpublic String getBackgroundColorAsString() Description copied from interface:IsDefaultOptionsElementReturns the background color.- Specified by:
- getBackgroundColorAsStringin interface- IsDefaultOptionsElement
- Returns:
- the background color.
 
 - 
getBorderWidthpublic int getBorderWidth() Description copied from interface:IsDefaultOptionsElementReturns the border width.- Specified by:
- getBorderWidthin interface- IsDefaultOptionsElement
- Returns:
- the border width.
 
 - 
getBorderColorAsStringpublic String getBorderColorAsString() Description copied from interface:IsDefaultOptionsElementReturns the border color.- Specified by:
- getBorderColorAsStringin interface- IsDefaultOptionsElement
- Returns:
- the border color.
 
 - 
getBorderAlignpublic BorderAlign getBorderAlign() Description copied from interface:IsDefaultArcReturns the property to set the border alignment on chart datasets.- Specified by:
- getBorderAlignin interface- IsDefaultArc
- Returns:
- the property to set the border alignment on chart datasets.
 
 - 
getBorderJoinStylepublic JoinStyle getBorderJoinStyle() Description copied from interface:IsDefaultArcReturns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped).- Specified by:
- getBorderJoinStylein interface- IsDefaultArc
- Returns:
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
 
 - 
getWeightpublic double getWeight() Description copied from interface:IsDefaultArcReturns the relative thickness of the dataset.
 Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.- Specified by:
- getWeightin interface- IsDefaultArc
- Returns:
- the relative thickness of the dataset
 
 - 
getAnglepublic double getAngle() Description copied from interface:IsDefaultArcReturns the arc angle to cover.- Specified by:
- getAnglein interface- IsDefaultArc
- Returns:
- the arc angle to cover
 
 - 
getOffsetpublic int getOffset() Description copied from interface:IsDefaultArcReturns the arc offset (in pixels).- Specified by:
- getOffsetin interface- IsDefaultArc
- Returns:
- the arc offset
 
 - 
getBorderRadiuspublic int getBorderRadius() Description copied from interface:IsDefaultArcReturns the arc border radius (in pixels).- Specified by:
- getBorderRadiusin interface- IsDefaultArc
- Returns:
- the arc border radius (in pixels).
 
 - 
getHoverBackgroundColorAsStringpublic String getHoverBackgroundColorAsString() Description copied from interface:IsDefaultOptionsElementReturns the background color when hovered.- Specified by:
- getHoverBackgroundColorAsStringin interface- IsDefaultOptionsElement
- Returns:
- the background color when hovered.
 
 - 
getHoverBorderWidthpublic int getHoverBorderWidth() Description copied from interface:IsDefaultOptionsElementReturns the border width when hovered.- Specified by:
- getHoverBorderWidthin interface- IsDefaultOptionsElement
- Returns:
- the border width when hovered.
 
 - 
getHoverBorderColorAsStringpublic String getHoverBorderColorAsString() Description copied from interface:IsDefaultOptionsElementReturns the border color when hovered.- Specified by:
- getHoverBorderColorAsStringin interface- IsDefaultOptionsElement
- Returns:
- the border color when hovered.
 
 - 
getHoverOffsetpublic int getHoverOffset() Description copied from interface:IsDefaultArcReturns the arc offset (in pixels) when hovered.- Specified by:
- getHoverOffsetin interface- IsDefaultArc
- Returns:
- the arc offset when hovered
 
 - 
getSpacingpublic int getSpacing() Description copied from interface:IsDefaultArcReturns the fixed arc offset (in pixels).
 Similar tooffsetbut applies to all arcs.- Specified by:
- getSpacingin interface- IsDefaultArc
- Returns:
- the fixed arc offset (in pixels)
 
 - 
getHoverBorderJoinStylepublic JoinStyle getHoverBorderJoinStyle() Description copied from interface:IsDefaultArcReturns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified end points and control points are exactly at the same position, are skipped), when hovered.- Specified by:
- getHoverBorderJoinStylein interface- IsDefaultArc
- Returns:
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
 
 - 
isCircularpublic boolean isCircular() Description copied from interface:IsDefaultArcReturnstrueif the arc is curved.- Specified by:
- isCircularin interface- IsDefaultArc
- Returns:
- trueif the arc is curved
 
 
- 
 
-