Class RadialLinearTick
- java.lang.Object
- 
- org.pepstock.charba.client.configuration.RadialLinearTick
 
- 
- All Implemented Interfaces:
- IsLinearTick,- IsNumericTick,- IsScriptableFontProvider<ScaleContext>
 
 public class RadialLinearTick extends Object implements IsLinearTick This object is used to map defined radial axis as linear.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisgetAxis()Returns the axis instance.IsColorgetBackdropColor()Returns the color of label backdrops.StringgetBackdropColorAsString()Returns the color of label backdrops.ColorCallback<ScaleContext>getBackdropColorCallback()Returns the backdrop color callback instance.PaddinggetBackdropPadding()Returns the padding of label backdrop.TickCallbackgetCallback()Returns the user callback instance.IsColorgetColor()Returns the font color.StringgetColorAsString()Returns the font color as string.ColorCallback<ScaleContext>getColorCallback()Returns the color callback, if set, otherwisenull.FontgetFont()Returns the font element.FontCallback<ScaleContext>getFontCallback()Returns the font callback, if set, otherwisenull.MajorgetMajor()Returns major tick element.IsNumberFormatgetNumberFormat()Returns the number format instance.intgetPadding()Returns the padding between the tick label and the axis.ShowLabelBackdropCallbackgetShowLabelBackdropCallback()Returns the show label backdrop callback instance.IsColorgetTextStrokeColor()Returns the text stroke color.StringgetTextStrokeColorAsString()Returns the text stroke color as string.ColorCallback<ScaleContext>getTextStrokeColorCallback()Returns the text stroke color callback, if set, otherwisenull.intgetTextStrokeWidth()Returns the text stroke width.WidthCallback<ScaleContext>getTextStrokeWidthCallback()Returns the text stroke width callback, if set, otherwisenull.org.pepstock.charba.client.configuration.LinearTickOptionsHandlergetTickOptionsHandler()Returns the linear tick options handler instance, for callbacks.intgetZ()Returns z-index of tick layer.booleanisDisplay()If true, show tick marksbooleanisShowLabelBackdrop()If true, draw a background behind the tick labels.voidsetBackdropColor(String backdropColor)Sets the color of label backdrops.voidsetBackdropColor(ColorCallback<ScaleContext> backdropColorCallback)Sets the backdrop color callback instance.voidsetBackdropColor(NativeCallback backdropColorCallback)Sets the backdrop color callback instance.voidsetBackdropColor(IsColor backdropColor)Sets the color of label backdrops.voidsetCallback(TickCallback callback)Sets the user callback instance.voidsetColor(String color)Sets the font color.voidsetColor(ColorCallback<ScaleContext> colorCallback)Sets the color callback.voidsetColor(NativeCallback colorCallback)Sets the color callback.voidsetColor(IsColor color)Sets the font color.voidsetDisplay(boolean display)If true, show tick marks.voidsetFont(FontCallback<ScaleContext> fontCallback)Sets the font callback.voidsetFont(NativeCallback fontCallback)Sets the font callback.voidsetPadding(int padding)Sets the padding between the tick label and the axis.voidsetShowLabelBackdrop(boolean showLabelBackdrop)If true, draw a background behind the tick labels.voidsetShowLabelBackdrop(NativeCallback showLabelBackdropCallback)Sets the show label backdrop callback instance.voidsetShowLabelBackdrop(ShowLabelBackdropCallback showLabelBackdropCallback)Sets the show label backdrop callback instance.voidsetTextStrokeColor(String color)Sets the text stroke color.voidsetTextStrokeColor(ColorCallback<ScaleContext> textStrokeColorCallback)Sets the text stroke color callback.voidsetTextStrokeColor(NativeCallback textStrokeColorCallback)Sets the text stroke color callback.voidsetTextStrokeColor(IsColor color)Sets the text stroke color.voidsetTextStrokeWidth(int textStrokeWidth)Sets the text stroke width.voidsetTextStrokeWidth(NativeCallback textStrokeWidthCallback)Sets the text stroke width callback.voidsetTextStrokeWidth(WidthCallback<ScaleContext> textStrokeWidthCallback)Sets the text stroke width callback.voidsetZ(int z)Sets z-index of tick layer.- 
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.configuration.IsLinearTickgetAxis, getCount, getCountCallback, getMaxTicksLimit, getMaxTicksLimitCallback, getPrecision, getPrecisionCallback, getStepSize, getStepSizeCallback, setCount, setCount, setCount, setMaxTicksLimit, setMaxTicksLimit, setMaxTicksLimit, setPrecision, setPrecision, setPrecision, setStepSize, setStepSize, setStepSize
 - 
Methods inherited from interface org.pepstock.charba.client.configuration.IsNumericTickgetNumberFormatCallback, setNumberFormat, setNumberFormat
 
- 
 
- 
- 
- 
Method Detail- 
getTickOptionsHandlerpublic final org.pepstock.charba.client.configuration.LinearTickOptionsHandler getTickOptionsHandler() Description copied from interface:IsLinearTickReturns the linear tick options handler instance, for callbacks.- Specified by:
- getTickOptionsHandlerin interface- IsLinearTick
- Specified by:
- getTickOptionsHandlerin interface- IsNumericTick
- Returns:
- the linear tick options handler instance, for callbacks
 
 - 
getNumberFormatpublic IsNumberFormat getNumberFormat() Description copied from interface:IsNumericTickReturns the number format instance.- Specified by:
- getNumberFormatin interface- IsNumericTick
- Returns:
- the number format instance
 
 - 
getCallbackpublic TickCallback getCallback() Returns the user callback instance.- Returns:
- the callback
 
 - 
setCallbackpublic void setCallback(TickCallback callback) Sets the user callback instance.- Parameters:
- callback- the callback to set
 
 - 
getMajorpublic Major getMajor() Returns major tick element.- Returns:
- the major
 
 - 
getFontpublic Font getFont() Returns the font element.- Returns:
- the font element
 
 - 
getBackdropPaddingpublic Padding getBackdropPadding() Returns the padding of label backdrop.- Returns:
- padding of label backdrop.
 
 - 
setColorpublic void setColor(IsColor color) Sets the font color.- Parameters:
- color- font color.
 
 - 
setColorpublic void setColor(String color) Sets the font color.- Parameters:
- color- font color.
 
 - 
getColorAsStringpublic String getColorAsString() Returns the font color as string.- Returns:
- font color as string
 
 - 
getColorpublic IsColor getColor() Returns the font color.- Returns:
- font color
 
 - 
setDisplaypublic void setDisplay(boolean display) If true, show tick marks.- Parameters:
- display- if true, show tick marks
 
 - 
isDisplaypublic boolean isDisplay() If true, show tick marks- Returns:
- if true, show tick marks.
 
 - 
setZpublic void setZ(int z) Sets z-index of tick layer. Useful when ticks are drawn on chart area.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.- Parameters:
- z- z-index of tick layer. Useful when ticks are drawn on chart area.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
 
 - 
getZpublic int getZ() Returns z-index of tick layer. Useful when ticks are drawn on chart area.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.- Returns:
- z-index of tick layer. Useful when ticks are drawn on chart area.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
 
 - 
setTextStrokeColorpublic void setTextStrokeColor(IsColor color) Sets the text stroke color.- Parameters:
- color- the text stroke color
 
 - 
setTextStrokeColorpublic void setTextStrokeColor(String color) Sets the text stroke color.- Parameters:
- color- the text stroke color.
 
 - 
getTextStrokeColorAsStringpublic String getTextStrokeColorAsString() Returns the text stroke color as string.- Returns:
- the text stroke color as string.
 
 - 
getTextStrokeColorpublic IsColor getTextStrokeColor() Returns the text stroke color.- Returns:
- the text stroke color.
 
 - 
setTextStrokeWidthpublic void setTextStrokeWidth(int textStrokeWidth) Sets the text stroke width.- Parameters:
- textStrokeWidth- the text stroke width.
 
 - 
getTextStrokeWidthpublic int getTextStrokeWidth() Returns the text stroke width.- Returns:
- the text stroke width.
 
 - 
setPaddingpublic void setPadding(int padding) Sets the padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.- Parameters:
- padding- padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
 
 - 
getPaddingpublic int getPadding() Returns the padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.- Returns:
- padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
 
 - 
setBackdropColorpublic void setBackdropColor(IsColor backdropColor) Sets the color of label backdrops.- Parameters:
- backdropColor- color of label backdrops.
 
 - 
setBackdropColorpublic void setBackdropColor(String backdropColor) Sets the color of label backdrops.- Parameters:
- backdropColor- color of label backdrops.
 
 - 
getBackdropColorAsStringpublic String getBackdropColorAsString() Returns the color of label backdrops.- Returns:
- color of label backdrops.
 
 - 
getBackdropColorpublic IsColor getBackdropColor() Returns the color of label backdrops.- Returns:
- color of label backdrops.
 
 - 
setShowLabelBackdroppublic void setShowLabelBackdrop(boolean showLabelBackdrop) If true, draw a background behind the tick labels.- Parameters:
- showLabelBackdrop- if true, draw a background behind the tick labels.
 
 - 
isShowLabelBackdroppublic boolean isShowLabelBackdrop() If true, draw a background behind the tick labels.- Returns:
- if true, draw a background behind the tick labels.
 
 - 
getFontCallbackpublic FontCallback<ScaleContext> getFontCallback() Returns the font callback, if set, otherwisenull.- Specified by:
- getFontCallbackin interface- IsScriptableFontProvider<ScaleContext>
- Returns:
- the font callback, if set, otherwise null.
 
 - 
getColorCallbackpublic ColorCallback<ScaleContext> getColorCallback() Returns the color callback, if set, otherwisenull.- Returns:
- the color callback, if set, otherwise null.
 
 - 
getTextStrokeColorCallbackpublic ColorCallback<ScaleContext> getTextStrokeColorCallback() Returns the text stroke color callback, if set, otherwisenull.- Returns:
- the text stroke color callback, if set, otherwise null.
 
 - 
getTextStrokeWidthCallbackpublic WidthCallback<ScaleContext> getTextStrokeWidthCallback() Returns the text stroke width callback, if set, otherwisenull.- Returns:
- the text stroke width callback, if set, otherwise null.
 
 - 
getBackdropColorCallbackpublic ColorCallback<ScaleContext> getBackdropColorCallback() Returns the backdrop color callback instance.- Returns:
- the backdrop color callback instance
 
 - 
getShowLabelBackdropCallbackpublic ShowLabelBackdropCallback getShowLabelBackdropCallback() Returns the show label backdrop callback instance.- Returns:
- the show label backdrop callback instance
 
 - 
setColorpublic void setColor(ColorCallback<ScaleContext> colorCallback) Sets the color callback.- Parameters:
- colorCallback- the color callback to set
 
 - 
setColorpublic void setColor(NativeCallback colorCallback) Sets the color callback.- Parameters:
- colorCallback- the color callback to set
 
 - 
setTextStrokeColorpublic void setTextStrokeColor(ColorCallback<ScaleContext> textStrokeColorCallback) Sets the text stroke color callback.- Parameters:
- textStrokeColorCallback- the text stroke color callback to set
 
 - 
setTextStrokeColorpublic void setTextStrokeColor(NativeCallback textStrokeColorCallback) Sets the text stroke color callback.- Parameters:
- textStrokeColorCallback- the text stroke color callback to set
 
 - 
setTextStrokeWidthpublic void setTextStrokeWidth(WidthCallback<ScaleContext> textStrokeWidthCallback) Sets the text stroke width callback.- Parameters:
- textStrokeWidthCallback- the text stroke width callback to set
 
 - 
setTextStrokeWidthpublic void setTextStrokeWidth(NativeCallback textStrokeWidthCallback) Sets the text stroke width callback.- Parameters:
- textStrokeWidthCallback- the text stroke width callback to set
 
 - 
setFontpublic void setFont(FontCallback<ScaleContext> fontCallback) Sets the font callback.- Specified by:
- setFontin interface- IsScriptableFontProvider<ScaleContext>
- Parameters:
- fontCallback- the font callback to set
 
 - 
setFontpublic void setFont(NativeCallback fontCallback) Sets the font callback.- Specified by:
- setFontin interface- IsScriptableFontProvider<ScaleContext>
- Parameters:
- fontCallback- the font callback to set
 
 - 
setBackdropColorpublic void setBackdropColor(ColorCallback<ScaleContext> backdropColorCallback) Sets the backdrop color callback instance.- Parameters:
- backdropColorCallback- the backdrop color callback instance
 
 - 
setBackdropColorpublic void setBackdropColor(NativeCallback backdropColorCallback) Sets the backdrop color callback instance.- Parameters:
- backdropColorCallback- the backdrop color callback instance
 
 - 
setShowLabelBackdroppublic void setShowLabelBackdrop(ShowLabelBackdropCallback showLabelBackdropCallback) Sets the show label backdrop callback instance.- Parameters:
- showLabelBackdropCallback- the show label backdrop callback instance
 
 - 
setShowLabelBackdroppublic void setShowLabelBackdrop(NativeCallback showLabelBackdropCallback) Sets the show label backdrop callback instance.- Parameters:
- showLabelBackdropCallback- the show label backdrop callback instance
 
 - 
getAxispublic final Axis getAxis() Returns the axis instance.- Returns:
- the axis
 
 
- 
 
-