-
public class Crosshair extends VisualBase
Crosshair class.
-
-
Method Summary
Modifier and Type Method Description static Crosshairinstantiate()StringgetJsBase()voiddisplayMode()Getter for the crosshair display mode. CrosshairdisplayMode(CrosshairDisplayMode mode)Setter for the display mode for crosshair. CrosshairdisplayMode(String mode)Setter for the display mode for crosshair. voidenabled()Getter for the element state (enabled or disabled). Crosshairenabled(Boolean enabled)Setter for the element enabled state. 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. 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(). CrosshairLabelxLabel(Number index)Getter for the crosshair X-label settings. CrosshairxLabel(String settings)Setter for the crosshair X-label settings. CrosshairxLabel(Boolean settings)Setter for the crosshair X-label settings. CrosshairxLabel(Number index, String settings)Setter for the crosshair X-label settings by index. CrosshairxLabel(Number index, Boolean settings)Setter for the crosshair X-label settings by index. voidxStroke()Getter for the X-line stroke. CrosshairxStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for the X-line stroke. CrosshairxStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for the X-line stroke. CrosshairxStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for the X-line stroke. CrosshairxStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for the X-line stroke. CrosshairxStroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for the X-line stroke. CrosshairxStroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for the X-line stroke. CrosshairxStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for the X-line stroke. CrosshairxStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for the X-line stroke. CrosshairLabelyLabel(Number index)Getter for the crosshair Y-label settings. CrosshairyLabel(String settings)Setter for the crosshair Y-label settings. CrosshairyLabel(Boolean settings)Setter for the crosshair Y-label settings. CrosshairyLabel(Number index, String settings)Setter for the crosshair Y-label settings by index. CrosshairyLabel(Number index, Boolean settings)Setter for the crosshair Y-label settings by index. voidyStroke()Getter for the Y-line stroke. CrosshairyStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for the Y-line stroke. CrosshairyStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for the Y-line stroke. CrosshairyStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for the Y-line stroke. CrosshairyStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for the Y-line stroke. CrosshairyStroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for the Y-line stroke. CrosshairyStroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for the Y-line stroke. CrosshairyStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for the Y-line stroke. CrosshairyStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for the Y-line stroke. voidzIndex()Getter for the Z-index of the element. CrosshairzIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. Crosshaircontainer(Layer element)Setter for the container. Crosshaircontainer(Stage element)Setter for the container. Crosshaircontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. CrosshairparentBounds(Rect bounds)Setter for the parent bounds using single value. CrosshairparentBounds(String bounds)Setter for the parent bounds using single value. CrosshairparentBounds(Number bounds)Setter for the parent bounds using single value. CrosshairparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. -
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
-
Crosshair
Crosshair(String jsChart)
-
-
Method Detail
-
instantiate
static Crosshair instantiate()
-
displayMode
void displayMode()
Getter for the crosshair display mode.
-
displayMode
Crosshair displayMode(CrosshairDisplayMode mode)
Setter for the display mode for crosshair.
-
displayMode
Crosshair displayMode(String mode)
Setter for the display mode for crosshair.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
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.
-
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().
-
xLabel
CrosshairLabel xLabel(Number index)
Getter for the crosshair X-label settings.
-
xLabel
Crosshair xLabel(Number index, String settings)
Setter for the crosshair X-label settings by index.
-
xLabel
Crosshair xLabel(Number index, Boolean settings)
Setter for the crosshair X-label settings by index.
-
xStroke
void xStroke()
Getter for the X-line stroke.
-
xStroke
Crosshair xStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for the X-line stroke.
-
xStroke
Crosshair xStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for the X-line stroke.
-
xStroke
Crosshair xStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for the X-line stroke.
-
xStroke
Crosshair xStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for the X-line stroke.
-
xStroke
Crosshair xStroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for the X-line stroke.
-
xStroke
Crosshair xStroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for the X-line stroke.
-
xStroke
Crosshair xStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for the X-line stroke.
-
xStroke
Crosshair xStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for the X-line stroke.
-
yLabel
CrosshairLabel yLabel(Number index)
Getter for the crosshair Y-label settings.
-
yLabel
Crosshair yLabel(Number index, String settings)
Setter for the crosshair Y-label settings by index.
-
yLabel
Crosshair yLabel(Number index, Boolean settings)
Setter for the crosshair Y-label settings by index.
-
yStroke
void yStroke()
Getter for the Y-line stroke.
-
yStroke
Crosshair yStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for the Y-line stroke.
-
yStroke
Crosshair yStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for the Y-line stroke.
-
yStroke
Crosshair yStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for the Y-line stroke.
-
yStroke
Crosshair yStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for the Y-line stroke.
-
yStroke
Crosshair yStroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for the Y-line stroke.
-
yStroke
Crosshair yStroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for the Y-line stroke.
-
yStroke
Crosshair yStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for the Y-line stroke.
-
yStroke
Crosshair yStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for the Y-line stroke.
-
zIndex
void zIndex()
Getter for the Z-index of the element.
-
parentBounds
Rect parentBounds()
Getter for the parent bounds. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
Crosshair 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
Crosshair 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
Crosshair 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.
-
-
-
-