Interface StyleSetting
-
- All Known Implementing Classes:
StyleSetting.BooleanStyleSetting
,StyleSetting.ColorStyleSetting
,StyleSetting.PropertyStyleSetting
public interface StyleSetting
Setting to customize a MapPaint style. Can be changed by the user in the right click menu of the mappaint style dialog. Defined in the MapCSS style, e.g.setting::highway_casing { type: boolean; label: tr("Draw highway casing"); default: true; } way[highway][setting("highway_casing")] { casing-width: 2; casing-color: white; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StyleSetting.BooleanStyleSetting
A style setting for boolean value (yes / no).static class
StyleSetting.ColorStyleSetting
A style setting for color values.static class
StyleSetting.LabeledStyleSetting
Superclass of style settings and groups.static class
StyleSetting.PropertyStyleSetting<T>
static class
StyleSetting.StyleSettingGroup
A style setting group.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StyleSettingGui
getStyleSettingGui()
Create a matchingStyleSettingGui
instances for a givenStyleSetting
object.Object
getValue()
gets the value for this setting
-
-
-
Method Detail
-
getStyleSettingGui
default StyleSettingGui getStyleSettingGui()
Create a matchingStyleSettingGui
instances for a givenStyleSetting
object.- Returns:
- matching
StyleSettingGui
- Throws:
UnsupportedOperationException
- when class ofStyleSetting
is not supported
-
-