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 classStyleSetting.BooleanStyleSettingA style setting for boolean value (yes / no).static classStyleSetting.ColorStyleSettingA style setting for color values.static classStyleSetting.LabeledStyleSettingSuperclass of style settings and groups.static classStyleSetting.PropertyStyleSetting<T>A setting for a stylestatic classStyleSetting.StyleSettingGroupA style setting group.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StyleSettingGuigetStyleSettingGui()Create a matchingStyleSettingGuiinstances for a givenStyleSettingobject.java.lang.ObjectgetValue()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 matchingStyleSettingGuiinstances for a givenStyleSettingobject.- Returns:
- matching
StyleSettingGui - Throws:
java.lang.UnsupportedOperationException- when class ofStyleSettingis not supported
-
-