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 SummaryAll 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.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultOptionsElementgetBackgroundColorAsString, getBorderColorAsString, getBorderWidth, getHoverBackgroundColorAsString, getHoverBorderColorAsString, getHoverBorderWidth
 
- 
 
- 
- 
- 
Method Detail- 
getTensionpublic double getTension() Description copied from interface:IsDefaultLineReturns the Bézier curve tension (0 for no Bézier curves).- Specified by:
- getTensionin interface- IsDefaultLine
- Returns:
- the Bézier curve tension (0 for no Bézier curves).
 
 - 
getBorderCapStylepublic CapStyle getBorderCapStyle() Description copied from interface:IsDefaultLineReturns how the end points of every line are drawn.- Specified by:
- getBorderCapStylein interface- IsDefaultLine
- Returns:
- how the end points of every line are drawn.
 
 - 
getBorderDashOffsetpublic double getBorderDashOffset() Description copied from interface:IsDefaultLineReturns the line dash pattern offset.- Specified by:
- getBorderDashOffsetin interface- IsDefaultLine
- Returns:
- the line dash pattern offset.
 
 - 
getBorderJoinStylepublic 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 interface- IsDefaultLine
- Returns:
- how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together
 
 - 
isCapBezierPointspublic boolean isCapBezierPoints() Description copied from interface:IsDefaultLineReturnstrueto keep Bézier control inside the chart,falsefor no restriction.- Specified by:
- isCapBezierPointsin interface- IsDefaultLine
- Returns:
- trueto keep Bézier control inside the chart,- falsefor no restriction.
 
 - 
getCubicInterpolationModepublic CubicInterpolationMode getCubicInterpolationMode() Description copied from interface:IsDefaultLineReturns algorithm used to interpolate a smooth curve from the discrete data points.- Specified by:
- getCubicInterpolationModein interface- IsDefaultLine
- Returns:
- algorithm used to interpolate a smooth curve from the discrete data points.
 
 - 
getFillpublic IsFill getFill() Description copied from interface:IsDefaultFillHandlerReturns how to fill the area under the line.- Specified by:
- getFillin interface- IsDefaultFillHandler
- Returns:
- how to fill the area under the line.
 
 - 
getSteppedpublic Stepped getStepped() Description copied from interface:IsDefaultLineReturns if the line is shown as a stepped line.- Specified by:
- getSteppedin interface- IsDefaultLine
- Returns:
- If the line is shown as a stepped line.
 
 - 
getBackgroundColorAsStringpublic final String getBackgroundColorAsString() Description copied from interface:IsDefaultOptionsElementReturns the background color.- Specified by:
- getBackgroundColorAsStringin interface- IsDefaultOptionsElement
- Returns:
- the background color.
 
 - 
getBorderWidthpublic final int getBorderWidth() Description copied from interface:IsDefaultOptionsElementReturns the border width.- Specified by:
- getBorderWidthin interface- IsDefaultOptionsElement
- Returns:
- the border width.
 
 - 
getBorderColorAsStringpublic final String getBorderColorAsString() Description copied from interface:IsDefaultOptionsElementReturns the border color.- Specified by:
- getBorderColorAsStringin interface- IsDefaultOptionsElement
- Returns:
- the border color.
 
 - 
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.
 
 
- 
 
-