Package org.openstreetmap.josm.gui.mappaint
Drawing system allowing to display and render OSM map data in a user-friendly and customizable way, through map styles.
Two implementations are provided:
Two implementations are provided:
- XML: this was the system used by default JOSM map style for a long time. Kept for compatibility but not maintained anymore
- MapCSS: new default system, more powerful than XML, and easier to use to write map styles. Only system maintained
-
Interface Summary Interface Description MapPaintStyles.MapPaintStylesUpdateListener MapPaintStylesUpdateListener & related code (get informed when the list of MapPaint StyleSources changes)StyleKeys Interface defining string constants (MapCSS property keys).StyleSetting Setting to customize a MapPaint style.StyleSettingGui GUI elements for aStyleSetting
class. -
Class Summary Class Description BooleanStyleSettingGui GUI elements for aStyleSetting.BooleanStyleSetting
class.BooleanStyleSettingGui.BooleanStyleSettingCheckBoxMenuItem Cascade Simple map of properties with dynamic typing.ColorStyleSettingGui A GUI to set a color styleColorStyleSettingGui.ColorIcon DividedScale<T> Splits the range of possible scale values (0 < scale < +Infinity) into multiple subranges, for each scale range it keeps a data object of a certain type T (can be null).ElemStyles Generates a list ofStyleElement
s for a primitive, to be drawn on the map.Environment Environment is a data object to provide access to various "global" parameters.Keyword A MapCSS keyword.MapPaintMenu The View → Map Paint Styles menuMapPaintMenu.MapPaintAction MapPaintStyles This class manages the list of available map paint styles and gives access to the ElemStyles singleton.MapPaintStyles.IconReference IconReference is used to remember the associated style source for each icon URL.MapPaintStyles.MapPaintStylesPreferenceListener MapPaintStyles.TagKeyReference Value holder for a reference to a tag name.MultiCascade Several layers / cascades, e.g.PropertyStyleSettingGui<T> GUI elements for aStyleSetting.PropertyStyleSetting
class.Range A scale interval of the form "lower < x <= upper" where 0 <= lower < upper.RenderingCLI Command line interface for rendering osm data to an image file.RenderingCLI.RenderingArea Data class to hold return values forRenderingCLI.determineRenderingArea(DataSet)
.RenderingHelper Class to render osm data to a file.RenderingHelper.StyleData Data class to save style settings along with the corresponding style URL.StyleCache Caches styles for a single primitive.StyleElementList List ofStyleElement
s, immutable.StyleSetting.BooleanStyleSetting A style setting for boolean value (yes / no).StyleSetting.ColorStyleSetting A style setting for color values.StyleSetting.LabeledStyleSetting Superclass of style settings and groups.StyleSetting.PropertyStyleSetting<T> A setting for a styleStyleSetting.StyleSettingGroup A style setting group.StyleSettingFactory Factory to create matchingStyleSetting
instances.StyleSettingGroupGui GUI elements for aStyleSetting.StyleSettingGroup
class.StyleSource A mappaint style (abstract class). -
Enum Summary Enum Description RenderingCLI.Option -
Exception Summary Exception Description DividedScale.RangeViolatedError This exception type is for debugging #8997 and can later be replaced by AssertionError