-
public class UnmanagedLayer extends Element
-
-
Constructor Summary
Constructors Constructor Description UnmanagedLayer(String jsChart)
-
Method Summary
Modifier and Type Method Description static UnmanagedLayerinstantiate()StringgetJsBase()UnmanagedLayerappendTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)Combines the current transformation with the given transformation matrix. voidattr(String key)Getter for the attribute. UnmanagedLayerattr(String key, String value)Setter for the attribute. Rectclip()Gets the current clipping rectangle. UnmanagedLayerclip(Rect value)Sets the clipping rectangle. UnmanagedLayerclip(String value)Sets the clipping rectangle. voidcontent()Getter for the inner content. UnmanagedLayercontent(String value)Setter for the inner content. voidcursor()Getter for the current cursor type. UnmanagedLayercursor(Cursor value)Setter for the cursor type. voiddesc()Getter for the element description value. UnmanagedLayerdesc(String value)Setter for the element description value. voiddisablePointerEvents()Gets the current value of the pointer events. UnmanagedLayerdisablePointerEvents(Boolean value)Disables the pointer events. voiddisableStrokeScaling()Getter for the current element's vector effect property. UnmanagedLayerdisableStrokeScaling(Boolean value)Setter for the element's vector effect property. voiddispose()Disposes element completely. voiddomElement()Returns DOM element if element is rendered. voiddrag()Returns the current state flag. UnmanagedLayerdrag(Boolean value)Turns off/on dragging (moving) of an element. UnmanagedLayerdrag(Rect value)Turns off/on dragging (moving) of an element. RectgetAbsoluteBounds()Gets element bounds in absolute coordinates (root element coordinate system). voidgetAbsoluteHeight()Returns height within root bounds. voidgetAbsoluteWidth()Returns width within root bounds. voidgetAbsoluteX()Returns an absolute X (root element coordinate system). voidgetAbsoluteY()Returns an absolute Y (root element coordinate system). RectgetBounds()Returns the bounds. voidgetHeight()Returns the height. voidgetRotationAngle()Returns the current rotation angle in degrees. StagegetStage()Stage object (to which the given element is bound). voidgetTransformationMatrix()Returns the current transformation matrix. voidgetWidth()Returns the width. voidgetX()Returns X in the coordinate system of the parent. voidgetY()Returns Y in the coordinate system of the parent. voidhasParent()Whether parent element is set. voidid()Gets the current element identifier. UnmanagedLayerid(String id)Sets the element identifier. Layerparent()Returns the parent layer. UnmanagedLayerparent(Layer parent)Adds element to the given layer. UnmanagedLayerparent(Stage parent)Adds element to the given layer. UnmanagedLayerremove()Current element removes itself from the parent layer. voidremoveAllListeners(String type)Removes all listeners from this listenable. UnmanagedLayerrotate(Number degrees, Number cx, Number cy)Rotates a shape around the given rotation point. UnmanagedLayerrotateByAnchor(Number degrees, Anchor anchor)Rotates a shape around the given anchor. UnmanagedLayerrotateByAnchor(Number degrees, String anchor)Rotates a shape around the given anchor. UnmanagedLayerscale(Number sx, Number sy, Number cx, Number cy)Scales a shape. UnmanagedLayerscaleByAnchor(Number sx, Number sy, Anchor anchor)Scales a shape by anchor. UnmanagedLayerscaleByAnchor(Number sx, Number sy, String anchor)Scales a shape by anchor. UnmanagedLayersetPosition(Number x, Number y)Sets top left corner of a shape (transformation taken into account) in the coordinate system of the parent. UnmanagedLayersetRotation(Number degrees, Number cx, Number cy)Rotates a shape around the given point. UnmanagedLayersetRotationByAnchor(Number degrees, Anchor anchor)Rotates a shape around the given anchor. UnmanagedLayersetRotationByAnchor(Number degrees, String anchor)Rotates a shape around the given anchor. UnmanagedLayersetTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)Sets the transformation matrix. voidtitle()Getter for the element title value. UnmanagedLayertitle(String value)Setter for the element title value. UnmanagedLayertranslate(Number tx, Number ty)Moves a shape taking an account the current transformation. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidvisible()Gets the current visibility flag. UnmanagedLayervisible(Boolean isVisible)Hides or shows an element. voidzIndex()Gets the current element's zIndex. UnmanagedLayerzIndex(Number value)Sets the element's zIndex. voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen(). -
Methods inherited from class com.anychart.graphics.vector.Element
appendTransformationMatrix, attr, clip, clip, cursor, desc, disablePointerEvents, disableStrokeScaling, drag, drag, id, instantiate, parent, parent, remove, rotate, rotateByAnchor, rotateByAnchor, scale, scaleByAnchor, scaleByAnchor, setPosition, setRotation, setRotationByAnchor, setRotationByAnchor, setTransformationMatrix, title, translate, visible, zIndex -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UnmanagedLayer
UnmanagedLayer(String jsChart)
-
-
Method Detail
-
instantiate
static UnmanagedLayer instantiate()
-
appendTransformationMatrix
UnmanagedLayer appendTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)
Combines the current transformation with the given transformation matrix.
-
attr
UnmanagedLayer attr(String key, String value)
Setter for the attribute.
-
clip
UnmanagedLayer clip(Rect value)
Sets the clipping rectangle.
-
clip
UnmanagedLayer clip(String value)
Sets the clipping rectangle.
-
content
void content()
Getter for the inner content.
-
content
UnmanagedLayer content(String value)
Setter for the inner content.
-
cursor
void cursor()
Getter for the current cursor type.
-
cursor
UnmanagedLayer cursor(Cursor value)
Setter for the cursor type.
-
desc
void desc()
Getter for the element description value.
-
desc
UnmanagedLayer desc(String value)
Setter for the element description value.
-
disablePointerEvents
void disablePointerEvents()
Gets the current value of the pointer events.
-
disablePointerEvents
UnmanagedLayer disablePointerEvents(Boolean value)
Disables the pointer events.
-
disableStrokeScaling
void disableStrokeScaling()
Getter for the current element's vector effect property.
-
disableStrokeScaling
UnmanagedLayer disableStrokeScaling(Boolean value)
Setter for the element's vector effect property. Learn more by link.
-
dispose
void dispose()
Disposes element completely. Removes it from the parent layer, sets links to null, removes it from DOM.
-
domElement
void domElement()
Returns DOM element if element is rendered. In case of Stage in Suspended state or unbound element - null is returned.
-
drag
void drag()
Returns the current state flag.
-
drag
UnmanagedLayer drag(Boolean value)
Turns off/on dragging (moving) of an element.
-
drag
UnmanagedLayer drag(Rect value)
Turns off/on dragging (moving) of an element.
-
getAbsoluteBounds
Rect getAbsoluteBounds()
Gets element bounds in absolute coordinates (root element coordinate system).
-
getAbsoluteHeight
void getAbsoluteHeight()
Returns height within root bounds. See illustrations at getAbsoluteWidth
-
getAbsoluteWidth
void getAbsoluteWidth()
Returns width within root bounds.
-
getAbsoluteX
void getAbsoluteX()
Returns an absolute X (root element coordinate system).
-
getAbsoluteY
void getAbsoluteY()
Returns an absolute Y (root element coordinate system).
-
getHeight
void getHeight()
Returns the height.
-
getRotationAngle
void getRotationAngle()
Returns the current rotation angle in degrees.
-
getTransformationMatrix
void getTransformationMatrix()
Returns the current transformation matrix.
-
getWidth
void getWidth()
Returns the width.
-
getX
void getX()
Returns X in the coordinate system of the parent.
-
getY
void getY()
Returns Y in the coordinate system of the parent.
-
hasParent
void hasParent()
Whether parent element is set.
-
id
void id()
Gets the current element identifier.
-
id
UnmanagedLayer id(String id)
Sets the element identifier.
-
parent
UnmanagedLayer parent(Layer parent)
Adds element to the given layer.
-
parent
UnmanagedLayer parent(Stage parent)
Adds element to the given layer.
-
remove
UnmanagedLayer remove()
Current element removes itself from the parent layer.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from this listenable.
-
rotate
UnmanagedLayer rotate(Number degrees, Number cx, Number cy)
Rotates a shape around the given rotation point.
-
rotateByAnchor
UnmanagedLayer rotateByAnchor(Number degrees, Anchor anchor)
Rotates a shape around the given anchor.
-
rotateByAnchor
UnmanagedLayer rotateByAnchor(Number degrees, String anchor)
Rotates a shape around the given anchor.
-
scale
UnmanagedLayer scale(Number sx, Number sy, Number cx, Number cy)
Scales a shape. Scaling center is set in the coordinate system of the parent.
-
scaleByAnchor
UnmanagedLayer scaleByAnchor(Number sx, Number sy, Anchor anchor)
Scales a shape by anchor. Scaling center is set as an anchor.
-
scaleByAnchor
UnmanagedLayer scaleByAnchor(Number sx, Number sy, String anchor)
Scales a shape by anchor. Scaling center is set as an anchor.
-
setPosition
UnmanagedLayer setPosition(Number x, Number y)
Sets top left corner of a shape (transformation taken into account) in the coordinate system of the parent.
-
setRotation
UnmanagedLayer setRotation(Number degrees, Number cx, Number cy)
Rotates a shape around the given point.
-
setRotationByAnchor
UnmanagedLayer setRotationByAnchor(Number degrees, Anchor anchor)
Rotates a shape around the given anchor.
-
setRotationByAnchor
UnmanagedLayer setRotationByAnchor(Number degrees, String anchor)
Rotates a shape around the given anchor.
-
setTransformationMatrix
UnmanagedLayer setTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)
Sets the transformation matrix.
-
title
void title()
Getter for the element title value.
-
title
UnmanagedLayer title(String value)
Setter for the element title value.
-
translate
UnmanagedLayer translate(Number tx, Number ty)
Moves a shape taking an account the current transformation.
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
visible
void visible()
Gets the current visibility flag.
-
visible
UnmanagedLayer visible(Boolean isVisible)
Hides or shows an element.
-
zIndex
void zIndex()
Gets the current element's zIndex.
-
zIndex
UnmanagedLayer zIndex(Number value)
Sets the element's zIndex.
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen().
-
-
-
-