Class AbstractGraphicalCommand

    • Constructor Detail

      • AbstractGraphicalCommand

        public AbstractGraphicalCommand()
    • Method Detail

      • setGraphicalEnvironment

        public void setGraphicalEnvironment​(java.lang.Object env)
        Set a reference to the graphical environment
      • getCommandName

        public abstract java.lang.String getCommandName()
        Get the name of this command
        Returns:
        the name of this command
      • getCommandDescription

        public abstract java.lang.String getCommandDescription()
        Get a description of this command
        Returns:
        a description of this command
      • performCommand

        public abstract <T> T performCommand​(java.lang.Object... commandArgs)
                                      throws WekaException
        Perform the command
        Type Parameters:
        T - the return type
        Parameters:
        commandArgs - arguments to the command
        Returns:
        the result, or null if the command does not return a result
        Throws:
        WekaException - if a problem occurs