Class AngleLines
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.options.AbstractModel<AbstractScale,D>
-
- org.pepstock.charba.client.options.AngleLines
-
- All Implemented Interfaces:
IsDefaultAngleLines
,IsDefaultScaleLines
public final class AngleLines extends AbstractModel<AbstractScale,D> implements IsDefaultAngleLines
It is used to configure angled lines that radiate from the center of the chart to the point labels.
Note that these options only apply if display istrue
.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.IsColor
getColor()
Returns the color of angled lines.String
getColorAsString()
Returns the color of angled lines.int
getLineWidth()
Returns the width of angled lines.boolean
isDisplay()
Iftrue
, angle lines are shownvoid
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
setColor(String color)
Sets the color of angled lines.void
setColor(IsColor color)
Sets the color of angled lines.void
setDisplay(boolean display)
Iftrue
, angle lines are shownvoid
setLineWidth(int lineWidth)
Sets the width of angled lines.-
Methods inherited from class org.pepstock.charba.client.options.AbstractModel
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, 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, setValueOrArray, toJSON, type
-
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.IsDefaultScaleLines
getBorderDash, getBorderDashOffset
-
-
-
-
Method Detail
-
setDisplay
public void setDisplay(boolean display)
Iftrue
, angle lines are shown- Parameters:
display
- iftrue
, angle lines are shown
-
isDisplay
public boolean isDisplay()
Iftrue
, angle lines are shown- Specified by:
isDisplay
in interfaceIsDefaultAngleLines
- Returns:
- if
true
, angle lines are shown.
-
setColor
public void setColor(IsColor color)
Sets the color of angled lines.- Parameters:
color
- color of angled lines.
-
setColor
public void setColor(String color)
Sets the color of angled lines.- Parameters:
color
- color of angled lines.
-
getColorAsString
public String getColorAsString()
Returns the color of angled lines.- Specified by:
getColorAsString
in interfaceIsDefaultScaleLines
- Returns:
- color of angled lines.
-
getColor
public IsColor getColor()
Returns the color of angled lines.- Returns:
- color of angled lines.
-
setLineWidth
public void setLineWidth(int lineWidth)
Sets the width of angled lines.- Parameters:
lineWidth
- width of angled lines.
-
getLineWidth
public int getLineWidth()
Returns the width of angled lines.- Specified by:
getLineWidth
in interfaceIsDefaultScaleLines
- Returns:
- width of angled lines.
-
setBorderDash
public final 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.- Parameters:
borderDash
- the line dash pattern used when stroking lines
-
getBorderDash
public final 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.- Specified by:
getBorderDash
in interfaceIsDefaultScaleLines
- Returns:
- the line dash pattern used when stroking lines
-
setBorderDashOffset
public final void setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.- Parameters:
borderDashOffset
- Offset for line dashes.
-
getBorderDashOffset
public final double getBorderDashOffset()
Returns the line dash pattern offset.- Specified by:
getBorderDashOffset
in interfaceIsDefaultScaleLines
- Returns:
- Offset for line dashes.
-
-