-
-
Method Summary
Modifier and Type Method Description static Rectinstantiate()StringgetJsBase()RectappendTransformationMatrix(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. Rectattr(String key, String value)Setter for the attribute. Rectclip()Gets the current clipping rectangle. Rectclip(Rect value)Sets the clipping rectangle. Rectclip(String value)Sets the clipping rectangle. voidcursor()Getter for the current cursor type. Rectcursor(Cursor value)Setter for the cursor type. Rectcut(String radiusAll)Sets cut corners. Rectcut(Number radiusAll)Sets cut corners. Rectcut(Number radiusLeftTop, Number radiusRightTop, Number radiusRightBottom, Number radiusLeftBottom)Sets cut corners. voiddesc()Getter for the element description value. Rectdesc(String value)Setter for the element description value. voiddisablePointerEvents()Gets the current value of the pointer events. RectdisablePointerEvents(Boolean value)Disables the pointer events. voiddisableStrokeScaling()Getter for the current element's vector effect property. RectdisableStrokeScaling(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. Rectdrag(Boolean value)Turns off/on dragging (moving) of an element. Rectdrag(Rect value)Turns off/on dragging (moving) of an element. voidfill()Gets the current fill. Rectfill(Fill color)Sets a fill as an object or a string. Rectfill(String color, Number opacity)Sets a fill with opacity. Rectfill(GradientKey keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. Rectfill(GradientKey keys, Number angle, Rect mode, Number opacity)Linear gradient fill. Rectfill(GradientKey keys, Number angle, String mode, Number opacity)Linear gradient fill. Rectfill(Array<String> keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. Rectfill(Array<String> keys, Number angle, Rect mode, Number opacity)Linear gradient fill. Rectfill(Array<String> keys, Number angle, String mode, Number opacity)Linear gradient fill. Rectfill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. Rectfill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. 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. Rectid(String id)Sets the element identifier. Layerparent()Returns the parent layer. Rectparent(Layer parent)Adds element to the given layer. Rectparent(Stage parent)Adds element to the given layer. Rectremove()Current element removes itself from the parent layer. voidremoveAllListeners(String type)Removes all listeners from this listenable. Rectrotate(Number degrees, Number cx, Number cy)Rotates a shape around the given rotation point. RectrotateByAnchor(Number degrees, Anchor anchor)Rotates a shape around the given anchor. RectrotateByAnchor(Number degrees, String anchor)Rotates a shape around the given anchor. Rectround(String radiusAll)Sets corners rounding using single value. Rectround(Number radiusAll)Sets corners rounding using single value. Rectround(Number radiusLeftTop, Number radiusRightTop, Number radiusRightBottom, Number radiusLeftBottom)Sets corners rounding using several value. RectroundInner(String radiusAll)Sets corners inner rounding. RectroundInner(Number radiusAll)Sets corners inner rounding. RectroundInner(Number radiusLeftTop, Number radiusRightTop, Number radiusRightBottom, Number radiusLeftBottom)Sets corners inner rounding. Rectscale(Number sx, Number sy, Number cx, Number cy)Scales a shape. RectscaleByAnchor(Number sx, Number sy, Anchor anchor)Scales a shape by anchor. RectscaleByAnchor(Number sx, Number sy, String anchor)Scales a shape by anchor. RectsetBounds(Rect bounds)Sets bounds. RectsetHeight(Number value)Sets a height. RectsetPosition(Number x, Number y)Sets top left corner of a shape (transformation taken into account) in the coordinate system of the parent. RectsetRotation(Number degrees, Number cx, Number cy)Rotates a shape around the given point. RectsetRotationByAnchor(Number degrees, Anchor anchor)Rotates a shape around the given anchor. RectsetRotationByAnchor(Number degrees, String anchor)Rotates a shape around the given anchor. RectsetTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)Sets the transformation matrix. RectsetWidth(Number width)Sets a width. RectsetX(Number x)Sets X in parent container. RectsetY(Number y)Sets Y in parent container. voidstroke()Gets the current stroke. Rectstroke(Stroke value)Sets a stroke using one parameter. Rectstroke(ColoredFill value)Sets a stroke using one parameter. Rectstroke(String value)Sets a stroke using one parameter. Rectstroke(Stroke value, Number thickness, String dashpattern, String lineJoin, String lineCap)Sets stroke settings using several parameter. Rectstroke(Stroke value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Sets stroke settings using several parameter. Rectstroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Sets stroke settings using several parameter. Rectstroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Sets stroke settings using several parameter. Rectstroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, String lineCap)Sets stroke settings using several parameter. Rectstroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Sets stroke settings using several parameter. Rectstroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Sets stroke settings using several parameter. Rectstroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Sets stroke settings using several parameter. Rectstroke(String value, Number thickness, String dashpattern, String lineJoin, String lineCap)Sets stroke settings using several parameter. Rectstroke(String value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Sets stroke settings using several parameter. Rectstroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Sets stroke settings using several parameter. Rectstroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Sets stroke settings using several parameter. voidstrokeThickness()Gets the current stroke thickness. RectstrokeThickness(Number thickness)Sets a stroke thickness. voidtitle()Getter for the element title value. Recttitle(String value)Setter for the element title value. Recttranslate(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. Rectvisible(Boolean isVisible)Hides or shows an element. voidzIndex()Gets the current element's zIndex. RectzIndex(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(). Rectfill(String value)-
Methods inherited from class com.anychart.graphics.vector.Shape
appendTransformationMatrix, attr, clip, clip, cursor, desc, disablePointerEvents, disableStrokeScaling, drag, drag, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, id, instantiate, parent, parent, remove, rotate, rotateByAnchor, rotateByAnchor, scale, scaleByAnchor, scaleByAnchor, setPosition, setRotation, setRotationByAnchor, setRotationByAnchor, setTransformationMatrix, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, strokeThickness, title, translate, visible, zIndex -
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
-
Rect
Rect(String jsChart)
-
-
Method Detail
-
instantiate
static Rect instantiate()
-
appendTransformationMatrix
Rect 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.
-
cut
Rect cut(Number radiusLeftTop, Number radiusRightTop, Number radiusRightBottom, Number radiusLeftBottom)
Sets cut corners.
-
desc
void desc()
Getter for the element description value.
-
disablePointerEvents
void disablePointerEvents()
Gets the current value of the pointer events.
-
disablePointerEvents
Rect disablePointerEvents(Boolean value)
Disables the pointer events.
-
disableStrokeScaling
void disableStrokeScaling()
Getter for the current element's vector effect property.
-
disableStrokeScaling
Rect 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.
-
fill
void fill()
Gets the current fill.
-
fill
Rect fill(Array<String> keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill.
-
fill
Rect fill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial gradient fill.
-
fill
Rect fill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial gradient fill.
-
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.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from this listenable.
-
rotate
Rect rotate(Number degrees, Number cx, Number cy)
Rotates a shape around the given rotation point.
-
rotateByAnchor
Rect rotateByAnchor(Number degrees, Anchor anchor)
Rotates a shape around the given anchor.
-
rotateByAnchor
Rect rotateByAnchor(Number degrees, String anchor)
Rotates a shape around the given anchor.
-
round
Rect round(Number radiusLeftTop, Number radiusRightTop, Number radiusRightBottom, Number radiusLeftBottom)
Sets corners rounding using several value.
-
roundInner
Rect roundInner(String radiusAll)
Sets corners inner rounding.
-
roundInner
Rect roundInner(Number radiusAll)
Sets corners inner rounding.
-
roundInner
Rect roundInner(Number radiusLeftTop, Number radiusRightTop, Number radiusRightBottom, Number radiusLeftBottom)
Sets corners inner rounding.
-
scale
Rect scale(Number sx, Number sy, Number cx, Number cy)
Scales a shape. Scaling center is set in the coordinate system of the parent.
-
scaleByAnchor
Rect scaleByAnchor(Number sx, Number sy, Anchor anchor)
Scales a shape by anchor. Scaling center is set as an anchor.
-
scaleByAnchor
Rect scaleByAnchor(Number sx, Number sy, String anchor)
Scales a shape by anchor. Scaling center is set as an anchor.
-
setPosition
Rect setPosition(Number x, Number y)
Sets top left corner of a shape (transformation taken into account) in the coordinate system of the parent.
-
setRotation
Rect setRotation(Number degrees, Number cx, Number cy)
Rotates a shape around the given point.
-
setRotationByAnchor
Rect setRotationByAnchor(Number degrees, Anchor anchor)
Rotates a shape around the given anchor.
-
setRotationByAnchor
Rect setRotationByAnchor(Number degrees, String anchor)
Rotates a shape around the given anchor.
-
setTransformationMatrix
Rect setTransformationMatrix(Number m00, Number m10, Number m01, Number m11, Number m02, Number m12)
Sets the transformation matrix.
-
stroke
void stroke()
Gets the current stroke.
-
stroke
Rect stroke(ColoredFill value)
Sets a stroke using one parameter.
-
stroke
Rect stroke(Stroke value, Number thickness, String dashpattern, String lineJoin, String lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(Stroke value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, String lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(String value, Number thickness, String dashpattern, String lineJoin, String lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(String value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Sets stroke settings using several parameter.
-
stroke
Rect stroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Sets stroke settings using several parameter.
-
strokeThickness
void strokeThickness()
Gets the current stroke thickness.
-
strokeThickness
Rect strokeThickness(Number thickness)
Sets a stroke thickness.
-
title
void title()
Getter for the element title value.
-
translate
Rect 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.
-
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().
-
-
-
-