Class ActionFactory


  • public class ActionFactory
    extends java.lang.Object
    A factory for creating MapMenuAction instances.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void begin()
      Begins a lookup sequence.
      void end()
      Ends a lookup sequence.
      @NotNull javax.swing.Action getAction​(@NotNull MapMenuEntryMap mapMenuEntryMap)
      Returns an Action for a MapMenuEntryMap instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActionFactory

        public ActionFactory​(@NotNull
                             @NotNull MapViewsManager<?,​?,​?> mapViewsManager,
                             @NotNull
                             @NotNull FileControl<?,​?,​?> fileControl,
                             @NotNull
                             @NotNull MapImageCache<?,​?,​?> mapImageCache)
        Creates a new instance.
        Parameters:
        mapViewsManager - the map views manager for opening map files
        fileControl - the file control for reporting errors
        mapImageCache - the map image cache to query
    • Method Detail

      • begin

        public void begin()
        Begins a lookup sequence.
      • end

        public void end()
        Ends a lookup sequence. All actions not looked up between the preceding call to begin() are deleted.
      • getAction

        @NotNull
        public @NotNull javax.swing.Action getAction​(@NotNull
                                                     @NotNull MapMenuEntryMap mapMenuEntryMap)
        Returns an Action for a MapMenuEntryMap instance.
        Parameters:
        mapMenuEntryMap - the instance
        Returns:
        the action