public final class TilesFactoryDefaults extends Object
Modifier and Type | Field and Description |
---|---|
static IsColor |
DEFAULT_BACKGROUND_COLOR
Default background color, "rgba(100, 100, 100, 0.7)".
|
static String |
DEFAULT_BACKGROUND_COLOR_AS_STRING
Default background color as string, "rgba(100, 100, 100, 0.7)".
|
static Context2d.LineCap |
DEFAULT_LINE_CAP
Default to determine the shape used to draw the end points of lines,
Context2d.LineCap.ROUND . |
static Context2d.LineJoin |
DEFAULT_LINE_JOIN
Default to determine the shape used to join two line segments where they meet,
Context2d.LineJoin.ROUND . |
static IsShape |
DEFAULT_SHAPE
Default the shape,
Shape.SQUARE . |
static IsColor |
DEFAULT_SHAPE_COLOR
Default shape color, "rgba(255, 255, 255, 0.8)".
|
static String |
DEFAULT_SHAPE_COLOR_AS_STRING
Default shape color as string, "rgba(255, 255, 255, 0.8)".
|
static int |
DEFAULT_SIZE
Default tile size, 20.
|
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the background color of tile.
|
String |
getBackgroundColorAsString()
Returns the background color of tile.
|
Context2d.LineCap |
getLineCap()
Returns the lineCap, to determine the shape used to draw the end points of lines.
|
Context2d.LineJoin |
getLineJoin()
Returns the lineJoin, to determine the shape used to join two line segments where they meet.
|
IsShape |
getShape()
Returns the shape of tile.
|
IsColor |
getShapeColor()
Returns the shape color of tile.
|
String |
getShapeColorAsString()
Returns the shape color of tile.
|
int |
getSize()
Returns the size of the tile.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color of tile.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color of tile as string.
|
void |
setLineCap(Context2d.LineCap lineCap)
Sets the lineCap, to determine the shape used to draw the end points of lines.
|
void |
setLineJoin(Context2d.LineJoin lineJoin)
Sets the lineJoin, to determine the shape used to join two line segments where they meet.
|
void |
setShape(IsShape shape)
Sets the shape of the tile.
|
void |
setShapeColor(IsColor shapeColor)
Sets the shape color of tile.
|
void |
setShapeColor(String shapeColor)
Sets the shape color of tile.
|
void |
setSize(int size)
Sets the size of the tile, minimum size is the default size.
|
public static final String DEFAULT_BACKGROUND_COLOR_AS_STRING
public static final String DEFAULT_SHAPE_COLOR_AS_STRING
public static final IsColor DEFAULT_BACKGROUND_COLOR
public static final IsColor DEFAULT_SHAPE_COLOR
public static final int DEFAULT_SIZE
public static final Context2d.LineCap DEFAULT_LINE_CAP
Context2d.LineCap.ROUND
.public static final IsShape DEFAULT_SHAPE
Shape.SQUARE
.public static final Context2d.LineJoin DEFAULT_LINE_JOIN
Context2d.LineJoin.ROUND
.public IsShape getShape()
null
, returns the default one.null
, returns the default onepublic void setShape(IsShape shape)
shape
- the shape of tilepublic final int getSize()
public void setSize(int size)
size
- the size to setpublic String getBackgroundColorAsString()
null
, returns the default one.null
, returns the default onepublic IsColor getBackgroundColor()
null
, returns the default one.null
, returns the default onepublic void setBackgroundColor(String backgroundColor)
backgroundColor
- the background color of tile as stringpublic void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color of tilepublic String getShapeColorAsString()
null
, returns the default one.null
, returns the default onepublic IsColor getShapeColor()
null
, returns the default one.null
, returns the default onepublic void setShapeColor(String shapeColor)
shapeColor
- the shape color of tilepublic void setShapeColor(IsColor shapeColor)
shapeColor
- the shape color of tilepublic Context2d.LineCap getLineCap()
null
, returns the
default one.null
, returns
the default onepublic void setLineCap(Context2d.LineCap lineCap)
lineCap
- the lineCap to determine the shape used to draw the end points of linespublic Context2d.LineJoin getLineJoin()
null
,
returns the default one.null
, returns the default onepublic void setLineJoin(Context2d.LineJoin lineJoin)
lineJoin
- the lineJoin, to determine the shape used to join two line segments where they meet.