public class MapMenuEntryIcons extends java.lang.Object implements MapMenuEntryVisitor
MapMenuEntry
instances.Constructor and Description |
---|
MapMenuEntryIcons(@NotNull MapImageCache<?,?,?> mapImageCache)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@Nullable javax.swing.Icon |
getIcon(@NotNull MapMenuEntry mapMenuEntry)
Returns an
Icon for a MapMenuEntry instance. |
void |
visit(@NotNull MapMenuEntryDir mapMenuEntry)
Called for
MapMenuEntryDir instances. |
void |
visit(@NotNull MapMenuEntryMap mapMenuEntry)
Called for
MapMenuEntryMap instances. |
public MapMenuEntryIcons(@NotNull @NotNull MapImageCache<?,?,?> mapImageCache)
mapImageCache
- the map image cache for looking up icons@Nullable public @Nullable javax.swing.Icon getIcon(@NotNull @NotNull MapMenuEntry mapMenuEntry)
Icon
for a MapMenuEntry
instance.mapMenuEntry
- the instancenull
public void visit(@NotNull @NotNull MapMenuEntryDir mapMenuEntry)
MapMenuEntryVisitor
MapMenuEntryDir
instances.visit
in interface MapMenuEntryVisitor
mapMenuEntry
- the instancepublic void visit(@NotNull @NotNull MapMenuEntryMap mapMenuEntry)
MapMenuEntryVisitor
MapMenuEntryMap
instances.visit
in interface MapMenuEntryVisitor
mapMenuEntry
- the instance