public class RoundTile extends GameTile
Constructor and Description |
---|
RoundTile(java.awt.Color fillColor)
Creates a circular game tile.
|
RoundTile(java.awt.Color strokeColor,
java.awt.Color fillColor)
Creates a circular game tile with a stroke around it.
|
RoundTile(java.awt.Color strokeColor,
java.awt.Color fillColor,
double thickness)
Creates a circular game tile with a stroke around it.
|
RoundTile(java.awt.Color strokeColor,
java.awt.Color fillColor,
double thickness,
double scale)
Creates a circular game tile with a stroke around it.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
int x,
int y,
java.awt.Dimension d)
Draws itself in a given graphics context, position and size.
|
public RoundTile(java.awt.Color fillColor)
fillColor
- the color of the interior of the circle.public RoundTile(java.awt.Color strokeColor, java.awt.Color fillColor)
strokeColor
- the color of the stroke around the circle.fillColor
- the color of the interior of the circle.public RoundTile(java.awt.Color strokeColor, java.awt.Color fillColor, double thickness)
strokeColor
- the color of the stroke around the circle.fillColor
- the color of the interior of the circle.thickness
- the thickness of the stroke.public RoundTile(java.awt.Color strokeColor, java.awt.Color fillColor, double thickness, double scale)
strokeColor
- the color of the stroke around the circle.fillColor
- the color of the interior of the circle.thickness
- the thickness of the stroke.scale
- size of the circle relative to the tile size.