Class CellDrawer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CellDrawer extends JPanel
See Also:
  • Field Details

    • DEFAULT_CELL_SIZE

      public static final int DEFAULT_CELL_SIZE
      See Also:
    • BACKGROUND_COLOR

      public static final Color BACKGROUND_COLOR
  • Constructor Details

    • CellDrawer

      public CellDrawer()
  • Method Details

    • markAsSource

      public void markAsSource()
    • markAsEmpty

      public void markAsEmpty()
    • markAsPath

      public void markAsPath(int amount)
    • markAs

      public void markAs(Piece piece)
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • createIcon

      public static Icon createIcon(Piece piece)
    • createCapstoneIcon

      public static Icon createCapstoneIcon(Color color, int amount, int width, int height)
    • createMenhirIcon

      public static Icon createMenhirIcon(Color color, int amount, int width, int height)
    • createDolmenIcon

      public static Icon createDolmenIcon(Color color, int amount, int width, int height)