cage.viewer
Class CaGeJmolViewer

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

public class CaGeJmolViewer
extends java.lang.Object
implements CaGeViewer


Constructor Summary
CaGeJmolViewer()
           
 
Method Summary
 int getDimension()
          Returns the dimension which is needed for this outlet.
 void outputResult(CaGeResult result)
          Does the actual output of a result.
 void setDimension(int d)
          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 setViewerSize(int width, int height)
           
 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

CaGeJmolViewer

public CaGeJmolViewer()
Method Detail

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

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 d)
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:
d - 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

setViewerSize

public void setViewerSize(int width,
                          int height)