org.openscience.jmol.app
Class Jmol

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.openscience.jmol.app.Jmol
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class Jmol
extends javax.swing.JPanel

See Also:
Serialized Form

Nested Class Summary
(package private)  class Jmol.AboutAction
           
private static class Jmol.ActionChangedListener
           
protected  class Jmol.AppCloser
          To shutdown when run as an application.
(package private)  class Jmol.AtomSetChooserAction
           
(package private)  class Jmol.CloseAction
           
(package private) static class Jmol.ConsoleAction
           
(package private)  class Jmol.CopyImageAction
          An Action to copy the current image into the clipboard.
(package private)  class Jmol.CopyScriptAction
           
(package private)  class Jmol.ExecuteScriptAction
           
(package private)  class Jmol.ExitAction
          Really lame implementation of an exit command
(package private)  class Jmol.ExportAction
           
(package private)  class Jmol.MyStatusListener
           
(package private)  class Jmol.NewAction
           
(package private)  class Jmol.NewwinAction
           
(package private)  class Jmol.OpenAction
           
(package private)  class Jmol.OpenUrlAction
           
(package private)  class Jmol.PasteClipboardAction
           
(package private)  class Jmol.PovrayAction
           
(package private)  class Jmol.PrintAction
           
(package private)  class Jmol.RecentFilesAction
           
(package private)  class Jmol.ScriptWindowAction
           
(package private)  class Jmol.ToWebAction
           
(package private)  class Jmol.UguideAction
           
(package private)  class Jmol.ViewMeasurementTableAction
           
(package private)  class Jmol.WhatsNewAction
           
(package private)  class Jmol.WriteAction
           
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private static java.lang.String aboutAction
           
(package private)  java.lang.String appletContext
           
 AtomSetChooser atomSetChooser
           
private static java.lang.String atomsetchooserAction
           
(package private) static java.awt.Point border
           
(package private) static javax.swing.AbstractButton buttonRotate
          Button group for toggle buttons in the toolbar.
static java.lang.String chemFileProperty
           
private static java.lang.String closeAction
           
private  java.util.Hashtable commands
           
private static java.lang.String CONSOLE_WINDOW_NAME
           
(package private) static javax.swing.JFrame consoleframe
           
private  Jmol.CopyImageAction copyImageAction
           
private static java.lang.String copyImageActionProperty
           
private  Jmol.CopyScriptAction copyScriptAction
           
private static java.lang.String copyScriptActionProperty
           
private  javax.swing.Action[] defaultActions
          Actions defined by the Jmol class
(package private)  DisplayPanel display
           
private  Jmol.ExecuteScriptAction executeScriptAction
           
private static java.lang.String exitAction
           
private  Jmol.ExportAction exportAction
           
private static java.lang.String exportActionProperty
           
private static java.lang.String FILE_OPEN_WINDOW_NAME
           
protected  javax.swing.JFrame frame
           
private  GuiMap guimap
           
(package private) static java.lang.Boolean haveBorder
           
(package private) static java.lang.Boolean haveConsole
           
(package private) static java.lang.Boolean haveDisplay
           
(package private) static HistoryFile historyFile
           
(package private) static java.lang.String[] imageChoices
           
(package private) static java.lang.String[] imageExtensions
           
(package private)  java.lang.String imageType
           
(package private) static java.lang.Boolean isSilent
           
private static java.lang.String JMOL_WINDOW_NAME
           
(package private)  JmolPopup jmolpopup
           
(package private)  java.lang.String language
           
(package private)  MeasurementTable measurementTable
           
private  javax.swing.JMenuBar menubar
           
(package private) static java.lang.String menuFile
           
private  java.util.Hashtable menuItems
           
(package private) static java.lang.String menuStructure
           
(package private)  JmolAdapter modelAdapter
           
private static java.lang.String newAction
           
private static java.lang.String newwinAction
           
private static int numWindows
           
private static java.lang.String openAction
           
private static java.lang.String openurlAction
           
private  Jmol.PasteClipboardAction pasteClipboardAction
           
private static java.lang.String pasteClipboardActionProperty
           
(package private)  java.beans.PropertyChangeSupport pcs
           
private  Jmol.PovrayAction povrayAction
           
private static java.lang.String povrayActionProperty
           
private  PreferencesDialog preferencesDialog
           
private  Jmol.PrintAction printAction
           
private static java.lang.String printActionProperty
           
(package private)  int qualityJPG
           
(package private)  int qualityPNG
           
(package private)  RecentFilesDialog recentFiles
           
private static java.lang.String recentFilesAction
           
private static java.awt.Dimension screenSize
           
private static java.lang.String SCRIPT_WINDOW_NAME
           
private static java.lang.String scriptAction
           
 ScriptWindow scriptWindow
           
(package private)  Splash splash
           
(package private)  int startupHeight
           
(package private)  int startupWidth
           
(package private)  StatusBar status
           
private  javax.swing.JToolBar toolbar
           
(package private) static javax.swing.ButtonGroup toolbarButtonGroup
           
private  Jmol.ToWebAction toWebAction
           
private static java.lang.String toWebActionProperty
           
private static java.lang.String uguideAction
           
(package private) static java.io.File UserPropsFile
           
 JmolViewer viewer
          The data model.
private  Jmol.ViewMeasurementTableAction viewMeasurementTableAction
           
private static java.lang.String WEB_MAKER_WINDOW_NAME
           
(package private)  WebExport webExport
           
private static java.lang.String whatsnewAction
           
private  Jmol.WriteAction writeAction
           
private static java.lang.String writeActionProperty
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Jmol(Splash splash, javax.swing.JFrame frame, Jmol parent, int startupWidth, int startupHeight, java.lang.String commandOptions)
           
Jmol(Splash splash, javax.swing.JFrame frame, Jmol parent, int startupWidth, int startupHeight, java.lang.String commandOptions, java.awt.Point loc)
           
 
Method Summary
protected  void addHelpMenuBar(javax.swing.JMenuBar menuBar)
           
protected  void addMacrosMenuBar(javax.swing.JMenuBar menuBar)
           
protected  void addNormalMenuBar(javax.swing.JMenuBar menuBar)
           
(package private)  java.lang.String createImageStatus(java.lang.String fileName, java.lang.String type, java.lang.Object text_or_bytes, int quality)
           
protected  javax.swing.JMenu createMenu(java.lang.String key)
          Create a menu for the app.
protected  javax.swing.JMenuBar createMenubar()
          Create the menubar for the app.
protected  javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
          This is the hook through which all menu items are created.
protected  java.awt.Component createStatusBar()
           
protected  java.awt.Component createTool(java.lang.String key)
          Hook through which every toolbar item is created.
private  java.awt.Component createToolbar()
          Create the toolbar.
protected  javax.swing.AbstractButton createToolbarButton(java.lang.String key)
          Create a button to go inside of the toolbar.
private  void dispose(javax.swing.JFrame f)
           
(package private)  void doClose()
           
protected  javax.swing.Action getAction(java.lang.String cmd)
          Fetch the action that was created for the given command.
 javax.swing.Action[] getActions()
           
protected  java.awt.Frame getFrame()
           
static HistoryFile getHistoryFile()
           
static Jmol getJmol(javax.swing.JFrame frame, int startupWidth, int startupHeight, java.lang.String commandOptions)
           
protected  javax.swing.JMenuItem getMenuItem(java.lang.String cmd)
          Fetch the menu item that was created for the given command.
(package private)  java.lang.String getOpenFileNameFromDialog(java.lang.String fileName)
           
static java.io.File getUserDirectory()
          Returns a new File referenced by the property 'user.dir', or null if the property is not defined.
static void main(java.lang.String[] args)
           
 void print()
          added print command, so that it can be used by RasmolScriptHandler
(package private) static void report(java.lang.String str)
           
private  void say(java.lang.String message)
           
static void setRotateButton()
           
protected  void setupNewFrame(java.lang.String state)
           
protected  java.lang.String[] tokenize(java.lang.String input)
          Take the given string and chop it up into a series of strings on whitespace boundries.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

viewer

public JmolViewer viewer
The data model.


display

DisplayPanel display

status

StatusBar status

preferencesDialog

private PreferencesDialog preferencesDialog

measurementTable

MeasurementTable measurementTable

recentFiles

RecentFilesDialog recentFiles

scriptWindow

public ScriptWindow scriptWindow

atomSetChooser

public AtomSetChooser atomSetChooser

executeScriptAction

private Jmol.ExecuteScriptAction executeScriptAction

frame

protected javax.swing.JFrame frame

jmolpopup

JmolPopup jmolpopup

language

java.lang.String language

menuStructure

static java.lang.String menuStructure

menuFile

static java.lang.String menuFile

guimap

private GuiMap guimap

numWindows

private static int numWindows

screenSize

private static java.awt.Dimension screenSize

startupWidth

int startupWidth

startupHeight

int startupHeight

pcs

java.beans.PropertyChangeSupport pcs

JMOL_WINDOW_NAME

private static final java.lang.String JMOL_WINDOW_NAME
See Also:
Constant Field Values

CONSOLE_WINDOW_NAME

private static final java.lang.String CONSOLE_WINDOW_NAME
See Also:
Constant Field Values

SCRIPT_WINDOW_NAME

private static final java.lang.String SCRIPT_WINDOW_NAME
See Also:
Constant Field Values

FILE_OPEN_WINDOW_NAME

private static final java.lang.String FILE_OPEN_WINDOW_NAME
See Also:
Constant Field Values

WEB_MAKER_WINDOW_NAME

private static final java.lang.String WEB_MAKER_WINDOW_NAME
See Also:
Constant Field Values

border

static java.awt.Point border

haveBorder

static java.lang.Boolean haveBorder

buttonRotate

static javax.swing.AbstractButton buttonRotate
Button group for toggle buttons in the toolbar.


toolbarButtonGroup

static javax.swing.ButtonGroup toolbarButtonGroup

UserPropsFile

static java.io.File UserPropsFile

historyFile

static HistoryFile historyFile

splash

Splash splash

consoleframe

static javax.swing.JFrame consoleframe

isSilent

static java.lang.Boolean isSilent

haveConsole

static java.lang.Boolean haveConsole

haveDisplay

static java.lang.Boolean haveDisplay

modelAdapter

JmolAdapter modelAdapter

appletContext

java.lang.String appletContext

commands

private java.util.Hashtable commands

menuItems

private java.util.Hashtable menuItems

menubar

private javax.swing.JMenuBar menubar

toolbar

private javax.swing.JToolBar toolbar

newwinAction

private static final java.lang.String newwinAction
See Also:
Constant Field Values

openAction

private static final java.lang.String openAction
See Also:
Constant Field Values

openurlAction

private static final java.lang.String openurlAction
See Also:
Constant Field Values

newAction

private static final java.lang.String newAction
See Also:
Constant Field Values

exportActionProperty

private static final java.lang.String exportActionProperty
See Also:
Constant Field Values

closeAction

private static final java.lang.String closeAction
See Also:
Constant Field Values

exitAction

private static final java.lang.String exitAction
See Also:
Constant Field Values

aboutAction

private static final java.lang.String aboutAction
See Also:
Constant Field Values

whatsnewAction

private static final java.lang.String whatsnewAction
See Also:
Constant Field Values

uguideAction

private static final java.lang.String uguideAction
See Also:
Constant Field Values

printActionProperty

private static final java.lang.String printActionProperty
See Also:
Constant Field Values

recentFilesAction

private static final java.lang.String recentFilesAction
See Also:
Constant Field Values

povrayActionProperty

private static final java.lang.String povrayActionProperty
See Also:
Constant Field Values

writeActionProperty

private static final java.lang.String writeActionProperty
See Also:
Constant Field Values

scriptAction

private static final java.lang.String scriptAction
See Also:
Constant Field Values

toWebActionProperty

private static final java.lang.String toWebActionProperty
See Also:
Constant Field Values

atomsetchooserAction

private static final java.lang.String atomsetchooserAction
See Also:
Constant Field Values

copyImageActionProperty

private static final java.lang.String copyImageActionProperty
See Also:
Constant Field Values

copyScriptActionProperty

private static final java.lang.String copyScriptActionProperty
See Also:
Constant Field Values

pasteClipboardActionProperty

private static final java.lang.String pasteClipboardActionProperty
See Also:
Constant Field Values

exportAction

private Jmol.ExportAction exportAction

povrayAction

private Jmol.PovrayAction povrayAction

toWebAction

private Jmol.ToWebAction toWebAction

writeAction

private Jmol.WriteAction writeAction

printAction

private Jmol.PrintAction printAction

copyImageAction

private Jmol.CopyImageAction copyImageAction

copyScriptAction

private Jmol.CopyScriptAction copyScriptAction

pasteClipboardAction

private Jmol.PasteClipboardAction pasteClipboardAction

viewMeasurementTableAction

private Jmol.ViewMeasurementTableAction viewMeasurementTableAction

qualityJPG

int qualityJPG

qualityPNG

int qualityPNG

imageType

java.lang.String imageType

defaultActions

private javax.swing.Action[] defaultActions
Actions defined by the Jmol class


imageChoices

static final java.lang.String[] imageChoices

imageExtensions

static final java.lang.String[] imageExtensions

webExport

WebExport webExport

chemFileProperty

public static final java.lang.String chemFileProperty
See Also:
Constant Field Values
Constructor Detail

Jmol

Jmol(Splash splash,
     javax.swing.JFrame frame,
     Jmol parent,
     int startupWidth,
     int startupHeight,
     java.lang.String commandOptions)

Jmol

Jmol(Splash splash,
     javax.swing.JFrame frame,
     Jmol parent,
     int startupWidth,
     int startupHeight,
     java.lang.String commandOptions,
     java.awt.Point loc)
Method Detail

getHistoryFile

public static HistoryFile getHistoryFile()

report

static void report(java.lang.String str)

getJmol

public static Jmol getJmol(javax.swing.JFrame frame,
                           int startupWidth,
                           int startupHeight,
                           java.lang.String commandOptions)

main

public static void main(java.lang.String[] args)

say

private void say(java.lang.String message)

getActions

public javax.swing.Action[] getActions()
Returns:
A list of Actions that is understood by the upper level application

doClose

void doClose()

dispose

private void dispose(javax.swing.JFrame f)

setupNewFrame

protected void setupNewFrame(java.lang.String state)

getFrame

protected java.awt.Frame getFrame()
Returns:
The hosting frame, for the file-chooser dialog.

createMenuItem

protected javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
This is the hook through which all menu items are created. It registers the result with the menuitem hashtable so that it can be fetched with getMenuItem().

Parameters:
cmd -
Returns:
Menu item created
See Also:
getMenuItem(java.lang.String)

getMenuItem

protected javax.swing.JMenuItem getMenuItem(java.lang.String cmd)
Fetch the menu item that was created for the given command.

Parameters:
cmd - Name of the action.
Returns:
item created for the given command or null if one wasn't created.

getAction

protected javax.swing.Action getAction(java.lang.String cmd)
Fetch the action that was created for the given command.

Parameters:
cmd - Name of the action.
Returns:
The action

createToolbar

private java.awt.Component createToolbar()
Create the toolbar. By default this reads the resource file for the definition of the toolbars.

Returns:
The toolbar

createTool

protected java.awt.Component createTool(java.lang.String key)
Hook through which every toolbar item is created.

Parameters:
key -
Returns:
Toolbar item

createToolbarButton

protected javax.swing.AbstractButton createToolbarButton(java.lang.String key)
Create a button to go inside of the toolbar. By default this will load an image resource. The image filename is relative to the classpath (including the '.' directory if its a part of the classpath), and may either be in a JAR file or a separate file.

Parameters:
key - The key in the resource file to serve as the basis of lookups.
Returns:
Button

setRotateButton

public static void setRotateButton()

tokenize

protected java.lang.String[] tokenize(java.lang.String input)
Take the given string and chop it up into a series of strings on whitespace boundries. This is useful for trying to get an array of strings out of the resource file.

Parameters:
input - String to chop
Returns:
Strings chopped on whitespace boundries

createStatusBar

protected java.awt.Component createStatusBar()

createMenubar

protected javax.swing.JMenuBar createMenubar()
Create the menubar for the app. By default this pulls the definition of the menu from the associated resource file.

Returns:
Menubar

addMacrosMenuBar

protected void addMacrosMenuBar(javax.swing.JMenuBar menuBar)

addNormalMenuBar

protected void addNormalMenuBar(javax.swing.JMenuBar menuBar)

addHelpMenuBar

protected void addHelpMenuBar(javax.swing.JMenuBar menuBar)

createMenu

protected javax.swing.JMenu createMenu(java.lang.String key)
Create a menu for the app. By default this pulls the definition of the menu from the associated resource file.

Parameters:
key -
Returns:
Menu created

print

public void print()
added print command, so that it can be used by RasmolScriptHandler


createImageStatus

java.lang.String createImageStatus(java.lang.String fileName,
                                   java.lang.String type,
                                   java.lang.Object text_or_bytes,
                                   int quality)

getUserDirectory

public static java.io.File getUserDirectory()
Returns a new File referenced by the property 'user.dir', or null if the property is not defined.

Returns:
a File to the user directory

getOpenFileNameFromDialog

java.lang.String getOpenFileNameFromDialog(java.lang.String fileName)