-
-
Method Summary
Modifier and Type Method Description static Triangleinstantiate()StringgetJsBase()voidallowEdit()Getter for an interactivity in the annotation. TriangleallowEdit(String value)Setter for an interactivity in the annotation. voidcolor()Getter for the annotation color. Trianglecolor(String color)Setter for the annotation color. voidfill()Getter for the annotation fill color. Trianglefill(Fill color)Setter for fill settings using an array, an object or a string. Trianglefill(GradientKey color)Setter for fill settings using an array, an object or a string. Trianglefill(Array<String> color)Setter for fill settings using an array, an object or a string. Trianglefill(String color, Number opacity)Fill color with opacity. Trianglefill(GradientKey keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. Trianglefill(GradientKey keys, Number angle, Rect mode, Number opacity)Linear gradient fill. Trianglefill(GradientKey keys, Number angle, String mode, Number opacity)Linear gradient fill. Trianglefill(Array<String> keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. Trianglefill(Array<String> keys, Number angle, Rect mode, Number opacity)Linear gradient fill. Trianglefill(Array<String> keys, Number angle, String mode, Number opacity)Linear gradient fill. Trianglefill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. Trianglefill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. SeparateChartgetChart()Returns the chart on which the annotation is drawn. PlotgetPlot()Returns the plot on which the annotation is drawn. voidgetType()Returns annotation type. PatternFillhatchFill()Getter for hatch fill settings. TrianglehatchFill(HatchFillType type, String color, Number thickness, Number size)Setter for hatch fill settings. TrianglehatchFill(String type, String color, Number thickness, Number size)Setter for hatch fill settings. TrianglehatchFill(String hatchFillFunction)Setter for hatch fill settings using function. TrianglehatchFill(PatternFill patternFill)Setter for hatch fill settings using pattern fill. TrianglehatchFill(HatchFill settings)Setter for hatch fill settings using an instance. TrianglehatchFill(Boolean enabled)Setter for hatch fill using boolean. voidhoverGap()Getter for the hover gap. TrianglehoverGap(String value)Setter for the hover gap. StateSettingshovered()Getter for hovered state settings. Trianglehovered(String settings)Setter for hovered state settings. MarkersFactorymarkers()Getter for data markers. Trianglemarkers(String settings)Setter for data markers. Trianglemarkers(Boolean settings)Setter for data markers. StateSettingsnormal()Getter for normal state settings. Trianglenormal(String settings)Setter for normal state settings. voidsecondValueAnchor()Getter for the second value anchor. TrianglesecondValueAnchor(String value)Setter for the second value anchor. voidsecondXAnchor()Getter for the second X anchor. TrianglesecondXAnchor(String value)Setter for the second X anchor. voidselect()Selects current annotation. StateSettingsselected()Getter for selected state settings. Triangleselected(String settings)Setter for selected state settings. voidstroke()Getter for annotation stroke settings. Trianglestroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for annotation stroke settings. Trianglestroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for annotation stroke settings. Trianglestroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for annotation stroke settings. Trianglestroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for annotation stroke settings. Trianglestroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for annotation stroke settings. Trianglestroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for annotation stroke settings. Trianglestroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for annotation stroke settings. Trianglestroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for annotation stroke settings. Trianglestroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for annotation stroke settings. Trianglestroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for annotation stroke settings. Trianglestroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for annotation stroke settings. Trianglestroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for annotation stroke settings. Trianglestroke(String settings)Setter for annotation stroke settings using an object. voidvalueAnchor()Getter for the value anchor. TrianglevalueAnchor(String value)Setter for the value anchor. voidxAnchor()Getter for the X anchor. TrianglexAnchor(String value)Setter for the X anchor. OrdinalxScale()Getter for the X-scale. TrianglexScale(Base settings)Setter for the X-scale. TrianglexScale(StockScatterDateTime settings)Setter for the X-scale. TrianglexScale(String settings)Setter for the X-scale. TrianglexScale(ScaleTypes settings)Setter for the X-scale. BaseyScale()Getter for the Y-scale. TriangleyScale(Base settings)Setter for the Y-scale. TriangleyScale(String settings)Setter for the Y-scale. TriangleyScale(ScaleTypes settings)Setter for the Y-scale. voidbottom()Getter for element bottom bound settings. Trianglebottom(Number bottom)Setter for element bottom bound settings. Trianglebottom(String bottom)Setter for element bottom bound settings. Boundsbounds()Getter for element bounds settings. Trianglebounds(RectObj bounds)Setter for bounds of the element using one parameter. Trianglebounds(Rect bounds)Setter for bounds of the element using one parameter. Trianglebounds(Bounds bounds)Setter for bounds of the element using one parameter. Trianglebounds(Number x, Number y, Number width, Number height)Setter for element bounds settings. Trianglebounds(Number x, Number y, Number width, String height)Setter for element bounds settings. Trianglebounds(Number x, Number y, String width, Number height)Setter for element bounds settings. Trianglebounds(Number x, Number y, String width, String height)Setter for element bounds settings. Trianglebounds(Number x, String y, Number width, Number height)Setter for element bounds settings. Trianglebounds(Number x, String y, Number width, String height)Setter for element bounds settings. Trianglebounds(Number x, String y, String width, Number height)Setter for element bounds settings. Trianglebounds(Number x, String y, String width, String height)Setter for element bounds settings. Trianglebounds(String x, Number y, Number width, Number height)Setter for element bounds settings. Trianglebounds(String x, Number y, Number width, String height)Setter for element bounds settings. Trianglebounds(String x, Number y, String width, Number height)Setter for element bounds settings. Trianglebounds(String x, Number y, String width, String height)Setter for element bounds settings. Trianglebounds(String x, String y, Number width, Number height)Setter for element bounds settings. Trianglebounds(String x, String y, Number width, String height)Setter for element bounds settings. Trianglebounds(String x, String y, String width, Number height)Setter for element bounds settings. Trianglebounds(String x, String y, String width, String height)Setter for element bounds settings. voidenabled()Getter for the element state (enabled or disabled). Triangleenabled(Boolean enabled)Setter for the element enabled state. RectgetPixelBounds()Returns pixel bounds of the element due to parent bounds and self bounds settings. voidheight()Getter for element height settings. Triangleheight(Number height)Setter for element height setting. Triangleheight(String height)Setter for element height setting. voidleft()Getter for element left bound settings. Triangleleft(Number left)Setter for element left bound settings. Triangleleft(String left)Setter for element left bound settings. voidmaxHeight()Getter for the maximum height. TrianglemaxHeight(Number height)Setter for the maximum height. TrianglemaxHeight(String height)Setter for the maximum height. voidmaxWidth()Getter for the maximum width. TrianglemaxWidth(Number width)Setter for the maximum width. TrianglemaxWidth(String width)Setter for the maximum width. voidminHeight()Getter for the minimum height. TriangleminHeight(Number height)Setter for the minimum height. TriangleminHeight(String height)Setter for the minimum height. voidminWidth()Getter for the minimum width. TriangleminWidth(Number width)Setter for the minimum width. TriangleminWidth(String width)Setter for the minimum width. 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. Triangleright(Number right)Setter for element right bound setting. Triangleright(String right)Setter for element right bound setting. voidtop()Getter for element top bound settings. Triangletop(Number top)Setter for element top bound settings. Triangletop(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. Trianglewidth(Number width)Setter for element width setting. Trianglewidth(String width)Setter for element width setting. voidzIndex()Getter for the Z-index of the element. TrianglezIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. Trianglecontainer(Layer element)Setter for the container. Trianglecontainer(Stage element)Setter for the container. Trianglecontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. TriangleparentBounds(Rect bounds)Setter for the parent bounds using single value. TriangleparentBounds(String bounds)Setter for the parent bounds using single value. TriangleparentBounds(Number bounds)Setter for the parent bounds using single value. TriangleparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. ObjectxScale(Class scaleClass)ObjectyScale(Class scaleClass)Trianglefill(String value)-
Methods inherited from class com.anychart.core.annotations.Base
allowEdit, bottom, bottom, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, color, container, container, container, enabled, height, height, hoverGap, hovered, instantiate, left, left, markers, markers, maxHeight, maxHeight, maxWidth, maxWidth, minHeight, minHeight, minWidth, minWidth, normal, parentBounds, parentBounds, parentBounds, parentBounds, right, right, selected, top, top, width, width, xScale, xScale, xScale, xScale, yScale, yScale, yScale, zIndex -
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
-
Triangle
Triangle(String jsChart)
-
-
Method Detail
-
instantiate
static Triangle instantiate()
-
allowEdit
void allowEdit()
Getter for an interactivity in the annotation.
-
color
void color()
Getter for the annotation color.
-
fill
void fill()
Getter for the annotation fill color.
-
fill
Triangle fill(Fill color)
Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(GradientKey color)
Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(Array<String> color)
Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(GradientKey keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(GradientKey keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(GradientKey keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(Array<String> keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(Array<String> keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(Array<String> keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Triangle fill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
getChart
SeparateChart getChart()
Returns the chart on which the annotation is drawn.
-
getType
void getType()
Returns annotation type.
-
hatchFill
PatternFill hatchFill()
Getter for hatch fill settings.
-
hatchFill
Triangle hatchFill(HatchFillType type, String color, Number thickness, Number size)
Setter for hatch fill settings.
-
hatchFill
Triangle hatchFill(String type, String color, Number thickness, Number size)
Setter for hatch fill settings.
-
hatchFill
Triangle hatchFill(String hatchFillFunction)
Setter for hatch fill settings using function. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
hatchFill
Triangle hatchFill(PatternFill patternFill)
Setter for hatch fill settings using pattern fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
hatchFill
Triangle hatchFill(HatchFill settings)
Setter for hatch fill settings using an instance. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
hatchFill
Triangle hatchFill(Boolean enabled)
Setter for hatch fill using boolean. {docs:Graphics/Hatch_Fill_Settings}Learn more about hatch fill settings.{docs}
-
hoverGap
void hoverGap()
Getter for the hover gap.
-
hoverGap
Triangle hoverGap(String value)
Setter for the hover gap. The contour size around annotation.
-
hovered
StateSettings hovered()
Getter for hovered state settings.
-
markers
MarkersFactory markers()
Getter for data markers.
-
normal
StateSettings normal()
Getter for normal state settings.
-
secondValueAnchor
void secondValueAnchor()
Getter for the second value anchor.
-
secondValueAnchor
Triangle secondValueAnchor(String value)
Setter for the second value anchor.
-
secondXAnchor
void secondXAnchor()
Getter for the second X anchor.
-
secondXAnchor
Triangle secondXAnchor(String value)
Setter for the second X anchor.
-
select
void select()
Selects current annotation.
-
selected
StateSettings selected()
Getter for selected state settings.
-
stroke
void stroke()
Getter for annotation stroke settings.
-
stroke
Triangle stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Triangle stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for annotation stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
valueAnchor
void valueAnchor()
Getter for the value anchor.
-
valueAnchor
Triangle valueAnchor(String value)
Setter for the value anchor.
-
xAnchor
void xAnchor()
Getter for the X anchor.
-
xScale
Triangle xScale(StockScatterDateTime settings)
Setter for the X-scale.
-
xScale
Triangle xScale(ScaleTypes settings)
Setter for the X-scale.
-
yScale
Triangle yScale(ScaleTypes settings)
Setter for the Y-scale.
-
bottom
void bottom()
Getter for element bottom bound settings.
-
bounds
Triangle bounds(Number x, Number y, Number width, Number height)
Setter for element bounds settings.
-
bounds
Triangle bounds(Number x, Number y, Number width, String height)
Setter for element bounds settings.
-
bounds
Triangle bounds(Number x, Number y, String width, Number height)
Setter for element bounds settings.
-
bounds
Triangle bounds(Number x, Number y, String width, String height)
Setter for element bounds settings.
-
bounds
Triangle bounds(Number x, String y, Number width, Number height)
Setter for element bounds settings.
-
bounds
Triangle bounds(Number x, String y, Number width, String height)
Setter for element bounds settings.
-
bounds
Triangle bounds(Number x, String y, String width, Number height)
Setter for element bounds settings.
-
bounds
Triangle bounds(Number x, String y, String width, String height)
Setter for element bounds settings.
-
bounds
Triangle bounds(String x, Number y, Number width, Number height)
Setter for element bounds settings.
-
bounds
Triangle bounds(String x, Number y, Number width, String height)
Setter for element bounds settings.
-
bounds
Triangle bounds(String x, Number y, String width, Number height)
Setter for element bounds settings.
-
bounds
Triangle bounds(String x, Number y, String width, String height)
Setter for element bounds settings.
-
bounds
Triangle bounds(String x, String y, Number width, Number height)
Setter for element bounds settings.
-
bounds
Triangle bounds(String x, String y, Number width, String height)
Setter for element bounds settings.
-
bounds
Triangle bounds(String x, String y, String width, Number height)
Setter for element bounds settings.
-
bounds
Triangle bounds(String x, String y, String width, String height)
Setter for element bounds settings.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
getPixelBounds
Rect getPixelBounds()
Returns pixel bounds of the element due to parent bounds and self bounds settings.
-
height
void height()
Getter for element height settings.
-
left
void left()
Getter for element left bound settings.
-
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.
-
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.
-
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.
-
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
Triangle 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
Triangle 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
Triangle 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
Triangle 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.
-
-
-
-