Package 

Class PatternFill


  • 
    public class PatternFill
    extends Layer
                        

    Pattern fill class.Do not invoke constructor directly. Use patternFill.

    • Constructor Detail

      • PatternFill

        PatternFill(String jsChart)
    • Method Detail

      • addChild

         PatternFill addChild(Element element)

        Add element to a layer, to the top (maximal index). All DOM changes will happen instantly, except suspend. Simplified version of addChildAt where element is added to the end.

      • addChildAt

         PatternFill addChildAt(Element element, Number index)

        Adds an element to a layer by index. Note: the greater index is - the 'higher' element is in a layer top element overlaps bottom elements. All DOM changes will happen instantly, except suspend. Left image shows sequential calls of addChild Right image does the same, but star is added to 0 index..addChildAt(star5, 0); (see code of this image in samples).

      • attr

         void attr(String key)

        Getter for the attribute.

      • circle

         Circle circle(Number cx, Number cy, Number radius)

        Invokes anychart.graphics.vector.Circle class constructor.Note:anychart.graphics.vector.Layer does nothing to delete an object after it is used. You have to take care of used objects yourself. Read more at anychart.graphics.vector.Circle

      • clip

         Rect clip()

        Gets the current clipping rectangle.

      • cross

         void cross()

        Draws a cross set by its circumscribed circle center and radius. Read more at cross

      • cursor

         void cursor()

        Getter for the current cursor type.

      • desc

         void desc()

        Getter for the element description value.

      • diagonalCross

         void diagonalCross()

        Draws a diagonal cross set by its circumscribed circle center and radius. Read more at diagonalCross

      • diamond

         void diamond()

        Draws a diamond set by its circumscribed circle center and radius. Read more at diamond

      • disableStrokeScaling

         void disableStrokeScaling()

        Getter for the current element's vector effect property.

      • 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.

      • donut

         void donut()

        Draws sector as donut chart element. Read more at donut

      • drag

         void drag()

        Returns the current state flag.

      • ellipse

         Ellipse ellipse(Number cx, Number cy, Number rx, Number ry)

        Invokes anychart.graphics.vector.Ellipse class constructor.Note:anychart.graphics.vector.Layer does nothing to delete an object after it is used. You have to take care of used objects yourself. Read more at anychart.graphics.vector.Ellipse

      • 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

      • 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.

      • getStage

         Stage getStage()

        Stage object (to which the given element is bound).

      • 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.

      • hLine

         void hLine()

        Draws a thick horizontal line set by its circumscribed circle center and radius. Read more at hLine

      • hasChild

         void hasChild(Element element)

        Checks if there is such element in children set.

      • hasParent

         void hasParent()

        Whether parent element is set.

      • id

         void id()

        Gets the current element identifier.

      • image

         Image image(String src, Number x, Number y, Number width, Number height)

        Invokes anychart.graphics.vector.Image class constructor.Note:anychart.graphics.vector.Layer does nothing to delete an object after it is used. You need to take care of used objects yourself.

      • indexOfChild

         void indexOfChild(Element element)

        Looks for an element in a layer and returns index or -1, if not found.

      • layer

         PatternFill layer()

        Invokes anychart.graphics.vector.Layer class constructor.Note:anychart.graphics.vector.Layer does nothing to delete an object after it is used. You have to take care of used objects yourself.

      • numChildren

         void numChildren()

        Returns the number of children.

      • path

         Path path()

        Invokes anychart.graphics.vector.Path class constructor.Note:anychart.graphics.vector.Layer does nothing to delete an object after it is used. You have to take care of used objects yourself. Read more at: anychart.graphics.vector.Path

      • pie

         void pie()

        Draws sector as pie chart element. Read more at pie

      • rect

         Rect rect(Number x, Number y, Number width, Number height)

        Invokes anychart.graphics.vector.Rect class constructor.Note:anychart.graphics.vector.Layer does nothing to delete an object after it is used. You have to take care of used objects yourself.

      • removeChild

         PatternFill removeChild(Element element)

        Removes element from a layer. All changes in DOM will happen instantly, except suspend. Note: this method doesn't remove element, it just breaks the link between the element and the layer.This is an extension of removeChildAt method.

      • removeChildAt

         PatternFill removeChildAt(Number index)

        Removes element from a layer by index. All changes in DOM will happen instantly, except suspend.Note: this method doesn't remove element, it just breaks the link between the element and the layer.

      • removeChildren

         void removeChildren()

        Removes all children from a layer.

      • roundedInnerRect

         void roundedInnerRect()

        Draws rectangle with corners rounded inside. Read more at roundedInnerRect

      • roundedRect

         void roundedRect()

        Draws rectangle with rounded corners. Read more at roundedRect

      • star

         void star()

        Draws multi-pointed star. Read more at star

      • star10

         void star10()

        Draws ten-pointed star. Read more at star10

      • star4

         void star4()

        Draws four-pointed star. Read more at star4

      • star5

         void star5()

        Draws five-pointed star. Read more at star5

      • star6

         void star6()

        Draws six-pointed star. Read more at star6

      • star7

         void star7()

        Draws seven-pointed star. Read more at star7

      • title

         void title()

        Getter for the element title value.

      • triangleDown

         void triangleDown()

        Draws a triangle heading downwards set by its circumscribed circle center and radius. Read more at triangleDown

      • triangleLeft

         void triangleLeft()

        Draws a triangle heading leftwards set by its circumscribed circle center and radius. Read more at triangleLeft

      • triangleRight

         void triangleRight()

        Draws a triangle heading rightwards set by its circumscribed circle center and radius. Read more at triangleRight

      • triangleUp

         void triangleUp()

        Draws a triangle heading upwards set by its circumscribed circle center and radius. Read more at triangleUp

      • truncatedRect

         void truncatedRect()

        Draws rectangle with cut corners. Read more at truncatedRect

      • vLine

         void vLine()

        Draws a thick vertical line set by its circumscribed circle center and radius. Read more at vLine

      • 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().