Class MapPaintStyles.IconReference
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.MapPaintStyles.IconReference
-
- Enclosing class:
- MapPaintStyles
public static class MapPaintStyles.IconReference extends Object
IconReference is used to remember the associated style source for each icon URL. This is necessary because image URLs can be paths relative to the source file and we have cascading of properties from different source files.
-
-
Field Summary
Fields Modifier and Type Field Description String
iconName
The name of the iconStyleSource
source
The style source this reference occurred in
-
Constructor Summary
Constructors Constructor Description IconReference(String iconName, StyleSource source)
Create a newMapPaintStyles.IconReference
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDeprecatedIcon()
Determines whether this icon represents a deprecated iconString
toString()
-
-
-
Field Detail
-
source
public final StyleSource source
The style source this reference occurred in
-
-
Constructor Detail
-
IconReference
public IconReference(String iconName, StyleSource source)
Create a newMapPaintStyles.IconReference
- Parameters:
iconName
- The icon namesource
- The current style source
-
-
Method Detail
-
isDeprecatedIcon
public boolean isDeprecatedIcon()
Determines whether this icon represents a deprecated icon- Returns:
- whether this icon represents a deprecated icon
- Since:
- 10927
-
-