Class AbstractOverlayLayerAction

  • Direct Known Subclasses:
    Copy, Invert, Rename

    public abstract class AbstractOverlayLayerAction
    extends Object
    Ancestor for OverlayLayer actions.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • AbstractOverlayLayerAction

        public AbstractOverlayLayerAction()
    • Method Detail

      • getName

        public abstract String getName()
        The name to display in the menu.
        Returns:
        the name
      • getIcon

        public ImageIcon getIcon()
        Returns the icon to use in the menu.
        Returns:
        the icon
      • getIconName

        public abstract String getIconName()
        Returns the name of the icon to use.
        Returns:
        the name, null for empty icon
      • performAction

        public abstract void performAction​(OverlayLayer origin)
        Performs the action.
        Parameters:
        origin - the origin of the action