-
public class VisualBase extends Base
Base class for all elements.
-
-
Constructor Summary
Constructors Constructor Description VisualBase(String jsChart)
-
Method Summary
Modifier and Type Method Description static VisualBaseinstantiate()StringgetJsBase()Layercontainer()Getter for the container. VisualBasecontainer(Layer element)Setter for the container. VisualBasecontainer(Stage element)Setter for the container. VisualBasecontainer(String element)Setter for the container. voidenabled()Getter for the element state (enabled or disabled). VisualBaseenabled(Boolean enabled)Setter for the element enabled state. RectparentBounds()Getter for the parent bounds. VisualBaseparentBounds(Rect bounds)Setter for the parent bounds using single value. VisualBaseparentBounds(String bounds)Setter for the parent bounds using single value. VisualBaseparentBounds(Number bounds)Setter for the parent bounds using single value. VisualBaseparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. 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(). voidzIndex()Getter for the Z-index of the element. VisualBasezIndex(Number zIndex)Setter for the Z-index of the element. -
-
Constructor Detail
-
VisualBase
VisualBase(String jsChart)
-
-
Method Detail
-
instantiate
static VisualBase instantiate()
-
container
VisualBase container(Layer element)
Setter for the container.
-
container
VisualBase container(Stage element)
Setter for the container.
-
container
VisualBase container(String element)
Setter for the container.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
enabled
VisualBase enabled(Boolean enabled)
Setter for the element enabled state.
-
parentBounds
Rect parentBounds()
Getter for the parent bounds. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
VisualBase 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
VisualBase 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
VisualBase 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
VisualBase 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.
-
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().
-
zIndex
void zIndex()
Getter for the Z-index of the element.
-
zIndex
VisualBase zIndex(Number zIndex)
Setter for the Z-index of the element.
-
-
-
-