public final class Appearance
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static Color |
DEFAULT_FILL_COLOR |
The default fill color.
|
static Color |
DEFAULT_LINE_COLOR |
The default line color.
|
static short |
DEFAULT_LINE_PATTERN |
The default line pattern (full line).
|
static float |
DEFAULT_LINE_WIDTH |
The default line width.
|
Constructor | Description |
---|---|
Appearance() |
Default constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static Appearance |
getDefault() |
Return the default appearance.
|
Color |
getFillColor() |
Return the fill color.
|
Color |
getLineColor() |
Return the line color.
|
short |
getLinePattern() |
Return the line pattern.
|
float |
getLineWidth() |
Return the line width.
|
Texture |
getTexture() |
Texture getter.
|
void |
setFillColor(Color fillColor) |
Set the fill color.
|
void |
setLineColor(Color lineColor) |
Set the line color.
|
void |
setLinePattern(short linePattern) |
Set the line pattern.
|
void |
setLineWidth(float lineWidth) |
Set the line width.
|
void |
setTexture(Texture texture) |
Texture setter.
|
public static final float DEFAULT_LINE_WIDTH
public static final short DEFAULT_LINE_PATTERN
public static final Color DEFAULT_LINE_COLOR
public static final Color DEFAULT_FILL_COLOR
public static Appearance getDefault()
public Texture getTexture()
public void setTexture(Texture texture)
texture
- the new texture.public float getLineWidth()
public void setLineWidth(float lineWidth)
lineWidth
- the new line width.public short getLinePattern()
public void setLinePattern(short linePattern)
linePattern
- the new line pattern.public Color getLineColor()
public void setLineColor(Color lineColor)
lineColor
- the new lne color.public Color getFillColor()
public void setFillColor(Color fillColor)
fillColor
- the new fill color.