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.doublegetBorderDashOffset()Returns the line dash pattern offset.IsColorgetColor()Returns the color of angled lines.StringgetColorAsString()Returns the color of angled lines.intgetLineWidth()Returns the width of angled lines.booleanisDisplay()Iftrue, angle lines are shownvoidsetBorderDash(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.voidsetBorderDashOffset(double borderDashOffset)Sets the line dash pattern offset.voidsetColor(String color)Sets the color of angled lines.voidsetColor(IsColor color)Sets the color of angled lines.voidsetDisplay(boolean display)Iftrue, angle lines are shownvoidsetLineWidth(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, 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, 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:
isDisplayin 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:
getColorAsStringin 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:
getLineWidthin 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:
getBorderDashin 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:
getBorderDashOffsetin interfaceIsDefaultScaleLines- Returns:
- Offset for line dashes.
-
-