-
-
Method Summary
Modifier and Type Method Description static Imageinstantiate()StringgetJsBase()voidalign()Getter for the align. Imagealign(Align align)Setter for the align. ImageappendTransformationMatrix(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. Imageattr(String key, String value)Setter for the attribute. Rectclip()Gets the current clipping rectangle. Imageclip(Rect value)Sets the clipping rectangle. Imageclip(String value)Sets the clipping rectangle. voidcursor()Getter for the current cursor type. Imagecursor(Cursor value)Setter for the cursor type. voiddesc()Getter for the element description value. Imagedesc(String value)Setter for the element description value. voiddisablePointerEvents()Gets the current value of the pointer events. ImagedisablePointerEvents(Boolean value)Disables the pointer events. voiddisableStrokeScaling()Getter for the current element's vector effect property. ImagedisableStrokeScaling(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. Imagedrag(Boolean value)Turns off/on dragging (moving) of an element. Imagedrag(Rect value)Turns off/on dragging (moving) of an element. voidfittingMode()Getter for the fitting mode. ImagefittingMode(Fitting mode)Setter for the fitting mode. ImagefittingMode(String mode)Setter for the fitting mode. 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. voidheight()Getter for the image height. Imageheight(Number height)Setter for the image height. voidid()Gets the current element identifier. Imageid(String id)Sets the element identifier. Layerparent()Returns the parent layer. Imageparent(Layer parent)Adds element to the given layer. Imageparent(Stage parent)Adds element to the given layer. Imageremove()Current element removes itself from the parent layer. voidremoveAllListeners(String type)Removes all listeners from this listenable. Imagerotate(Number degrees, Number cx, Number cy)Rotates a shape around the given rotation point. ImagerotateByAnchor(Number degrees, Anchor anchor)Rotates a shape around the given anchor. ImagerotateByAnchor(Number degrees, String anchor)Rotates a shape around the given anchor. Imagescale(Number sx, Number sy, Number cx, Number cy)Scales a shape. ImagescaleByAnchor(Number sx, Number sy, Anchor anchor)Scales a shape by anchor. ImagescaleByAnchor(Number sx, Number sy, String anchor)Scales a shape by anchor. ImagesetPosition(Number x, Number y)Sets top left corner of a shape (transformation taken into account) in the coordinate system of the parent. ImagesetRotation(Number degrees, Number cx, Number cy)Rotates a shape around the given point. ImagesetRotationByAnchor(Number degrees, Anchor anchor)Rotates a shape around the given anchor. ImagesetRotationByAnchor(Number degrees, String anchor)Rotates a shape around the given anchor. ImagesetTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)Sets the transformation matrix. voidsrc()Getter for the image source. Imagesrc(String url)Setter for the image source. voidtitle()Getter for the element title value. Imagetitle(String value)Setter for the element title value. Imagetranslate(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. Imagevisible(Boolean isVisible)Hides or shows an element. voidwidth()Getter for the image width. Imagewidth(Number width)Setter for the image width. voidx()Getter for the X coordinate. Imagex(Number xCoord)Setter for X coordinate. voidy()Getter for the Y coordinate. Imagey(Number yCoord)Setter for the Y coordinate. voidzIndex()Gets the current element's zIndex. ImagezIndex(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
-
Image
Image(String jsChart)
-
-
Method Detail
-
instantiate
static Image instantiate()
-
align
void align()
Getter for the align.
-
appendTransformationMatrix
Image appendTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)
Combines the current transformation with the given transformation matrix.
-
cursor
void cursor()
Getter for the current cursor type.
-
desc
void desc()
Getter for the element description value.
-
disablePointerEvents
void disablePointerEvents()
Gets the current value of the pointer events.
-
disablePointerEvents
Image disablePointerEvents(Boolean value)
Disables the pointer events.
-
disableStrokeScaling
void disableStrokeScaling()
Getter for the current element's vector effect property.
-
disableStrokeScaling
Image 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.
-
fittingMode
void fittingMode()
Getter for the fitting mode.
-
fittingMode
Image fittingMode(Fitting mode)
Setter for the fitting mode.
-
fittingMode
Image fittingMode(String mode)
Setter for the fitting mode.
-
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.
-
height
void height()
Getter for the image height.
-
id
void id()
Gets the current element identifier.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from this listenable.
-
rotate
Image rotate(Number degrees, Number cx, Number cy)
Rotates a shape around the given rotation point.
-
rotateByAnchor
Image rotateByAnchor(Number degrees, Anchor anchor)
Rotates a shape around the given anchor.
-
rotateByAnchor
Image rotateByAnchor(Number degrees, String anchor)
Rotates a shape around the given anchor.
-
scale
Image scale(Number sx, Number sy, Number cx, Number cy)
Scales a shape. Scaling center is set in the coordinate system of the parent.
-
scaleByAnchor
Image scaleByAnchor(Number sx, Number sy, Anchor anchor)
Scales a shape by anchor. Scaling center is set as an anchor.
-
scaleByAnchor
Image scaleByAnchor(Number sx, Number sy, String anchor)
Scales a shape by anchor. Scaling center is set as an anchor.
-
setPosition
Image setPosition(Number x, Number y)
Sets top left corner of a shape (transformation taken into account) in the coordinate system of the parent.
-
setRotation
Image setRotation(Number degrees, Number cx, Number cy)
Rotates a shape around the given point.
-
setRotationByAnchor
Image setRotationByAnchor(Number degrees, Anchor anchor)
Rotates a shape around the given anchor.
-
setRotationByAnchor
Image setRotationByAnchor(Number degrees, String anchor)
Rotates a shape around the given anchor.
-
setTransformationMatrix
Image setTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)
Sets the transformation matrix.
-
src
void src()
Getter for the image source.
-
title
void title()
Getter for the element title value.
-
translate
Image 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.
-
width
void width()
Getter for the image width.
-
x
void x()
Getter for the X coordinate.
-
y
void y()
Getter for the Y coordinate.
-
zIndex
void zIndex()
Gets the current element's zIndex.
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen().
-
-
-
-