Package | Description |
---|---|
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: XML: this was the system used by default JOSM map style for a long time. |
Modifier and Type | Field and Description |
---|---|
static StyleCache.StyleList |
NodeElemStyle.DEFAULT_NODE_STYLELIST |
static StyleCache.StyleList |
NodeElemStyle.DEFAULT_NODE_STYLELIST_TEXT |
Modifier and Type | Field and Description |
---|---|
private java.util.List<StyleCache.StyleList> |
StyleCache.data |
Modifier and Type | Method and Description |
---|---|
StyleCache.StyleList |
StyleCache.get(double scale)
looks up styles for a certain scale value
|
StyleCache.StyleList |
ElemStyles.get(OsmPrimitive osm,
double scale,
NavigatableComponent nc)
Create the list of styles for one primitive.
|
Modifier and Type | Method and Description |
---|---|
Pair<StyleCache.StyleList,Range> |
ElemStyles.generateStyles(OsmPrimitive osm,
double scale,
boolean pretendWayIsClosed)
Create the list of styles and its valid scale range for one primitive.
|
private Pair<StyleCache.StyleList,Range> |
ElemStyles.getImpl(OsmPrimitive osm,
double scale,
NavigatableComponent nc)
Create the list of styles and its valid scale range for one primitive.
|
Pair<StyleCache.StyleList,Range> |
ElemStyles.getStyleCacheWithRange(OsmPrimitive osm,
double scale,
NavigatableComponent nc)
Create the list of styles and its valid scale range for one primitive.
|
Pair<StyleCache.StyleList,Range> |
StyleCache.getWithRange(double scale)
looks up styles for a certain scale value and additionally returns
the scale range for the returned styles
|
Modifier and Type | Method and Description |
---|---|
StyleCache |
StyleCache.put(StyleCache.StyleList sl,
double lower,
double upper)
add a new styles to the cache.
|
StyleCache |
StyleCache.put(StyleCache.StyleList sl,
Range r) |
private void |
StyleCache.putImpl(StyleCache.StyleList sl,
double lower,
double upper)
ASCII-art explanation:
data[i]
--|-------|---------|--
bd[i-1] bd[i] bd[i+1]
(--------]
lower upper
|
Constructor and Description |
---|
StyleList(StyleCache.StyleList sl,
ElemStyle s) |