Class StyleSettingFactory
java.lang.Object
org.openstreetmap.josm.gui.mappaint.StyleSettingFactory
Factory to create matching
StyleSetting instances.- Since:
- 15731
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StyleSettingcreate(Cascade c, StyleSource parentStyle, String key) Creates a newStyleSettingbased on the specified type byc.private static <T> StyleSettingforLabelAndDefault(Cascade c, Class<T> type, BiFunction<String, T, StyleSetting> function)
-
Constructor Details
-
StyleSettingFactory
private StyleSettingFactory()
-
-
Method Details
-
create
Creates a newStyleSettingbased on the specified type byc. The type must be supported byCascade.convertTo(java.lang.Object, java.lang.Class<T>)as well asAbstractProperty.- Parameters:
c- cascadeparentStyle- parent style sourcekey- setting identifier- Returns:
- newly created
StyleSetting
-
forLabelAndDefault
private static <T> StyleSetting forLabelAndDefault(Cascade c, Class<T> type, BiFunction<String, T, StyleSetting> function)
-