Class MapRendererFactory.Descriptor
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.visitor.paint.MapRendererFactory.Descriptor
-
- Enclosing class:
- MapRendererFactory
public static class MapRendererFactory.Descriptor extends Object
A description of a possible renderer for the map
-
-
Field Summary
Fields Modifier and Type Field Description private String
description
private String
displayName
private Class<? extends AbstractMapRenderer>
renderer
-
Constructor Summary
Constructors Constructor Description Descriptor(Class<? extends AbstractMapRenderer> renderer, String displayName, String description)
Creates a new map renderer description
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Get the descriptionString
getDisplayName()
Get the display nameClass<? extends AbstractMapRenderer>
getRenderer()
Get the class of the renderer
-
-
-
Field Detail
-
renderer
private final Class<? extends AbstractMapRenderer> renderer
-
displayName
private final String displayName
-
description
private final String description
-
-
Constructor Detail
-
Descriptor
public Descriptor(Class<? extends AbstractMapRenderer> renderer, String displayName, String description)
Creates a new map renderer description- Parameters:
renderer
- The rendererdisplayName
- The display name for the rendererdescription
- The longer description that should be displayed to the user.
-
-
Method Detail
-
getRenderer
public Class<? extends AbstractMapRenderer> getRenderer()
Get the class of the renderer- Returns:
- The class
-
getDisplayName
public String getDisplayName()
Get the display name- Returns:
- The name
-
getDescription
public String getDescription()
Get the description- Returns:
- The description
-
-