Package 

Class Ticks


  • 
    public class Ticks
    extends VisualBase
                        

    Axis ticks class. You can change position, length and line features.

    • Constructor Detail

    • Method Detail

      • enabled

         void enabled()

        Getter for the element state (enabled or disabled).

      • length

         void length()

        Getter for ticks length.

      • position

         void position()

        Getter for ticks position.

      • position

         Ticks position(SidePosition position)

        Setter for ticks position. You can set ticks inside of a chart area or outside its position.

      • position

         Ticks position(String position)

        Setter for ticks position. You can set ticks inside of a chart area or outside its position.

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

      • stroke

         void stroke()

        Getter for stroke settings.

      • stroke

         Ticks stroke(Stroke color)

        Setter for stroke settings via single parameter.

      • stroke

         Ticks stroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)

        Setter for stroke settings via several parameter. The following options are acceptable:

        • String formatted as '[thickness ]color[ opacity]':
          • 'color' - ://www.w3schools.com/html/html_colors.asp.
          • 'thickness color' - like a CSS border, e.g. '3 red' or '3px red'
          • 'color opacity' - as a fill string, e.g. '#fff 0.5'
          • 'thickness color opacity' - as a complex string, e.g. '3px #00ff00 0.5'
        • anychart.graphics.vector.Stroke object
        • Keys array anychart.graphics.vector.GradientKey
        • null - reset current stroke settings.
        Note: String parts order is significant and '3px red' is not the same as 'red 3px'.
      • stroke

         Ticks stroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)

        Setter for stroke settings via several parameter. The following options are acceptable:

        • String formatted as '[thickness ]color[ opacity]':
          • 'color' - ://www.w3schools.com/html/html_colors.asp.
          • 'thickness color' - like a CSS border, e.g. '3 red' or '3px red'
          • 'color opacity' - as a fill string, e.g. '#fff 0.5'
          • 'thickness color opacity' - as a complex string, e.g. '3px #00ff00 0.5'
        • anychart.graphics.vector.Stroke object
        • Keys array anychart.graphics.vector.GradientKey
        • null - reset current stroke settings.
        Note: String parts order is significant and '3px red' is not the same as 'red 3px'.
      • stroke

         Ticks stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)

        Setter for stroke settings via several parameter. The following options are acceptable:

        • String formatted as '[thickness ]color[ opacity]':
          • 'color' - ://www.w3schools.com/html/html_colors.asp.
          • 'thickness color' - like a CSS border, e.g. '3 red' or '3px red'
          • 'color opacity' - as a fill string, e.g. '#fff 0.5'
          • 'thickness color opacity' - as a complex string, e.g. '3px #00ff00 0.5'
        • anychart.graphics.vector.Stroke object
        • Keys array anychart.graphics.vector.GradientKey
        • null - reset current stroke settings.
        Note: String parts order is significant and '3px red' is not the same as 'red 3px'.
      • stroke

         Ticks stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)

        Setter for stroke settings via several parameter. The following options are acceptable:

        • String formatted as '[thickness ]color[ opacity]':
          • 'color' - ://www.w3schools.com/html/html_colors.asp.
          • 'thickness color' - like a CSS border, e.g. '3 red' or '3px red'
          • 'color opacity' - as a fill string, e.g. '#fff 0.5'
          • 'thickness color opacity' - as a complex string, e.g. '3px #00ff00 0.5'
        • anychart.graphics.vector.Stroke object
        • Keys array anychart.graphics.vector.GradientKey
        • null - reset current stroke settings.
        Note: String parts order is significant and '3px red' is not the same as 'red 3px'.
      • 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.

      • parentBounds

         Rect parentBounds()

        Getter for the parent bounds. Bounds that would be used in case of percent size calculations. Expects pixel values only.

      • parentBounds

         Ticks 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

         Ticks 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

         Ticks 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

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