-
public class Cap extends VisualBase
Cap class.
-
-
Method Summary
Modifier and Type Method Description static Capinstantiate()StringgetJsBase()voidenabled()Getter for the element state (enabled or disabled). Capenabled(Boolean enabled)Setter for the element enabled state. voidfill()Getter for the cap fill color. Capfill(Fill color)Setter for cap fill settings using an array or a string. Capfill(GradientKey color)Setter for cap fill settings using an array or a string. Capfill(Array<String> color)Setter for cap fill settings using an array or a string. Capfill(String color, Number opacity)Cap fill color with opacity. Capfill(GradientKey keys, Number angle, Boolean mode, Number opacity)Linear gradient cap fill. Capfill(GradientKey keys, Number angle, Rect mode, Number opacity)Linear gradient cap fill. Capfill(GradientKey keys, Number angle, String mode, Number opacity)Linear gradient cap fill. Capfill(Array<String> keys, Number angle, Boolean mode, Number opacity)Linear gradient cap fill. Capfill(Array<String> keys, Number angle, Rect mode, Number opacity)Linear gradient cap fill. Capfill(Array<String> keys, Number angle, String mode, Number opacity)Linear gradient cap fill. Capfill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial cap fill. Capfill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial cap fill. PatternFillhatchFill()Getter for cap hatch fill settings. CaphatchFill(HatchFillType type, String color, Number thickness, Number size)Setter for cap hatch fill settings. CaphatchFill(String type, String color, Number thickness, Number size)Setter for cap hatch fill settings. CaphatchFill(PatternFill patternFill)Setter for cap hatch fill settings using pattern fill. CaphatchFill(HatchFill settings)Setter for cap hatch fill settings using an instance. CaphatchFill(Boolean enabled)Setter for cap hatch fill using boolean. voidprint(PaperSize paperSizeOrOptions, Boolean landscape)Prints all elements on related stage. voidprint(String paperSizeOrOptions, Boolean landscape)Prints all elements on related stage. voidradius()Getter for the cap radius. Capradius(Number radius)Setter for the cap radius. Capradius(String radius)Setter for the cap radius. voidremoveAllListeners(String type)Removes all listeners from an object. voidstroke()Getter for the cap stroke. Capstroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for cap stroke settings. Capstroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for cap stroke settings. Capstroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for cap stroke settings. Capstroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for cap stroke settings. Capstroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for cap stroke settings. Capstroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for cap stroke settings. Capstroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for cap stroke settings. Capstroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for cap stroke settings. Capstroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for cap stroke settings. Capstroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for cap stroke settings. Capstroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for cap stroke settings. Capstroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for cap stroke settings. Capstroke(String settings)Setter for the cap stroke using 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(). voidzIndex()Getter for the Z-index of the element. CapzIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. Capcontainer(Layer element)Setter for the container. Capcontainer(Stage element)Setter for the container. Capcontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. CapparentBounds(Rect bounds)Setter for the parent bounds using single value. CapparentBounds(String bounds)Setter for the parent bounds using single value. CapparentBounds(Number bounds)Setter for the parent bounds using single value. CapparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. Capfill(String value)-
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
-
Cap
Cap(String jsChart)
-
-
Method Detail
-
instantiate
static Cap instantiate()
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
fill
void fill()
Getter for the cap fill color.
-
fill
Cap fill(Fill color)
Setter for cap fill settings using an array or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(GradientKey color)
Setter for cap fill settings using an array or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(Array<String> color)
Setter for cap fill settings using an array or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(String color, Number opacity)
Cap fill color with opacity. Fill as a string or an object.
-
fill
Cap fill(GradientKey keys, Number angle, Boolean mode, Number opacity)
Linear gradient cap fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(GradientKey keys, Number angle, Rect mode, Number opacity)
Linear gradient cap fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(GradientKey keys, Number angle, String mode, Number opacity)
Linear gradient cap fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(Array<String> keys, Number angle, Boolean mode, Number opacity)
Linear gradient cap fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(Array<String> keys, Number angle, Rect mode, Number opacity)
Linear gradient cap fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(Array<String> keys, Number angle, String mode, Number opacity)
Linear gradient cap fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial cap fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Cap fill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial cap fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
hatchFill
PatternFill hatchFill()
Getter for cap hatch fill settings.
-
hatchFill
Cap hatchFill(HatchFillType type, String color, Number thickness, Number size)
Setter for cap hatch fill settings. {docs:Graphics/Hatch_Fill_Settings}Learn more about hatch fill settings.{docs}
-
hatchFill
Cap hatchFill(String type, String color, Number thickness, Number size)
Setter for cap hatch fill settings. {docs:Graphics/Hatch_Fill_Settings}Learn more about hatch fill settings.{docs}
-
hatchFill
Cap hatchFill(PatternFill patternFill)
Setter for cap hatch fill settings using pattern fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
hatchFill
Cap hatchFill(HatchFill settings)
Setter for cap hatch fill settings using an instance. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
hatchFill
Cap hatchFill(Boolean enabled)
Setter for cap hatch fill using boolean. {docs:Graphics/Hatch_Fill_Settings}Learn more about hatch fill settings.{docs}
-
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.
-
radius
void radius()
Getter for the cap radius.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
stroke
void stroke()
Getter for the cap stroke.
-
stroke
Cap stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Cap stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for cap stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
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().
-
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
Cap 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
Cap 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
Cap 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
Cap 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.
-
-
-
-