Changeset 12189 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
- Timestamp:
- 2017-05-15T23:42:03+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
r11537 r12189 44 44 public static final String PREF_KEY_RENDERER_CLASS_NAME = "mappaint.renderer-class-name"; 45 45 46 /** 47 * An exception thrown while creating a map renderer 48 */ 46 49 public static class MapRendererFactoryException extends RuntimeException { 47 50 51 /** 52 * Create a new {@link MapRendererFactoryException} 53 * @param message The message 54 * @param cause The cause 55 */ 48 56 public MapRendererFactoryException(String message, Throwable cause) { 49 57 super(message, cause); 50 58 } 51 59 60 /** 61 * Create a new {@link MapRendererFactoryException} 62 * @param message The message 63 */ 52 64 public MapRendererFactoryException(String message) { 53 65 super(message); 54 66 } 55 67 68 /** 69 * Create a new {@link MapRendererFactoryException} 70 * @param cause The cause 71 */ 56 72 public MapRendererFactoryException(Throwable cause) { 57 73 super(cause); … … 59 75 } 60 76 77 /** 78 * A description of a possible renderer for the map 79 */ 61 80 public static class Descriptor { 62 81 private final Class<? extends AbstractMapRenderer> renderer; … … 64 83 private final String description; 65 84 85 /** 86 * Creates a new map renderer description 87 * @param renderer The renderer 88 * @param displayName The display name for the renderer 89 * @param description The longer description that should be displayed to the user. 90 */ 66 91 public Descriptor(Class<? extends AbstractMapRenderer> renderer, String displayName, String description) { 67 92 this.renderer = renderer; … … 70 95 } 71 96 97 /** 98 * Get the class of the renderer 99 * @return The class 100 */ 72 101 public Class<? extends AbstractMapRenderer> getRenderer() { 73 102 return renderer; 74 103 } 75 104 105 /** 106 * Get the display name 107 * @return The name 108 */ 76 109 public String getDisplayName() { 77 110 return displayName; 78 111 } 79 112 113 /** 114 * Get the description 115 * @return The description 116 */ 80 117 public String getDescription() { 81 118 return description;
Note:
See TracChangeset
for help on using the changeset viewer.