Class Grid

  • All Implemented Interfaces:
    IGrid

    public class Grid
    extends java.lang.Object
    implements IGrid
    A grid.
    • Constructor Summary

      Constructors 
      Constructor Description
      Grid​(Axis axis)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void draw​(org.eclipse.swt.graphics.GC gc, int width, int height)
      Draws grid.
      org.eclipse.swt.graphics.Color getForeground()
      Gets the foreground color.
      LineStyle getStyle()
      Gets the line style.
      void setForeground​(org.eclipse.swt.graphics.Color color)
      Sets the foreground color.
      void setStyle​(LineStyle style)
      Sets the line style.
      • Methods inherited from class java.lang.Object

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

      • Grid

        public Grid​(Axis axis)
        Constructor.
        Parameters:
        axis - the axis
    • Method Detail

      • getForeground

        public org.eclipse.swt.graphics.Color getForeground()
        Description copied from interface: IGrid
        Gets the foreground color.
        Specified by:
        getForeground in interface IGrid
        Returns:
        the foreground color
      • setForeground

        public void setForeground​(org.eclipse.swt.graphics.Color color)
        Description copied from interface: IGrid
        Sets the foreground color.
        Specified by:
        setForeground in interface IGrid
        Parameters:
        color - the foreground color
      • getStyle

        public LineStyle getStyle()
        Description copied from interface: IGrid
        Gets the line style.
        Specified by:
        getStyle in interface IGrid
        Returns:
        the line style.
      • setStyle

        public void setStyle​(LineStyle style)
        Description copied from interface: IGrid
        Sets the line style.
        Specified by:
        setStyle in interface IGrid
        Parameters:
        style - the line style
      • draw

        protected void draw​(org.eclipse.swt.graphics.GC gc,
                            int width,
                            int height)
        Draws grid.
        Parameters:
        gc - the graphics context
        width - the width to draw grid
        height - the height to draw grid