Class MapPaintStyles.IconReference
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.MapPaintStyles.IconReference
-
- Enclosing class:
- MapPaintStyles
public static class MapPaintStyles.IconReference extends java.lang.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 java.lang.StringiconNameThe name of the iconStyleSourcesourceThe style source this reference occurred in
-
Constructor Summary
Constructors Constructor Description IconReference(java.lang.String iconName, StyleSource source)Create a newMapPaintStyles.IconReference
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDeprecatedIcon()Determines whether this icon represents a deprecated iconjava.lang.StringtoString()
-
-
-
Field Detail
-
iconName
public final java.lang.String iconName
The name of the icon
-
source
public final StyleSource source
The style source this reference occurred in
-
-
Constructor Detail
-
IconReference
public IconReference(java.lang.String iconName, StyleSource source)
Create a newMapPaintStyles.IconReference- Parameters:
iconName- The icon namesource- The current style source
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isDeprecatedIcon
public boolean isDeprecatedIcon()
Determines whether this icon represents a deprecated icon- Returns:
- whether this icon represents a deprecated icon
- Since:
- 10927
-
-