Class DefaultChartLine
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartLine
-
- All Implemented Interfaces:
IsDefaultFillHandler,IsDefaultLine,IsDefaultOptionsElement
public final class DefaultChartLine extends Object implements IsDefaultLine
Defaults for line option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBackgroundColorAsString()Returns the background color.CapStylegetBorderCapStyle()Returns how the end points of every line are drawn.StringgetBorderColorAsString()Returns the border color.doublegetBorderDashOffset()Returns the line dash pattern offset.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).intgetBorderWidth()Returns the border width.CubicInterpolationModegetCubicInterpolationMode()Returns algorithm used to interpolate a smooth curve from the discrete data points.IsFillgetFill()Returns how to fill the area under the line.StringgetHoverBackgroundColorAsString()Returns the background color when hovered.StringgetHoverBorderColorAsString()Returns the border color when hovered.intgetHoverBorderWidth()Returns the border width when hovered.SteppedgetStepped()Returns if the line is shown as a stepped line.doublegetTension()Returns the Bézier curve tension (0 for no Bézier curves).booleanisCapBezierPoints()Returnstrueto keep Bézier control inside the chart,falsefor no restriction.
-
-
-
Method Detail
-
getBackgroundColorAsString
public String getBackgroundColorAsString()
Description copied from interface:IsDefaultOptionsElementReturns the background color.- Specified by:
getBackgroundColorAsStringin interfaceIsDefaultOptionsElement- Returns:
- the background color.
-
getBorderWidth
public int getBorderWidth()
Description copied from interface:IsDefaultOptionsElementReturns the border width.- Specified by:
getBorderWidthin interfaceIsDefaultOptionsElement- Returns:
- the border width.
-
getBorderColorAsString
public String getBorderColorAsString()
Description copied from interface:IsDefaultOptionsElementReturns the border color.- Specified by:
getBorderColorAsStringin interfaceIsDefaultOptionsElement- Returns:
- the border color.
-
getTension
public double getTension()
Description copied from interface:IsDefaultLineReturns the Bézier curve tension (0 for no Bézier curves).- Specified by:
getTensionin interfaceIsDefaultLine- Returns:
- the Bézier curve tension (0 for no Bézier curves).
-
getBorderCapStyle
public CapStyle getBorderCapStyle()
Description copied from interface:IsDefaultLineReturns how the end points of every line are drawn.- Specified by:
getBorderCapStylein interfaceIsDefaultLine- Returns:
- how the end points of every line are drawn.
-
getBorderDashOffset
public double getBorderDashOffset()
Description copied from interface:IsDefaultLineReturns the line dash pattern offset.- Specified by:
getBorderDashOffsetin interfaceIsDefaultLine- Returns:
- the line dash pattern offset.
-
getBorderJoinStyle
public JoinStyle getBorderJoinStyle()
Description copied from interface:IsDefaultLineReturns 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 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:IsDefaultLineReturnstrueto keep Bézier control inside the chart,falsefor no restriction.- Specified by:
isCapBezierPointsin interfaceIsDefaultLine- Returns:
trueto keep Bézier control inside the chart,falsefor no restriction.
-
getCubicInterpolationMode
public CubicInterpolationMode getCubicInterpolationMode()
Description copied from interface:IsDefaultLineReturns algorithm used to interpolate a smooth curve from the discrete data points.- Specified by:
getCubicInterpolationModein interfaceIsDefaultLine- Returns:
- algorithm used to interpolate a smooth curve from the discrete data points.
-
getFill
public IsFill getFill()
Description copied from interface:IsDefaultFillHandlerReturns how to fill the area under the line.- Specified by:
getFillin interfaceIsDefaultFillHandler- Returns:
- how to fill the area under the line.
-
getStepped
public Stepped getStepped()
Description copied from interface:IsDefaultLineReturns if the line is shown as a stepped line.- Specified by:
getSteppedin interfaceIsDefaultLine- Returns:
- If the line is shown as a stepped line.
-
getHoverBackgroundColorAsString
public String getHoverBackgroundColorAsString()
Description copied from interface:IsDefaultOptionsElementReturns the background color when hovered.- Specified by:
getHoverBackgroundColorAsStringin interfaceIsDefaultOptionsElement- Returns:
- the background color when hovered.
-
getHoverBorderWidth
public int getHoverBorderWidth()
Description copied from interface:IsDefaultOptionsElementReturns the border width when hovered.- Specified by:
getHoverBorderWidthin interfaceIsDefaultOptionsElement- Returns:
- the border width when hovered.
-
getHoverBorderColorAsString
public String getHoverBorderColorAsString()
Description copied from interface:IsDefaultOptionsElementReturns the border color when hovered.- Specified by:
getHoverBorderColorAsStringin interfaceIsDefaultOptionsElement- Returns:
- the border color when hovered.
-
-