cage.viewer
Class RasmolViewer

java.lang.Object
  extended by cage.viewer.RasmolViewer
All Implemented Interfaces:
CaGeOutlet, CaGeViewer

public class RasmolViewer
extends java.lang.Object
implements CaGeViewer


Constructor Summary
RasmolViewer()
           
 
Method Summary
 int getDimension()
          Returns the dimension which is needed for this outlet.
static boolean isAvailable(int dimension)
           
 void outputResult(CaGeResult result)
          Does the actual output of a result.
 void setDimension(int dimension)
          Sets the dimension for which this outlet will be used.
 void setGeneratorInfo(GeneratorInfo generatorInfo)
          Sets the generator info provided for this outlet.
 void setResultPanel(ResultPanel resultPanel)
          Sets the ResultPanel connected with this viewer.
 void setVisible(boolean isVisible)
           
 void stop()
          Called when this outlet is no longer needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasmolViewer

public RasmolViewer()
Method Detail

isAvailable

public static boolean isAvailable(int dimension)

setGeneratorInfo

public void setGeneratorInfo(GeneratorInfo generatorInfo)
Description copied from interface: CaGeOutlet
Sets the generator info provided for this outlet. This info can contain hints for the output such as GeneratorInfo.isReembed2DEnabled().

Specified by:
setGeneratorInfo in interface CaGeOutlet
Parameters:
generatorInfo - the generator info provided for this outlet

setDimension

public void setDimension(int dimension)
Description copied from interface: CaGeOutlet
Sets the dimension for which this outlet will be used. This method may throw a RunTimeException when d is an unsupported dimension.

Specified by:
setDimension in interface CaGeOutlet
Parameters:
dimension - The dimension for which this outlet will be used

getDimension

public int getDimension()
Description copied from interface: CaGeOutlet
Returns the dimension which is needed for this outlet.

Specified by:
getDimension in interface CaGeOutlet
Returns:
the dimension which is needed for this outlet.

outputResult

public void outputResult(CaGeResult result)
Description copied from interface: CaGeOutlet
Does the actual output of a result. This method takes the graph, wrapped in a CaGeResult object, as input and performs the method of output specific to this outlet.

Specified by:
outputResult in interface CaGeOutlet
Parameters:
result - a CaGeResult object that needs to be outputted.

stop

public void stop()
Description copied from interface: CaGeOutlet
Called when this outlet is no longer needed. The outlet can then perform any necessary clean up tasks such as closing streams.

Specified by:
stop in interface CaGeOutlet

setResultPanel

public void setResultPanel(ResultPanel resultPanel)
Description copied from interface: CaGeViewer
Sets the ResultPanel connected with this viewer. Some viewer need this to reembed the shown graph.

Specified by:
setResultPanel in interface CaGeViewer

setVisible

public void setVisible(boolean isVisible)
Specified by:
setVisible in interface CaGeViewer