-
public class CrosshairLabel extends Text
The CrosshairLabel class contains methods for configuring the label of the crosshair. Crosshair label is used in text and position settings, the coloring, interactivity states and other settings.
-
-
Constructor Summary
Constructors Constructor Description CrosshairLabel(String jsChart)
-
Method Summary
Modifier and Type Method Description static CrosshairLabelinstantiate()StringgetJsBase()voidadjustFontSize()Getter for adjust font settings. CrosshairLabeladjustFontSize(String bothOrByWidth, Boolean byHeight)Setter for adjust font settings. CrosshairLabeladjustFontSize(Array<Boolean> bothOrByWidth, Boolean byHeight)Setter for adjust font settings. CrosshairLabeladjustFontSize(Boolean bothOrByWidth, Boolean byHeight)Setter for adjust font settings. voidanchor()Getter for crosshair label anchor settings. CrosshairLabelanchor(Anchor anchor)Setter for the crosshair label anchor settings. CrosshairLabelanchor(String anchor)Setter for the crosshair label anchor settings. voidaxisIndex()Getter for the axis index. CrosshairLabelaxisIndex(Number value)Setter for the axis index. Backgroundbackground()Getter for crosshair label background settings. CrosshairLabelbackground(String settings)Setter for crosshair label background settings. CrosshairLabelbackground(Boolean settings)Setter for crosshair label background settings. voiddisablePointerEvents()Getter for the pointer events. CrosshairLabeldisablePointerEvents(Boolean enabled)Setter for the pointer events. voidenabled()Getter for the element state (enabled or disabled). CrosshairLabelenabled(Boolean enabled)Setter for the element enabled state. voidfontColor()Getter for the text font color. CrosshairLabelfontColor(String color)Setter for the text font color. voidfontDecoration()Getter for the text font decoration. CrosshairLabelfontDecoration(Decoration value)Setter for the text font decoration. CrosshairLabelfontDecoration(String value)Setter for the text font decoration. voidfontFamily()Getter for the font family. CrosshairLabelfontFamily(String family)Setter for the font family. voidfontOpacity()Getter for the text font opacity. CrosshairLabelfontOpacity(Number opacity)Setter for the text font opacity. voidfontSize()Getter for the text font size. CrosshairLabelfontSize(String size)Setter for the text font size. CrosshairLabelfontSize(Number size)Setter for the text font size. voidfontStyle()Getter for the text font style. CrosshairLabelfontStyle(FontStyle style)Setter for the text font style. CrosshairLabelfontStyle(String style)Setter for the text font style. voidfontVariant()Getter for the text font variant. CrosshairLabelfontVariant(FontVariant value)Setter for the text font variant. CrosshairLabelfontVariant(String value)Setter for the text font variant. voidfontWeight()Getter for the text font weight. CrosshairLabelfontWeight(String weight)Setter for the text font weight. CrosshairLabelfontWeight(Number weight)Setter for the text font weight. voidformat()Getter for labels format function. CrosshairLabelformat(String token)Setter for the labels format. voidhAlign()Getter for the text horizontal align. CrosshairLabelhAlign(HAlign align)Setter for the text horizontal align. CrosshairLabelhAlign(String align)Setter for the text horizontal align. voidheight()Getter for the crosshair label height. CrosshairLabelheight(Number height)Setter for the crosshair label height. CrosshairLabelheight(String height)Setter for the crosshair label height. voidletterSpacing()Getter for the text letter spacing. CrosshairLabelletterSpacing(String spacing)Setter for the text letter spacing. CrosshairLabelletterSpacing(Number spacing)Setter for the text letter spacing. voidlineHeight()Getter for the text line height. CrosshairLabellineHeight(String height)Setter for the text line height. CrosshairLabellineHeight(Number height)Setter for the text line height. voidmaxFontSize()Getter for the maximum font size for adjust text to. CrosshairLabelmaxFontSize(Number size)Setter for the maximum font size for adjust text to. CrosshairLabelmaxFontSize(String size)Setter for the maximum font size for adjust text to. voidminFontSize()Getter for the minimum font size for adjust text from. CrosshairLabelminFontSize(Number size)Setter for the minimum font size for adjust text from. CrosshairLabelminFontSize(String size)Setter for the minimum font size for adjust text from. voidoffsetX()Getter for crosshair label offsetX settings. CrosshairLabeloffsetX(Number offset)Setter for crosshair label offsetX settings. CrosshairLabeloffsetX(String offset)Setter for crosshair label offsetX settings. voidoffsetY()Getter for crosshair label offsetY settings. CrosshairLabeloffsetY(Number offset)Setter for crosshair label offsetY settings. CrosshairLabeloffsetY(String offset)Setter for crosshair label offsetY settings. Paddingpadding()Getter for the crosshair label padding. CrosshairLabelpadding(Array<Number> padding)Setter for crosshair label padding in pixels by one value. CrosshairLabelpadding(Array<String> padding)Setter for crosshair label padding in pixels by one value. CrosshairLabelpadding(String padding)Setter for crosshair label padding in pixels by one value. CrosshairLabelpadding(String value1, String value2, String value3, String value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(String value1, String value2, String value3, Number value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(String value1, String value2, Number value3, String value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(String value1, String value2, Number value3, Number value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(String value1, Number value2, String value3, String value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(String value1, Number value2, String value3, Number value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(String value1, Number value2, Number value3, String value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(String value1, Number value2, Number value3, Number value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(Number value1, String value2, String value3, String value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(Number value1, String value2, String value3, Number value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(Number value1, String value2, Number value3, String value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(Number value1, String value2, Number value3, Number value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(Number value1, Number value2, String value3, String value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(Number value1, Number value2, String value3, Number value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(Number value1, Number value2, Number value3, String value4)Setter for crosshair label padding in pixels. CrosshairLabelpadding(Number value1, Number value2, Number value3, Number value4)Setter for crosshair label padding in pixels. voidprint(PaperSize paperSizeOrOptions, Boolean landscape)Prints all elements on related stage. voidprint(String paperSizeOrOptions, Boolean landscape)Prints all elements on related stage. voidremoveAllListeners(String type)Removes all listeners from an object. voidrotation()CrosshairLabelrotation(Number value)voidselectable()Getter for the text selectable option. CrosshairLabelselectable(Boolean enabled)Setter for the text selectable. voidtextDirection()Getter for the text direction. CrosshairLabeltextDirection(Direction direction)Setter for the text direction. CrosshairLabeltextDirection(String direction)Setter for the text direction. voidtextIndent()Getter for the text indent. CrosshairLabeltextIndent(Number indent)Setter for the text indent. voidtextOverflow()Getter for the text overflow settings. CrosshairLabeltextOverflow(TextOverflow value)Setter for the text overflow settings. CrosshairLabeltextOverflow(String value)Setter for the text overflow settings. voidtextSettings()Getter for the full text appearance settings. voidtextSettings(String name)Getter for all text appearance settings. CrosshairLabeltextSettings(String name, String settings)Setter for the text appearance settings. CrosshairLabeltextSettings(String name, Number settings)Setter for the text appearance settings. CrosshairLabeltextSettings(String name, Boolean settings)Setter for the text appearance settings. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). voiduseHtml()Getter for the useHTML flag. CrosshairLabeluseHtml(Boolean enabled)Setter for flag useHTML. voidvAlign()Getter for the text vertical align. CrosshairLabelvAlign(VAlign align)Setter for the text vertical align. CrosshairLabelvAlign(String align)Setter for the text vertical align. voidwidth()Getter for the crosshair label width. CrosshairLabelwidth(Number width)Setter for the crosshair label width. CrosshairLabelwidth(String width)Setter for the crosshair label width. voidwordBreak()Getter for the word-break mode. CrosshairLabelwordBreak(WordBreak mode)Setter for the word-break mode. CrosshairLabelwordBreak(String mode)Setter for the word-break mode. voidwordWrap()Getter for the word-wrap mode. CrosshairLabelwordWrap(WordWrap mode)Setter for the word-wrap mode. CrosshairLabelwordWrap(String mode)Setter for the word-wrap mode. voidzIndex()Getter for the Z-index of the element. CrosshairLabelzIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. CrosshairLabelcontainer(Layer element)Setter for the container. CrosshairLabelcontainer(Stage element)Setter for the container. CrosshairLabelcontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. CrosshairLabelparentBounds(Rect bounds)Setter for the parent bounds using single value. CrosshairLabelparentBounds(String bounds)Setter for the parent bounds using single value. CrosshairLabelparentBounds(Number bounds)Setter for the parent bounds using single value. CrosshairLabelparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. -
Methods inherited from class com.anychart.core.Text
container, container, container, disablePointerEvents, enabled, fontColor, fontDecoration, fontDecoration, fontFamily, fontOpacity, fontSize, fontSize, fontStyle, fontStyle, fontVariant, fontVariant, fontWeight, fontWeight, hAlign, hAlign, instantiate, letterSpacing, letterSpacing, lineHeight, lineHeight, parentBounds, parentBounds, parentBounds, parentBounds, selectable, textDirection, textDirection, textIndent, textOverflow, textOverflow, textSettings, textSettings, textSettings, useHtml, vAlign, vAlign, wordBreak, wordBreak, wordWrap, wordWrap, zIndex -
Methods inherited from class com.anychart.core.VisualBase
container, container, container, enabled, instantiate, parentBounds, parentBounds, parentBounds, parentBounds, zIndex -
Methods inherited from class com.anychart.core.Base
instantiate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CrosshairLabel
CrosshairLabel(String jsChart)
-
-
Method Detail
-
instantiate
static CrosshairLabel instantiate()
-
adjustFontSize
void adjustFontSize()
Getter for adjust font settings.
-
adjustFontSize
CrosshairLabel adjustFontSize(String bothOrByWidth, Boolean byHeight)
Setter for adjust font settings.
-
adjustFontSize
CrosshairLabel adjustFontSize(Array<Boolean> bothOrByWidth, Boolean byHeight)
Setter for adjust font settings.
-
adjustFontSize
CrosshairLabel adjustFontSize(Boolean bothOrByWidth, Boolean byHeight)
Setter for adjust font settings.
-
anchor
void anchor()
Getter for crosshair label anchor settings.
-
anchor
CrosshairLabel anchor(Anchor anchor)
Setter for the crosshair label anchor settings.
-
anchor
CrosshairLabel anchor(String anchor)
Setter for the crosshair label anchor settings.
-
axisIndex
void axisIndex()
Getter for the axis index.
-
axisIndex
CrosshairLabel axisIndex(Number value)
Setter for the axis index.
-
background
Background background()
Getter for crosshair label background settings.
-
background
CrosshairLabel background(String settings)
Setter for crosshair label background settings.
-
background
CrosshairLabel background(Boolean settings)
Setter for crosshair label background settings.
-
disablePointerEvents
void disablePointerEvents()
Getter for the pointer events.
-
disablePointerEvents
CrosshairLabel disablePointerEvents(Boolean enabled)
Setter for the pointer events.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
enabled
CrosshairLabel enabled(Boolean enabled)
Setter for the element enabled state.
-
fontColor
void fontColor()
Getter for the text font color.
-
fontColor
CrosshairLabel fontColor(String color)
Setter for the text font color.://www.w3schools.com/html/html_colors.asp
-
fontDecoration
void fontDecoration()
Getter for the text font decoration.
-
fontDecoration
CrosshairLabel fontDecoration(Decoration value)
Setter for the text font decoration.
-
fontDecoration
CrosshairLabel fontDecoration(String value)
Setter for the text font decoration.
-
fontFamily
void fontFamily()
Getter for the font family.
-
fontFamily
CrosshairLabel fontFamily(String family)
Setter for the font family.
-
fontOpacity
void fontOpacity()
Getter for the text font opacity.
-
fontOpacity
CrosshairLabel fontOpacity(Number opacity)
Setter for the text font opacity. Double value from 0 to 1.
-
fontSize
void fontSize()
Getter for the text font size.
-
fontSize
CrosshairLabel fontSize(String size)
Setter for the text font size.
-
fontSize
CrosshairLabel fontSize(Number size)
Setter for the text font size.
-
fontStyle
void fontStyle()
Getter for the text font style.
-
fontStyle
CrosshairLabel fontStyle(FontStyle style)
Setter for the text font style.
-
fontStyle
CrosshairLabel fontStyle(String style)
Setter for the text font style.
-
fontVariant
void fontVariant()
Getter for the text font variant.
-
fontVariant
CrosshairLabel fontVariant(FontVariant value)
Setter for the text font variant.
-
fontVariant
CrosshairLabel fontVariant(String value)
Setter for the text font variant.
-
fontWeight
void fontWeight()
Getter for the text font weight.
-
fontWeight
CrosshairLabel fontWeight(String weight)
Setter for the text font weight.://www.w3schools.com/cssref/pr_font_weight.asp
-
fontWeight
CrosshairLabel fontWeight(Number weight)
Setter for the text font weight.://www.w3schools.com/cssref/pr_font_weight.asp
-
format
void format()
Getter for labels format function.
-
format
CrosshairLabel format(String token)
Setter for the labels format. {docs:Common_Settings/Text_Formatters}Learn more about using the format() method.{docs}
-
hAlign
void hAlign()
Getter for the text horizontal align.
-
hAlign
CrosshairLabel hAlign(HAlign align)
Setter for the text horizontal align.
-
hAlign
CrosshairLabel hAlign(String align)
Setter for the text horizontal align.
-
height
void height()
Getter for the crosshair label height.
-
height
CrosshairLabel height(Number height)
Setter for the crosshair label height.
-
height
CrosshairLabel height(String height)
Setter for the crosshair label height.
-
letterSpacing
void letterSpacing()
Getter for the text letter spacing.
-
letterSpacing
CrosshairLabel letterSpacing(String spacing)
Setter for the text letter spacing.://www.w3schools.com/cssref/pr_text_letter-spacing.asp
-
letterSpacing
CrosshairLabel letterSpacing(Number spacing)
Setter for the text letter spacing.://www.w3schools.com/cssref/pr_text_letter-spacing.asp
-
lineHeight
void lineHeight()
Getter for the text line height.
-
lineHeight
CrosshairLabel lineHeight(String height)
Setter for the text line height.://www.w3schools.com/cssref/pr_dim_line-height.asp
-
lineHeight
CrosshairLabel lineHeight(Number height)
Setter for the text line height.://www.w3schools.com/cssref/pr_dim_line-height.asp
-
maxFontSize
void maxFontSize()
Getter for the maximum font size for adjust text to.
-
maxFontSize
CrosshairLabel maxFontSize(Number size)
Setter for the maximum font size for adjust text to.
-
maxFontSize
CrosshairLabel maxFontSize(String size)
Setter for the maximum font size for adjust text to.
-
minFontSize
void minFontSize()
Getter for the minimum font size for adjust text from.
-
minFontSize
CrosshairLabel minFontSize(Number size)
Setter for the minimum font size for adjust text from.
-
minFontSize
CrosshairLabel minFontSize(String size)
Setter for the minimum font size for adjust text from.
-
offsetX
void offsetX()
Getter for crosshair label offsetX settings.
-
offsetX
CrosshairLabel offsetX(Number offset)
Setter for crosshair label offsetX settings. Arrows show offsets layout.
-
offsetX
CrosshairLabel offsetX(String offset)
Setter for crosshair label offsetX settings. Arrows show offsets layout.
-
offsetY
void offsetY()
Getter for crosshair label offsetY settings.
-
offsetY
CrosshairLabel offsetY(Number offset)
Setter for crosshair label offsetY settings. See illustration in offsetX.
-
offsetY
CrosshairLabel offsetY(String offset)
Setter for crosshair label offsetY settings. See illustration in offsetX.
-
padding
CrosshairLabel padding(Array<Number> padding)
Setter for crosshair label padding in pixels by one value.
-
padding
CrosshairLabel padding(Array<String> padding)
Setter for crosshair label padding in pixels by one value.
-
padding
CrosshairLabel padding(String padding)
Setter for crosshair label padding in pixels by one value.
-
padding
CrosshairLabel padding(String value1, String value2, String value3, String value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(String value1, String value2, String value3, Number value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(String value1, String value2, Number value3, String value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(String value1, String value2, Number value3, Number value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(String value1, Number value2, String value3, String value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(String value1, Number value2, String value3, Number value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(String value1, Number value2, Number value3, String value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(String value1, Number value2, Number value3, Number value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(Number value1, String value2, String value3, String value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(Number value1, String value2, String value3, Number value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(Number value1, String value2, Number value3, String value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(Number value1, String value2, Number value3, Number value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(Number value1, Number value2, String value3, String value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(Number value1, Number value2, String value3, Number value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(Number value1, Number value2, Number value3, String value4)
Setter for crosshair label padding in pixels.
-
padding
CrosshairLabel padding(Number value1, Number value2, Number value3, Number value4)
Setter for crosshair label padding in pixels.
-
print
void print(PaperSize paperSizeOrOptions, Boolean landscape)
Prints all elements on related stage.
-
print
void print(String paperSizeOrOptions, Boolean landscape)
Prints all elements on related stage.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
rotation
void rotation()
-
rotation
CrosshairLabel rotation(Number value)
-
selectable
void selectable()
Getter for the text selectable option.
-
selectable
CrosshairLabel selectable(Boolean enabled)
Setter for the text selectable.
-
textDirection
void textDirection()
Getter for the text direction.
-
textDirection
CrosshairLabel textDirection(Direction direction)
Setter for the text direction.
-
textDirection
CrosshairLabel textDirection(String direction)
Setter for the text direction.
-
textIndent
void textIndent()
Getter for the text indent.
-
textIndent
CrosshairLabel textIndent(Number indent)
Setter for the text indent.
-
textOverflow
void textOverflow()
Getter for the text overflow settings.
-
textOverflow
CrosshairLabel textOverflow(TextOverflow value)
Setter for the text overflow settings.
-
textOverflow
CrosshairLabel textOverflow(String value)
Setter for the text overflow settings.
-
textSettings
void textSettings()
Getter for the full text appearance settings.
-
textSettings
void textSettings(String name)
Getter for all text appearance settings.
-
textSettings
CrosshairLabel textSettings(String name, String settings)
Setter for the text appearance settings.
-
textSettings
CrosshairLabel textSettings(String name, Number settings)
Setter for the text appearance settings.
-
textSettings
CrosshairLabel textSettings(String name, Boolean settings)
Setter for the text appearance settings.
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
useHtml
void useHtml()
Getter for the useHTML flag.
-
useHtml
CrosshairLabel useHtml(Boolean enabled)
Setter for flag useHTML.
-
vAlign
void vAlign()
Getter for the text vertical align.
-
vAlign
CrosshairLabel vAlign(VAlign align)
Setter for the text vertical align.
-
vAlign
CrosshairLabel vAlign(String align)
Setter for the text vertical align.
-
width
void width()
Getter for the crosshair label width.
-
width
CrosshairLabel width(Number width)
Setter for the crosshair label width.
-
width
CrosshairLabel width(String width)
Setter for the crosshair label width.
-
wordBreak
void wordBreak()
Getter for the word-break mode.
-
wordBreak
CrosshairLabel wordBreak(WordBreak mode)
Setter for the word-break mode.
-
wordBreak
CrosshairLabel wordBreak(String mode)
Setter for the word-break mode.
-
wordWrap
void wordWrap()
Getter for the word-wrap mode.
-
wordWrap
CrosshairLabel wordWrap(WordWrap mode)
Setter for the word-wrap mode.
-
wordWrap
CrosshairLabel wordWrap(String mode)
Setter for the word-wrap mode.
-
zIndex
void zIndex()
Getter for the Z-index of the element.
-
zIndex
CrosshairLabel zIndex(Number zIndex)
Setter for the Z-index of the element.
-
container
CrosshairLabel container(Layer element)
Setter for the container.
-
container
CrosshairLabel container(Stage element)
Setter for the container.
-
container
CrosshairLabel container(String element)
Setter for the container.
-
parentBounds
Rect parentBounds()
Getter for the parent bounds. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
CrosshairLabel parentBounds(Rect bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
CrosshairLabel parentBounds(String bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
CrosshairLabel parentBounds(Number bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
CrosshairLabel parentBounds(Number left, Number top, Number width, Number height)
Setter for the parent bounds using several values. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
-
-
-