-
public class Settings extends Base
Custom drawing settings. Two main methods in rendering settings are {api: anychart.core.gantt.rendering.Settings#drawer}drawer{api} and {api:anychart.core.gantt.rendering.Settings#shapes}shapes{api}. The drawer method sets the drawing function. The shapes method returns the map of shapes used for drawing. Also, shapes are used in the context of the drawing function (drawer()). {api:anychart.core.gantt.rendering.Settings.ShapeConfig}ShapeConfig{api} is the configurations of shapes that are set in the array using the shapes() method.
-
-
Method Summary
Modifier and Type Method Description static Settingsinstantiate()StringgetJsBase()voiddrawer()Getter for custom drawing settings. Settingsdrawer(String drawerFunction)Setter for custom drawing settings. voidremoveAllListeners(String type)Removes all listeners from an object. voidshapes()Getter for shapes of the custom drawing. 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(). -
-
Constructor Detail
-
Settings
Settings(String jsChart)
-
-
Method Detail
-
instantiate
static Settings instantiate()
-
drawer
void drawer()
Getter for custom drawing settings.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
shapes
void shapes()
Getter for shapes of the custom drawing.
-
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().
-
-
-
-