public final class TilesFactory extends Object
Modifier and Type | Method and Description |
---|---|
static void |
clearHtmlLegendItems(HtmlLegendItem htmlLegendItem)
Clears all cached instance of point style by chart instance, wrapper into a legend item.
|
static String |
createHtmlLegendItem(HtmlLegendItem htmlLegendItem)
Returns a point style picture in base64 PNG format using the legend item as source.
This is invoked ONLY from HtmlLegend plugin. |
static Pattern |
createPattern()
Returns a CHARBA pattern, using default values, shape is
square , background color, shape color and size. |
static Pattern |
createPattern(IsShape shape)
Returns a CHARBA pattern, using the shape as argument and the other default values, background color, shape color and
size.
|
static Pattern |
createPattern(IsShape shape,
IsColor backgroundColor)
Returns a CHARBA pattern, using the shape and back ground color as arguments and the other default values, shape color
and size.
|
static Pattern |
createPattern(IsShape shape,
IsColor backgroundColor,
IsColor shapeColor)
Returns a CHARBA pattern, using the shape, back ground color and shape color as arguments and the size as default value.
|
static Pattern |
createPattern(IsShape shape,
IsColor backgroundColor,
IsColor shapeColor,
int size)
Returns a CHARBA pattern, using the shape, back ground color, shape color and size as arguments.
|
static Pattern |
createPattern(IsShape shape,
String backgroundColor)
Returns a CHARBA pattern, using the shape and back ground color as arguments and the other default values, shape color
and size.
|
static Pattern |
createPattern(IsShape shape,
String backgroundColor,
String shapeColor)
Returns a CHARBA pattern, using the shape, back ground color and shape color as arguments and the size as default value.
|
static Pattern |
createPattern(IsShape shape,
String backgroundColor,
String shapeColor,
int size)
Returns a CHARBA pattern, using the shape, back ground color, shape color and size as arguments.
|
static Pattern |
createPattern(PointStyle style)
Returns a CHARBA pattern, using the point style as argument and the other default values, background color, shape color
and size.
|
static Pattern |
createPattern(PointStyle style,
IsColor backgroundColor)
Returns a CHARBA pattern, using the point style and back ground color as arguments and the other default values, shape
color and size.
|
static Pattern |
createPattern(PointStyle style,
IsColor backgroundColor,
IsColor shapeColor)
Returns a CHARBA pattern, using the point style, back ground color and shape color as arguments and the size as default
value.
|
static Pattern |
createPattern(PointStyle style,
IsColor backgroundColor,
IsColor shapeColor,
int size)
Returns a CHARBA pattern, using the point style, back ground color, shape color and size as arguments.
|
static Pattern |
createPattern(PointStyle style,
String backgroundColor)
Returns a CHARBA pattern, using the point style and back ground color as arguments and the other default values, shape
color and size.
|
static Pattern |
createPattern(PointStyle style,
String backgroundColor,
String shapeColor)
Returns a CHARBA pattern, using the point style, back ground color and shape color as arguments and the size as default
value.
|
static Pattern |
createPattern(PointStyle style,
String backgroundColor,
String shapeColor,
int size)
Returns a CHARBA pattern, using the point style, back ground color, shape color and size as arguments.
|
static CanvasPattern |
createTile()
Returns a canvas pattern, using default values, shape is
square , background color, shape color and size. |
static CanvasPattern |
createTile(IsShape shape)
Returns a canvas pattern, using the shape as argument and the other default values, background color, shape color and
size.
|
static CanvasPattern |
createTile(IsShape shape,
IsColor backgroundColor)
Returns a canvas pattern, using the shape and back ground color as arguments and the other default values, shape color
and size.
|
static CanvasPattern |
createTile(IsShape shape,
IsColor backgroundColor,
IsColor shapeColor)
Returns a canvas pattern, using the shape, back ground color and shape color as arguments and the size as default value.
|
static CanvasPattern |
createTile(IsShape shape,
IsColor backgroundColor,
IsColor shapeColor,
int size)
Returns a canvas pattern, using the shape, back ground color, shape color and size as arguments.
|
static CanvasPattern |
createTile(IsShape shape,
String backgroundColor)
Returns a canvas pattern, using the shape and back ground color as arguments and the other default values, shape color
and size.
|
static CanvasPattern |
createTile(IsShape shape,
String backgroundColor,
String shapeColor)
Returns a canvas pattern, using the shape, back ground color and shape color as arguments and the size as default value.
|
static CanvasPattern |
createTile(IsShape shape,
String backgroundColor,
String shapeColor,
int size)
Returns a canvas pattern, using the shape, back ground color, shape color and size as arguments.
|
static TilesFactoryDefaults |
getDefaults()
Returns the default values of tiles configuration.
|
public static TilesFactoryDefaults getDefaults()
public static CanvasPattern createTile()
square
, background color, shape color and size.public static CanvasPattern createTile(IsShape shape)
shape
- shape to apply to canvas patternpublic static CanvasPattern createTile(IsShape shape, IsColor backgroundColor)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternpublic static CanvasPattern createTile(IsShape shape, String backgroundColor)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternpublic static CanvasPattern createTile(IsShape shape, String backgroundColor, String shapeColor)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorpublic static CanvasPattern createTile(IsShape shape, IsColor backgroundColor, IsColor shapeColor)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorpublic static CanvasPattern createTile(IsShape shape, IsColor backgroundColor, IsColor shapeColor, int size)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorsize
- size of canvas patternpublic static CanvasPattern createTile(IsShape shape, String backgroundColor, String shapeColor, int size)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorsize
- size of canvas patternpublic static Pattern createPattern()
square
, background color, shape color and size.public static Pattern createPattern(IsShape shape)
shape
- shape to apply to canvas patternpublic static Pattern createPattern(IsShape shape, IsColor backgroundColor)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternpublic static Pattern createPattern(IsShape shape, String backgroundColor)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternpublic static Pattern createPattern(IsShape shape, String backgroundColor, String shapeColor)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorpublic static Pattern createPattern(IsShape shape, IsColor backgroundColor, IsColor shapeColor)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorpublic static Pattern createPattern(IsShape shape, String backgroundColor, String shapeColor, int size)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorsize
- size of canvas patternpublic static Pattern createPattern(IsShape shape, IsColor backgroundColor, IsColor shapeColor, int size)
shape
- shape to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorsize
- size of canvas patternpublic static Pattern createPattern(PointStyle style)
style
- point style to apply to canvas patternpublic static Pattern createPattern(PointStyle style, IsColor backgroundColor)
style
- point style to apply to canvas patternbackgroundColor
- background color of canvas patternpublic static Pattern createPattern(PointStyle style, String backgroundColor)
style
- point style to apply to canvas patternbackgroundColor
- background color of canvas patternpublic static Pattern createPattern(PointStyle style, String backgroundColor, String shapeColor)
style
- point style to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorpublic static Pattern createPattern(PointStyle style, IsColor backgroundColor, IsColor shapeColor)
style
- point style to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorpublic static Pattern createPattern(PointStyle style, String backgroundColor, String shapeColor, int size)
style
- point style to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorsize
- size of canvas patternpublic static Pattern createPattern(PointStyle style, IsColor backgroundColor, IsColor shapeColor, int size)
style
- point style to apply to canvas patternbackgroundColor
- background color of canvas patternshapeColor
- shape colorsize
- size of canvas patternpublic static String createHtmlLegendItem(HtmlLegendItem htmlLegendItem)
HtmlLegend
plugin.htmlLegendItem
- the legend item instance to create the tileCanvas.toDataUrl()
public static void clearHtmlLegendItems(HtmlLegendItem htmlLegendItem)
HtmlLegend
plugin.htmlLegendItem
- the legend item instance to create the tile