ConForM.CoopnTools.Tool
Class Tool

java.lang.Object
  |
  +--ConForM.CoopnTools.Tool.Tool
All Implemented Interfaces:
CoopnTool, java.lang.Runnable

public class Tool
extends java.lang.Object
implements CoopnTool

CoopnTool. This is the main tool of CoopnTools, allowing them to be started and coordinated, and having its own output display. Like other tools, this tool is a "CoopnTool". However, there is no real reason to dynamically start a new Tool, except may be to hav another display panel.

See Also:
CoopnTool

Field Summary
static java.lang.String TOOL
          CoopnTool tool name.
static java.lang.String VERSION
          CoopnTool version.
 
Constructor Summary
protected Tool(CoopnEnv env, CoopnEnvMgr envMgr)
          Simple constructor.
 
Method Summary
 CoopnEnv getEnv()
          Get the environment.
static Tool getTool(CoopnEnv env)
          Creates a new CoopnTool, based on an existing environment, or null if the tool cannot be created.
static void main(java.lang.String[] args)
          Main program.
 void run()
          Implementation of the package tool.
 void show()
          Show the tool's window, if the tool has its own GUI.
 void showErrorPanel()
          Show the tool's error display, if the tool has its own GUI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
CoopnTool version.

TOOL

public static final java.lang.String TOOL
CoopnTool tool name.
Constructor Detail

Tool

protected Tool(CoopnEnv env,
               CoopnEnvMgr envMgr)
Simple constructor.
Parameters:
env - the simple CoopnTools environment
Method Detail

getTool

public static Tool getTool(CoopnEnv env)
Creates a new CoopnTool, based on an existing environment, or null if the tool cannot be created.

getEnv

public CoopnEnv getEnv()
Get the environment.
Specified by:
getEnv in interface CoopnTool

show

public void show()
Show the tool's window, if the tool has its own GUI. Do nothing else.
Specified by:
show in interface CoopnTool

showErrorPanel

public void showErrorPanel()
Show the tool's error display, if the tool has its own GUI. Do nothing else.

run

public void run()
Implementation of the package tool.
Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)
Main program. This method creates a new environment from the command line, creates a new tool according to the environment, and call its run method.