Class AxisTickMarks


  • public class AxisTickMarks
    extends java.lang.Object
    Axis tick marks.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int LINE_WIDTH
      the line width
      static int TICK_LENGTH
      the tick length
    • Constructor Summary

      Constructors 
      Constructor Description
      AxisTickMarks​(Chart chart, Axis axis)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void dispose()
      Disposes the resources.
      Axis getAxis()
      Gets the associated axis.
      protected Rectangle getBounds()
      Gets the bounds on chart panel.
      protected Color getForeground()
      Gets the foreground color.
      ChartLayoutData getLayoutData()
      Gets the layout data.
      void paintControl​(PaintEvent e)  
      void setBounds​(int x, int y, int width, int height)
      Sets the bounds on chart panel.
      void setForeground​(Color color)
      Sets the foreground color.
      protected void updateLayoutData()
      Updates tick marks layout.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AxisTickMarks

        public AxisTickMarks​(Chart chart,
                             Axis axis)
        Constructor.
        Parameters:
        chart - the chart
        axis - the axis
    • Method Detail

      • setForeground

        public void setForeground​(Color color)
        Sets the foreground color.
        Parameters:
        color - the foreground color
      • getForeground

        protected Color getForeground()
        Gets the foreground color.
        Returns:
        the foreground color
      • getAxis

        public Axis getAxis()
        Gets the associated axis.
        Returns:
        the axis
      • updateLayoutData

        protected void updateLayoutData()
        Updates tick marks layout.
      • getLayoutData

        public ChartLayoutData getLayoutData()
        Gets the layout data.
        Returns:
        the layout data
      • setBounds

        public void setBounds​(int x,
                              int y,
                              int width,
                              int height)
        Sets the bounds on chart panel.
        Parameters:
        x - the x coordinate
        y - the y coordinate
        width - the width
        height - the height
      • getBounds

        protected Rectangle getBounds()
        Gets the bounds on chart panel.
        Returns:
        the bounds on chart panel
      • dispose

        protected void dispose()
        Disposes the resources.
      • paintControl

        public void paintControl​(PaintEvent e)