Class AbstractEncloseActor

    • Field Detail

      • LOGGER

        protected static Logger LOGGER
        the logger for static methods.
    • Constructor Detail

      • AbstractEncloseActor

        public AbstractEncloseActor()
    • Method Detail

      • canEnclose

        protected abstract boolean canEnclose​(StateContainer state)
        Checks whether this enclose suggestion is available.
        Parameters:
        state - the current state
        Returns:
        true if enclosing is possible
      • enclose

        public abstract JMenuItem enclose​(StateContainer state)
        Returns a menu item that will perform the enclosing if selected.
        Parameters:
        state - the current state
        Returns:
        the list of potential swaps
      • encloseAll

        public static JMenuItem[] encloseAll​(StateContainer state)
        Generates all the possible enclose menu items.
        Parameters:
        state - the current state
        Returns:
        the list of potential swaps