Package kiyut.sketsa.canvas

## Interface CanvasGrid

- All Known Implementing Classes:
    `DefaultCanvasGrid`

      public interface CanvasGrid

  Canvas Grid Interface
  Author:
    KIYUT

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `getGridSize()` | Return Grid size in pixel eg: 50, 100.
    `boolean` | `isVisible()` | Return true or false
    `void` | `paint​(Graphics2D g2d)` | Render this Grid
    `void` | `setVectorCanvas​(VectorCanvas canvas)` | Sets the canvas associated with this CanvasSelection.
    `void` | `setVisible​(boolean visible)` | Shows or hides depending on the value of parameter.

- - ### Method Detail

    - #### paint

          void paint​(Graphics2D g2d)

      Render this Grid
      Parameters:
        `g2d` - Graphics2D

    - #### setVectorCanvas

          void setVectorCanvas​(VectorCanvas canvas)

      Sets the canvas associated with this CanvasSelection.
      Parameters:
        `canvas` - the Canvas

    - #### setVisible

          void setVisible​(boolean visible)

      Shows or hides depending on the value of parameter.
      Parameters:
        `visible` - true or false
      See Also:
        `isVisible()`

    - #### isVisible

          boolean isVisible()

      Return true or false
      Returns:
        true or false
      See Also:
        `setVisible(boolean)`

    - #### getGridSize

          int getGridSize()

      Return Grid size in pixel eg: 50, 100. It is the Grid Line size
      Returns:
        Grid Size in pixel