public final class Line extends AbstractElement<IsDefaultLine> implements IsDefaultLine, HasFill
| Modifier and Type | Method and Description | 
|---|---|
| CapStyle | getBorderCapStyle()Returns how the end points of every line are drawn. | 
| List<Integer> | getBorderDash()Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern. | 
| 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). | 
| CubicInterpolationMode | getCubicInterpolationMode()Returns algorithm used to interpolate a smooth curve from the discrete data points. | 
| FillHandler | getFillHandler()Returns a fill handler instance to use in the default methods of this interface. | 
| double | getTension()Returns the Bézier curve tension (0 for no Bézier curves). | 
| boolean | isCapBezierPoints()Returns  trueto keep Bézier control inside the chart,falsefor no restriction. | 
| boolean | isStepped()Returns  trueto show the line as a stepped line (tension will be ignored). | 
| void | setBorderCapStyle(CapStyle borderCapStyle)Sets how the end points of every line are drawn. | 
| void | setBorderDash(int... borderDash)Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern. | 
| void | setBorderDashOffset(double borderDashOffset)Sets the line dash pattern offset. | 
| void | setBorderJoinStyle(JoinStyle borderJoinStyle)Sets 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). | 
| void | setCapBezierPoints(boolean capBezierPoints)Sets  trueto keep Bézier control inside the chart,falsefor no restriction. | 
| void | setCubicInterpolationMode(CubicInterpolationMode mode)Sets algorithm used to interpolate a smooth curve from the discrete data points. The following interpolation modes are supported: | 
| void | setStepped(boolean stepped)Sets  trueto show the line as a stepped line (tension will be ignored). | 
| void | setTension(double tension)Returns the Bézier curve tension (0 for no Bézier curves). | 
getBackgroundColor, getBackgroundColorAsString, getBorderColor, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBackgroundColorAsString, getHoverBorderColor, getHoverBorderColorAsString, getHoverBorderWidth, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidthgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModelcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackgroundColorAsString, getBorderColorAsString, getBorderWidth, getHoverBackgroundColorAsString, getHoverBorderColorAsString, getHoverBorderWidthpublic FillHandler getFillHandler()
HasFillgetFillHandler in interface HasFillpublic void setTension(double tension)
tension - the Bézier curve tension (0 for no Bézier curves).public double getTension()
getTension in interface IsDefaultLinepublic void setBorderCapStyle(CapStyle borderCapStyle)
borderCapStyle - how the end points of every line are drawn.public CapStyle getBorderCapStyle()
getBorderCapStyle in interface IsDefaultLinepublic void setBorderDash(int... borderDash)
borderDash - the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.public List<Integer> getBorderDash()
public void setBorderDashOffset(double borderDashOffset)
borderDashOffset - the line dash pattern offset.public double getBorderDashOffset()
getBorderDashOffset in interface IsDefaultLinepublic void setBorderJoinStyle(JoinStyle borderJoinStyle)
borderJoinStyle - how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined togetherpublic JoinStyle getBorderJoinStyle()
getBorderJoinStyle in interface IsDefaultLinepublic void setCapBezierPoints(boolean capBezierPoints)
true to keep Bézier control inside the chart, false for no restriction.capBezierPoints - true to keep Bézier control inside the chart, false for no restriction.public boolean isCapBezierPoints()
true to keep Bézier control inside the chart, false for no restriction.isCapBezierPoints in interface IsDefaultLinetrue to keep Bézier control inside the chart, false for no restriction.public void setCubicInterpolationMode(CubicInterpolationMode mode)
'default' 'monotone'
mode - algorithm used to interpolate a smooth curve from the discrete data pointspublic CubicInterpolationMode getCubicInterpolationMode()
getCubicInterpolationMode in interface IsDefaultLinepublic void setStepped(boolean stepped)
true to show the line as a stepped line (tension will be ignored).stepped - true to show the line as a stepped line (tension will be ignored).public boolean isStepped()
true to show the line as a stepped line (tension will be ignored).isStepped in interface IsDefaultLinetrue to show the line as a stepped line (tension will be ignored).