Package VASSAL.counters
Class ColoredBorder
java.lang.Object
VASSAL.counters.ColoredBorder
- All Implemented Interfaces:
Highlighter
public class ColoredBorder extends Object implements Highlighter
-
Field Summary
Fields Modifier and Type Field Description protected Color
c
protected List<Highlighter>
highlighters
protected int
thickness
-
Constructor Summary
Constructors Constructor Description ColoredBorder()
ColoredBorder(Color c, int thickness)
-
Method Summary
Modifier and Type Method Description void
addHighlighter(Highlighter h)
Rectangle
boundingBox(GamePiece p)
void
draw(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)
Color
getColor()
int
getThickness()
protected void
highlightSelectionBounds(GamePiece p, Graphics g, int x, int y, Component obs, double zoom)
void
removeHighlighter(Highlighter h)
void
setColor(Color c)
void
setThickness(int thickness)
-
Field Details
-
c
-
thickness
protected int thickness -
highlighters
-
-
Constructor Details
-
ColoredBorder
public ColoredBorder() -
ColoredBorder
-
-
Method Details
-
addHighlighter
-
removeHighlighter
-
draw
- Specified by:
draw
in interfaceHighlighter
-
highlightSelectionBounds
-
boundingBox
- Specified by:
boundingBox
in interfaceHighlighter
-
setColor
-
getColor
-
getThickness
public int getThickness() -
setThickness
public void setThickness(int thickness)
-