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>
A setting for a stylestatic 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.java.lang.Object
getValue()
gets the value for this setting
-
-
-
Method Detail
-
getValue
java.lang.Object getValue()
gets the value for this setting- Returns:
- The value the user selected
-
getStyleSettingGui
default StyleSettingGui getStyleSettingGui()
Create a matchingStyleSettingGui
instances for a givenStyleSetting
object.- Returns:
- matching
StyleSettingGui
- Throws:
java.lang.UnsupportedOperationException
- when class ofStyleSetting
is not supported
-
-