-
public class Base extends VisualBaseWithBounds
Base annotations class.
-
-
Method Summary
Modifier and Type Method Description static Baseinstantiate()StringgetJsBase()voidallowEdit()Getter for an interactivity in the annotation. BaseallowEdit(String value)Setter for an interactivity in the annotation. voidbottom()Getter for element bottom bound settings. Basebottom(Number bottom)Setter for element bottom bound settings. Basebottom(String bottom)Setter for element bottom bound settings. Boundsbounds()Getter for element bounds settings. Basebounds(RectObj bounds)Setter for bounds of the element using one parameter. Basebounds(Rect bounds)Setter for bounds of the element using one parameter. Basebounds(Bounds bounds)Setter for bounds of the element using one parameter. Basebounds(Number x, Number y, Number width, Number height)Setter for element bounds settings. Basebounds(Number x, Number y, Number width, String height)Setter for element bounds settings. Basebounds(Number x, Number y, String width, Number height)Setter for element bounds settings. Basebounds(Number x, Number y, String width, String height)Setter for element bounds settings. Basebounds(Number x, String y, Number width, Number height)Setter for element bounds settings. Basebounds(Number x, String y, Number width, String height)Setter for element bounds settings. Basebounds(Number x, String y, String width, Number height)Setter for element bounds settings. Basebounds(Number x, String y, String width, String height)Setter for element bounds settings. Basebounds(String x, Number y, Number width, Number height)Setter for element bounds settings. Basebounds(String x, Number y, Number width, String height)Setter for element bounds settings. Basebounds(String x, Number y, String width, Number height)Setter for element bounds settings. Basebounds(String x, Number y, String width, String height)Setter for element bounds settings. Basebounds(String x, String y, Number width, Number height)Setter for element bounds settings. Basebounds(String x, String y, Number width, String height)Setter for element bounds settings. Basebounds(String x, String y, String width, Number height)Setter for element bounds settings. Basebounds(String x, String y, String width, String height)Setter for element bounds settings. voidcolor()Getter for the annotation color. Basecolor(String color)Setter for the annotation color. voidenabled()Getter for the element state (enabled or disabled). Baseenabled(Boolean enabled)Setter for the element enabled state. SeparateChartgetChart()Returns the chart on which the annotation is drawn. RectgetPixelBounds()Returns pixel bounds of the element due to parent bounds and self bounds settings. PlotgetPlot()Returns the plot on which the annotation is drawn. voidgetType()Returns annotation type. voidheight()Getter for element height settings. Baseheight(Number height)Setter for element height setting. Baseheight(String height)Setter for element height setting. voidhoverGap()Getter for the hover gap. BasehoverGap(String value)Setter for the hover gap. StateSettingshovered()Getter for hovered state settings. Basehovered(String settings)Setter for hovered state settings. voidleft()Getter for element left bound settings. Baseleft(Number left)Setter for element left bound settings. Baseleft(String left)Setter for element left bound settings. MarkersFactorymarkers()Getter for data markers. Basemarkers(String settings)Setter for data markers. Basemarkers(Boolean settings)Setter for data markers. voidmaxHeight()Getter for the maximum height. BasemaxHeight(Number height)Setter for the maximum height. BasemaxHeight(String height)Setter for the maximum height. voidmaxWidth()Getter for the maximum width. BasemaxWidth(Number width)Setter for the maximum width. BasemaxWidth(String width)Setter for the maximum width. voidminHeight()Getter for the minimum height. BaseminHeight(Number height)Setter for the minimum height. BaseminHeight(String height)Setter for the minimum height. voidminWidth()Getter for the minimum width. BaseminWidth(Number width)Setter for the minimum width. BaseminWidth(String width)Setter for the minimum width. StateSettingsnormal()Getter for normal state settings. Basenormal(String settings)Setter for normal state settings. 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. voidright()Getter for element right bound settings. Baseright(Number right)Setter for element right bound setting. Baseright(String right)Setter for element right bound setting. voidselect()Selects current annotation. StateSettingsselected()Getter for selected state settings. Baseselected(String settings)Setter for selected state settings. voidtop()Getter for element top bound settings. Basetop(Number top)Setter for element top bound settings. Basetop(String top)Setter for element top bound 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(). voidwidth()Getter for element width settings. Basewidth(Number width)Setter for element width setting. Basewidth(String width)Setter for element width setting. OrdinalxScale()Getter for the X-scale. BasexScale(Base settings)Setter for the X-scale. BasexScale(StockScatterDateTime settings)Setter for the X-scale. BasexScale(String settings)Setter for the X-scale. BasexScale(ScaleTypes settings)Setter for the X-scale. BaseyScale()Getter for the Y-scale. BaseyScale(Base settings)Setter for the Y-scale. BaseyScale(String settings)Setter for the Y-scale. BaseyScale(ScaleTypes settings)Setter for the Y-scale. voidzIndex()Getter for the Z-index of the element. BasezIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. Basecontainer(Layer element)Setter for the container. Basecontainer(Stage element)Setter for the container. Basecontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. BaseparentBounds(Rect bounds)Setter for the parent bounds using single value. BaseparentBounds(String bounds)Setter for the parent bounds using single value. BaseparentBounds(Number bounds)Setter for the parent bounds using single value. BaseparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. ObjectxScale(Class scaleClass)ObjectyScale(Class scaleClass)-
Methods inherited from class com.anychart.core.VisualBaseWithBounds
bottom, bottom, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, container, container, container, enabled, height, height, instantiate, left, left, maxHeight, maxHeight, maxWidth, maxWidth, minHeight, minHeight, minWidth, minWidth, parentBounds, parentBounds, parentBounds, parentBounds, right, right, top, top, width, width, zIndex -
Methods inherited from class com.anychart.core.VisualBase
container, container, container, enabled, instantiate, parentBounds, parentBounds, parentBounds, parentBounds, zIndex -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Base
Base(String jsChart)
-
-
Method Detail
-
instantiate
static Base instantiate()
-
allowEdit
void allowEdit()
Getter for an interactivity in the annotation.
-
bottom
void bottom()
Getter for element bottom bound settings.
-
bounds
Base bounds(Number x, Number y, Number width, Number height)
Setter for element bounds settings.
-
bounds
Base bounds(Number x, Number y, Number width, String height)
Setter for element bounds settings.
-
bounds
Base bounds(Number x, Number y, String width, Number height)
Setter for element bounds settings.
-
bounds
Base bounds(Number x, Number y, String width, String height)
Setter for element bounds settings.
-
bounds
Base bounds(Number x, String y, Number width, Number height)
Setter for element bounds settings.
-
bounds
Base bounds(Number x, String y, Number width, String height)
Setter for element bounds settings.
-
bounds
Base bounds(Number x, String y, String width, Number height)
Setter for element bounds settings.
-
bounds
Base bounds(Number x, String y, String width, String height)
Setter for element bounds settings.
-
bounds
Base bounds(String x, Number y, Number width, Number height)
Setter for element bounds settings.
-
bounds
Base bounds(String x, Number y, Number width, String height)
Setter for element bounds settings.
-
bounds
Base bounds(String x, Number y, String width, Number height)
Setter for element bounds settings.
-
bounds
Base bounds(String x, Number y, String width, String height)
Setter for element bounds settings.
-
bounds
Base bounds(String x, String y, Number width, Number height)
Setter for element bounds settings.
-
bounds
Base bounds(String x, String y, Number width, String height)
Setter for element bounds settings.
-
bounds
Base bounds(String x, String y, String width, Number height)
Setter for element bounds settings.
-
bounds
Base bounds(String x, String y, String width, String height)
Setter for element bounds settings.
-
color
void color()
Getter for the annotation color.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
getChart
SeparateChart getChart()
Returns the chart on which the annotation is drawn.
-
getPixelBounds
Rect getPixelBounds()
Returns pixel bounds of the element due to parent bounds and self bounds settings.
-
getType
void getType()
Returns annotation type.
-
height
void height()
Getter for element height settings.
-
hoverGap
void hoverGap()
Getter for the hover gap.
-
hovered
StateSettings hovered()
Getter for hovered state settings.
-
left
void left()
Getter for element left bound settings.
-
markers
MarkersFactory markers()
Getter for data markers.
-
maxHeight
void maxHeight()
Getter for the maximum height.
-
maxWidth
void maxWidth()
Getter for the maximum width.
-
minHeight
void minHeight()
Getter for the minimum height.
-
minWidth
void minWidth()
Getter for the minimum width.
-
normal
StateSettings normal()
Getter for normal state settings.
-
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.
-
right
void right()
Getter for element right bound settings.
-
select
void select()
Selects current annotation.
-
selected
StateSettings selected()
Getter for selected state settings.
-
top
void top()
Getter for element top bound 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().
-
width
void width()
Getter for element width settings.
-
xScale
Base xScale(StockScatterDateTime settings)
Setter for the X-scale.
-
xScale
Base xScale(ScaleTypes settings)
Setter for the X-scale.
-
yScale
Base yScale(ScaleTypes settings)
Setter for the Y-scale.
-
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
Base 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
Base 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
Base 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
Base 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.
-
-
-
-