org.jmol.export.image
Class ImageCreator

java.lang.Object
  extended by org.jmol.export.image.ImageCreator
All Implemented Interfaces:
JmolImageCreatorInterface

public class ImageCreator
extends java.lang.Object
implements JmolImageCreatorInterface


Field Summary
private  double privateKey
           
private  Viewer viewer
           
 
Constructor Summary
ImageCreator()
           
ImageCreator(JmolViewer viewer)
           
 
Method Summary
 java.lang.String clipImage(java.lang.String text)
           
 java.lang.Object createImage(java.lang.String fileName, java.lang.String type, java.lang.Object text_or_bytes, int quality)
           
 java.lang.String getClipboardText()
           
static java.lang.String getClipboardTextStatic()
           
 java.lang.Object getImageBytes(java.lang.String type, int quality, java.lang.String fileName, java.lang.Object appendText, java.io.OutputStream os)
           
 void setViewer(JmolViewer viewer, double privateKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewer

private Viewer viewer

privateKey

private double privateKey
Constructor Detail

ImageCreator

public ImageCreator()

ImageCreator

public ImageCreator(JmolViewer viewer)
Method Detail

setViewer

public void setViewer(JmolViewer viewer,
                      double privateKey)
Specified by:
setViewer in interface JmolImageCreatorInterface

clipImage

public java.lang.String clipImage(java.lang.String text)
Specified by:
clipImage in interface JmolImageCreatorInterface

getClipboardText

public java.lang.String getClipboardText()
Specified by:
getClipboardText in interface JmolImageCreatorInterface

getClipboardTextStatic

public static java.lang.String getClipboardTextStatic()

createImage

public java.lang.Object createImage(java.lang.String fileName,
                                    java.lang.String type,
                                    java.lang.Object text_or_bytes,
                                    int quality)
Specified by:
createImage in interface JmolImageCreatorInterface
Parameters:
fileName -
type -
text_or_bytes -
quality -
Returns:
null (canceled) or a message starting with OK or an error message

getImageBytes

public java.lang.Object getImageBytes(java.lang.String type,
                                      int quality,
                                      java.lang.String fileName,
                                      java.lang.Object appendText,
                                      java.io.OutputStream os)
                               throws java.io.IOException
Specified by:
getImageBytes in interface JmolImageCreatorInterface
Throws:
java.io.IOException