|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openscience.jmol.app.jmolpanel.JmolPanel
public class JmolPanel
| Nested Class Summary | |
|---|---|
(package private) class |
JmolPanel.AboutAction
|
private static class |
JmolPanel.ActionChangedListener
|
protected class |
JmolPanel.AppCloser
To shutdown when run as an application. |
(package private) class |
JmolPanel.AtomSetChooserAction
|
(package private) class |
JmolPanel.CloseAction
|
(package private) class |
JmolPanel.ConsoleAction
|
(package private) class |
JmolPanel.CopyImageAction
An Action to copy the current image into the clipboard. |
(package private) class |
JmolPanel.CopyScriptAction
|
(package private) class |
JmolPanel.ExecuteScriptAction
|
(package private) class |
JmolPanel.ExitAction
Really lame implementation of an exit command |
(package private) class |
JmolPanel.ExportAction
|
(package private) class |
JmolPanel.GaussianAction
|
(package private) class |
JmolPanel.NewAction
|
(package private) class |
JmolPanel.NewwinAction
|
(package private) class |
JmolPanel.OpenAction
|
(package private) class |
JmolPanel.OpenMolAction
|
(package private) class |
JmolPanel.OpenPdbAction
|
(package private) class |
JmolPanel.OpenUrlAction
|
(package private) class |
JmolPanel.PasteClipboardAction
|
(package private) class |
JmolPanel.PovrayAction
|
(package private) class |
JmolPanel.PrintAction
|
(package private) class |
JmolPanel.RecentFilesAction
|
(package private) class |
JmolPanel.ResizeAction
|
(package private) class |
JmolPanel.ScriptEditorAction
|
(package private) class |
JmolPanel.ScriptWindowAction
|
(package private) class |
JmolPanel.SurfaceToolAction
|
(package private) class |
JmolPanel.ToWebAction
|
(package private) class |
JmolPanel.UguideAction
|
(package private) class |
JmolPanel.ViewMeasurementTableAction
|
(package private) class |
JmolPanel.WhatsNewAction
|
(package private) class |
JmolPanel.WriteAction
|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| 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 | |
|---|---|
JmolPanel(JmolApp jmolApp,
Splash splash,
JFrame frame,
JmolPanel parent,
int startupWidth,
int startupHeight,
String commandOptions,
Point loc)
|
|
| Method Summary | |
|---|---|
protected void |
addHelpMenuBar(JMenuBar menuBar)
|
protected void |
addMacrosMenuBar(JMenuBar menuBar)
|
protected void |
addNormalMenuBar(JMenuBar menuBar)
|
(package private) String |
createImageStatus(String fileName,
String type,
Object text_or_bytes,
int quality)
Starting with Jmol 11.8.RC5, this is just informational if type == null and null is returned, then it means "Jmol, you handle it" |
protected JMenu |
createMenu(String key)
Create a menu for the app. |
protected JMenuBar |
createMenubar()
Create the menubar for the app. |
protected JMenuItem |
createMenuItem(String cmd)
This is the hook through which all menu items are created. |
(package private) void |
createSurfaceTool()
|
protected Component |
createTool(String key)
Hook through which every toolbar item is created. |
private JToolBar |
createToolbar()
Create the toolbar. |
protected AbstractButton |
createToolbarButton(String key)
Create a button to go inside of the toolbar. |
(package private) void |
createWebExport()
|
private void |
dispose(JFrame f)
|
protected void |
doClose()
|
protected Action |
getAction(String cmd)
Fetch the action that was created for the given command. |
Action[] |
getActions()
|
private void |
getDialogs()
|
private static void |
getJavaConsole(Jmol jmol)
|
static Jmol |
getJmol(JmolApp jmolApp,
JFrame frame)
|
protected JMenuItem |
getMenuItem(String cmd)
Fetch the menu item that was created for the given command. |
(package private) String |
getOpenFileNameFromDialog(String fileName)
|
static File |
getUserDirectory()
Returns a new File referenced by the property 'user.dir', or null if the property is not defined. |
void |
nioClosed(JsonNioService jns)
|
(package private) void |
notifyFileOpen(String fullPathName,
String title)
|
void |
print()
added print command, so that it can be used by RasmolScriptHandler |
private void |
report(String str)
|
(package private) void |
resizeDisplay(int width,
int height)
|
(package private) void |
resizeInnerPanel(String data)
|
private void |
say(String message)
|
(package private) void |
sendNioMessage(int port,
String strInfo)
|
void |
setBannerLabel(String label)
|
void |
showStatus(String message)
|
protected static void |
startJmol(JmolApp jmolApp)
|
protected String[] |
tokenize(String input)
Take the given string and chop it up into a series of strings on whitespace boundries. |
(package private) void |
updateLabels()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static HistoryFile historyFile
public JmolViewer viewer
JmolAdapter modelAdapter
JmolApp jmolApp
StatusBar status
int startupWidth
int startupHeight
JsonNioService serverService
protected String appletContext
protected PropertyChangeSupport pcs
protected DisplayPanel display
protected GaussianDialog gaussianDialog
protected RecentFilesDialog recentFiles
protected AtomSetChooser atomSetChooser
protected JFrame frame
protected SplashInterface splash
protected JFrame consoleframe
protected JsonNioService service
protected GuiMap guimap
protected int qualityJPG
protected int qualityPNG
protected String imageType
private JmolPanel.ExecuteScriptAction executeScriptAction
private PreferencesDialog preferencesDialog
private StatusListener myStatusListener
private SurfaceTool surfaceTool
private Map<String,Action> commands
private Map<String,JMenuItem> menuItems
private JMenuBar menubar
private JToolBar toolbar
private JmolPanel.ExportAction exportAction
private JmolPanel.PovrayAction povrayAction
private JmolPanel.ToWebAction toWebAction
private JmolPanel.WriteAction writeAction
private JmolPanel.PrintAction printAction
private JmolPanel.CopyImageAction copyImageAction
private JmolPanel.CopyScriptAction copyScriptAction
private JmolPanel.SurfaceToolAction surfaceToolAction
private JmolPanel.PasteClipboardAction pasteClipboardAction
private JmolPanel.ViewMeasurementTableAction viewMeasurementTableAction
private static int numWindows
private static KioskFrame kioskFrame
private static BannerFrame bannerFrame
private static final String EDITOR_WINDOW_NAME
private static final String SCRIPT_WINDOW_NAME
private static final String FILE_OPEN_WINDOW_NAME
private static final String WEB_MAKER_WINDOW_NAME
private static final String SURFACETOOL_WINDOW_NAME
private static final Dimension screenSize
private static final String newwinAction
private static final String openAction
private static final String openurlAction
private static final String openpdbAction
private static final String openmolAction
private static final String newAction
private static final String exportActionProperty
private static final String closeAction
private static final String exitAction
private static final String aboutAction
private static final String whatsnewAction
private static final String uguideAction
private static final String printActionProperty
private static final String recentFilesAction
private static final String povrayActionProperty
private static final String writeActionProperty
private static final String editorAction
private static final String consoleAction
private static final String toWebActionProperty
private static final String atomsetchooserAction
private static final String copyImageActionProperty
private static final String copyScriptActionProperty
private static final String surfaceToolActionProperty
private static final String pasteClipboardActionProperty
private static final String gaussianAction
private static final String resizeAction
private Action[] defaultActions
static final String[] imageChoices
static final String[] imageExtensions
WebExport webExport
static final String chemFileProperty
| Constructor Detail |
|---|
public JmolPanel(JmolApp jmolApp,
Splash splash,
JFrame frame,
JmolPanel parent,
int startupWidth,
int startupHeight,
String commandOptions,
Point loc)
| Method Detail |
|---|
private void getDialogs()
protected static void startJmol(JmolApp jmolApp)
private static void getJavaConsole(Jmol jmol)
public static Jmol getJmol(JmolApp jmolApp,
JFrame frame)
public void showStatus(String message)
showStatus in interface SplashInterfaceprivate void report(String str)
private void say(String message)
public Action[] getActions()
protected void doClose()
private void dispose(JFrame f)
protected JMenuItem createMenuItem(String cmd)
cmd -
getMenuItem(java.lang.String)protected JMenuItem getMenuItem(String cmd)
cmd - Name of the action.
protected Action getAction(String cmd)
cmd - Name of the action.
private JToolBar createToolbar()
protected Component createTool(String key)
key -
protected AbstractButton createToolbarButton(String key)
key - The key in the resource file to serve as the basis
of lookups.
protected String[] tokenize(String input)
input - String to chop
protected JMenuBar createMenubar()
protected void addMacrosMenuBar(JMenuBar menuBar)
protected void addNormalMenuBar(JMenuBar menuBar)
protected void addHelpMenuBar(JMenuBar menuBar)
protected JMenu createMenu(String key)
key -
public void print()
String createImageStatus(String fileName,
String type,
Object text_or_bytes,
int quality)
fileName - type - text_or_bytes - quality -
void createWebExport()
void createSurfaceTool()
public static File getUserDirectory()
String getOpenFileNameFromDialog(String fileName)
void notifyFileOpen(String fullPathName,
String title)
void resizeInnerPanel(String data)
void resizeDisplay(int width,
int height)
void updateLabels()
public void nioClosed(JsonNioService jns)
nioClosed in interface JsonNioClientpublic void setBannerLabel(String label)
setBannerLabel in interface JsonNioClient
void sendNioMessage(int port,
String strInfo)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||