Class DisplayPanelManagerEnclosure

    • Constructor Detail

      • DisplayPanelManagerEnclosure

        public DisplayPanelManagerEnclosure()
    • Method Detail

      • canEnclose

        protected boolean canEnclose​(StateContainer state)
        Checks whether this enclose suggestion is available.
        Specified by:
        canEnclose in class AbstractEncloseActor
        Parameters:
        state - the current state
        Returns:
        true if enclosing is possible
      • encloseInDisplayPanelManager

        protected void encloseInDisplayPanelManager​(StateContainer state)
        Encloses the specified actor in a DisplayPanelManager actor.
        Parameters:
        state - the current state
      • enclose

        public JMenuItem enclose​(StateContainer state)
        Returns a menu item that will perform the enclosing if selected.
        Specified by:
        enclose in class AbstractEncloseActor
        Parameters:
        state - the current state
        Returns:
        the list of potential swaps