Class DefaultLine
- java.lang.Object
-
- org.pepstock.charba.client.defaults.globals.DefaultLine
-
- All Implemented Interfaces:
IsDefaultFillHandler
,IsDefaultLine
,IsDefaultOptionsElement
public final class DefaultLine extends Object implements IsDefaultLine
CHART.JS default values for LINE element.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBackgroundColorAsString()
Returns the background color.CapStyle
getBorderCapStyle()
Returns how the end points of every line are drawn.String
getBorderColorAsString()
Returns the border color.double
getBorderDashOffset()
Returns the line dash pattern offset.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
getBorderWidth()
Returns the border width.CubicInterpolationMode
getCubicInterpolationMode()
Returns algorithm used to interpolate a smooth curve from the discrete data points.IsFill
getFill()
Returns how to fill the area under the line.String
getHoverBackgroundColorAsString()
Returns the background color when hovered.String
getHoverBorderColorAsString()
Returns the border color when hovered.int
getHoverBorderWidth()
Returns the border width when hovered.Stepped
getStepped()
Returns if the line is shown as a stepped line.double
getTension()
Returns the Bézier curve tension (0 for no Bézier curves).boolean
isCapBezierPoints()
Returnstrue
to keep Bézier control inside the chart,false
for no restriction.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultOptionsElement
getBackgroundColorAsString, getBorderColorAsString, getBorderWidth, getHoverBackgroundColorAsString, getHoverBorderColorAsString, getHoverBorderWidth
-
-
-
-
Method Detail
-
getTension
public double getTension()
Description copied from interface:IsDefaultLine
Returns the Bézier curve tension (0 for no Bézier curves).- Specified by:
getTension
in interfaceIsDefaultLine
- Returns:
- the Bézier curve tension (0 for no Bézier curves).
-
getBorderCapStyle
public CapStyle getBorderCapStyle()
Description copied from interface:IsDefaultLine
Returns how the end points of every line are drawn.- Specified by:
getBorderCapStyle
in interfaceIsDefaultLine
- Returns:
- how the end points of every line are drawn.
-
getBorderDashOffset
public double getBorderDashOffset()
Description copied from interface:IsDefaultLine
Returns the line dash pattern offset.- Specified by:
getBorderDashOffset
in interfaceIsDefaultLine
- Returns:
- the line dash pattern offset.
-
getBorderJoinStyle
public JoinStyle getBorderJoinStyle()
Description copied from interface:IsDefaultLine
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 interfaceIsDefaultLine
- Returns:
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
-
isCapBezierPoints
public boolean isCapBezierPoints()
Description copied from interface:IsDefaultLine
Returnstrue
to keep Bézier control inside the chart,false
for no restriction.- Specified by:
isCapBezierPoints
in interfaceIsDefaultLine
- Returns:
true
to keep Bézier control inside the chart,false
for no restriction.
-
getCubicInterpolationMode
public CubicInterpolationMode getCubicInterpolationMode()
Description copied from interface:IsDefaultLine
Returns algorithm used to interpolate a smooth curve from the discrete data points.- Specified by:
getCubicInterpolationMode
in interfaceIsDefaultLine
- Returns:
- algorithm used to interpolate a smooth curve from the discrete data points.
-
getFill
public IsFill getFill()
Description copied from interface:IsDefaultFillHandler
Returns how to fill the area under the line.- Specified by:
getFill
in interfaceIsDefaultFillHandler
- Returns:
- how to fill the area under the line.
-
getStepped
public Stepped getStepped()
Description copied from interface:IsDefaultLine
Returns if the line is shown as a stepped line.- Specified by:
getStepped
in interfaceIsDefaultLine
- Returns:
- If the line is shown as a stepped line.
-
getBackgroundColorAsString
public final String getBackgroundColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the background color.- Specified by:
getBackgroundColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the background color.
-
getBorderWidth
public final int getBorderWidth()
Description copied from interface:IsDefaultOptionsElement
Returns the border width.- Specified by:
getBorderWidth
in interfaceIsDefaultOptionsElement
- Returns:
- the border width.
-
getBorderColorAsString
public final String getBorderColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the border color.- Specified by:
getBorderColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the border color.
-
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.
-
-