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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAngle()
Returns the arc angle to cover.String
getBackgroundColorAsString()
Returns the background color.BorderAlign
getBorderAlign()
Returns the property to set the border alignment on chart datasets.String
getBorderColorAsString()
Returns the border color.JoinStyle
getBorderJoinStyle()
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).int
getBorderRadius()
Returns the arc border radius (in pixels).int
getBorderWidth()
Returns the border width.String
getHoverBackgroundColorAsString()
Returns the background color when hovered.String
getHoverBorderColorAsString()
Returns the border color when hovered.JoinStyle
getHoverBorderJoinStyle()
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.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).int
getSpacing()
Returns the fixed arc offset (in pixels).
Similar tooffset
but applies to all arcs.double
getWeight()
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.
-
-
-
Method Detail
-
getBackgroundColorAsString
public String getBackgroundColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the background color.- Specified by:
getBackgroundColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the background color.
-
getBorderWidth
public int getBorderWidth()
Description copied from interface:IsDefaultOptionsElement
Returns the border width.- Specified by:
getBorderWidth
in interfaceIsDefaultOptionsElement
- Returns:
- the border width.
-
getBorderColorAsString
public String getBorderColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the border color.- Specified by:
getBorderColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the border color.
-
getBorderAlign
public BorderAlign getBorderAlign()
Description copied from interface:IsDefaultArc
Returns the property to set the border alignment on chart datasets.- Specified by:
getBorderAlign
in interfaceIsDefaultArc
- Returns:
- the property to set the border alignment on chart datasets.
-
getBorderJoinStyle
public JoinStyle getBorderJoinStyle()
Description copied from interface:IsDefaultArc
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).- Specified by:
getBorderJoinStyle
in interfaceIsDefaultArc
- Returns:
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
-
getWeight
public double getWeight()
Description copied from interface:IsDefaultArc
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.- Specified by:
getWeight
in interfaceIsDefaultArc
- Returns:
- the relative thickness of the dataset
-
getAngle
public double getAngle()
Description copied from interface:IsDefaultArc
Returns the arc angle to cover.- Specified by:
getAngle
in interfaceIsDefaultArc
- Returns:
- the arc angle to cover
-
getOffset
public int getOffset()
Description copied from interface:IsDefaultArc
Returns the arc offset (in pixels).- Specified by:
getOffset
in interfaceIsDefaultArc
- Returns:
- the arc offset
-
getBorderRadius
public int getBorderRadius()
Description copied from interface:IsDefaultArc
Returns the arc border radius (in pixels).- Specified by:
getBorderRadius
in interfaceIsDefaultArc
- Returns:
- the arc border radius (in pixels).
-
getHoverBackgroundColorAsString
public String getHoverBackgroundColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the background color when hovered.- Specified by:
getHoverBackgroundColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the background color when hovered.
-
getHoverBorderWidth
public int getHoverBorderWidth()
Description copied from interface:IsDefaultOptionsElement
Returns the border width when hovered.- Specified by:
getHoverBorderWidth
in interfaceIsDefaultOptionsElement
- Returns:
- the border width when hovered.
-
getHoverBorderColorAsString
public String getHoverBorderColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the border color when hovered.- Specified by:
getHoverBorderColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the border color when hovered.
-
getHoverOffset
public int getHoverOffset()
Description copied from interface:IsDefaultArc
Returns the arc offset (in pixels) when hovered.- Specified by:
getHoverOffset
in interfaceIsDefaultArc
- Returns:
- the arc offset when hovered
-
getSpacing
public int getSpacing()
Description copied from interface:IsDefaultArc
Returns the fixed arc offset (in pixels).
Similar tooffset
but applies to all arcs.- Specified by:
getSpacing
in interfaceIsDefaultArc
- Returns:
- the fixed arc offset (in pixels)
-
getHoverBorderJoinStyle
public JoinStyle getHoverBorderJoinStyle()
Description copied from interface:IsDefaultArc
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.- Specified by:
getHoverBorderJoinStyle
in interfaceIsDefaultArc
- Returns:
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
-
-