Class ColoredBorder

java.lang.Object
VASSAL.counters.ColoredBorder
All Implemented Interfaces:
Highlighter

public class ColoredBorder extends Object implements Highlighter
  • Field Details

    • c

      protected Color c
    • thickness

      protected int thickness
    • highlighters

      protected List<Highlighter> highlighters
  • Constructor Details

    • ColoredBorder

      public ColoredBorder()
    • ColoredBorder

      public ColoredBorder(Color c, int thickness)
  • Method Details

    • addHighlighter

      public void addHighlighter(Highlighter h)
    • removeHighlighter

      public void removeHighlighter(Highlighter h)
    • draw

      public void draw(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)
      Specified by:
      draw in interface Highlighter
    • highlightSelectionBounds

      protected void highlightSelectionBounds(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)
    • boundingBox

      public Rectangle boundingBox(GamePiece p)
      Specified by:
      boundingBox in interface Highlighter
    • setColor

      public void setColor(Color c)
    • getColor

      public Color getColor()
    • getThickness

      public int getThickness()
    • setThickness

      public void setThickness(int thickness)