All Implemented Interfaces:
Argument

public class ToggleCmd extends Subcommand
A subcommand of UICmd which toggles the visibility of various UI floating panels.

It provides a required argument that specifies which floating panel to toggle.

Aliases: t, tog

Typical Usage:


     ui toggle layers     - Toggles the visibility of the Layer Tree panel.
     gui t history        - Toggles the visibility of the History panel.
     swing toggle debug   - Toggles the visibility of the Debug panel.
     

Author:
Lehlogonolo Poole
See Also:
  • Field Details

  • Constructor Details

    • ToggleCmd

      public ToggleCmd()
  • Method Details

    • run

      public void run(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.