public class Theme extends Configurable<Theme>
Drilldown.setDrillUpButtonTheme(Theme),
MapNavigation.ButtonOptions.setTheme(Theme).)
The object takes SVG attributes like fill, stroke, stroke-width or r, the border radius. The theme also supports
style, a collection of CSS properties for the text.| Constructor and Description |
|---|
Theme() |
| Modifier and Type | Method and Description |
|---|---|
Theme |
setFill(String fill)
Convenience method for setting the 'fill' option of the theme.
|
Theme |
setPadding(Number padding)
Convenience method for setting the 'padding' option of the theme.
|
Theme |
setR(Number r)
Convenience method for setting the 'r' option of the theme.
|
Theme |
setStroke(String stroke)
Convenience method for setting the 'stroke' option of the theme.
|
Theme |
setStrokeWidth(Number strokeWidth)
Convenience method for setting the 'strokeWidth' option of the theme.
|
Theme |
setStyle(Style style)
Convenience method for setting the 'style' option of the theme.
|
getOptions, setOptionpublic Theme setStrokeWidth(Number strokeWidth)
theme.setOption("strokeWidth", );
The stroke-width property defines the thickness of a line, text or outline of an element.strokeWidth - The width of the outline on the current object.Theme instance for convenient method chaining.public Theme setStroke(String stroke)
theme.setOption("stroke", "#0000FF");
The stroke property defines the color of a line, text or outline of an element.stroke - The color of the outline on the current object.Theme instance for convenient method chaining.public Theme setFill(String fill)
theme.setOption("fill", "#FF0000");
The fill property describes the color of the inside of an element.fill - The color inside the objectTheme instance for convenient method chaining.public Theme setR(Number r)
theme.setOption("r", 10);
For a circle, this attribute defines the radius of the element.
A value of zero disables rendering of the circle.r - The radius of the element.Theme instance for convenient method chaining.public Theme setPadding(Number padding)
theme.setOption("padding", 15);
The padding CSS property sets the required padding space on all sides of an element.padding - The padding space for the elementTheme instance for convenient method chaining.Copyright © 2015. All Rights Reserved.