@PublicAPI public abstract class MarvinPane extends javax.swing.JRootPane implements java.beans.PropertyChangeListener, java.awt.event.ComponentListener
javax.swing.JRootPane.AccessibleJRootPane, javax.swing.JRootPane.RootLayout
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected chemaxon.marvin.common.swing.MolPanel |
molPanel
Underlying panel.
|
protected java.lang.String |
params
Parameter string.
|
protected static java.awt.Container |
topLevelContainer
The top level container of the pane
|
static java.lang.String |
VERSION
Marvin version.
|
COLOR_CHOOSER_DIALOG, contentPane, defaultButton, defaultPressAction, defaultReleaseAction, ERROR_DIALOG, FILE_CHOOSER_DIALOG, FRAME, glassPane, INFORMATION_DIALOG, layeredPane, menuBar, NONE, PLAIN_DIALOG, QUESTION_DIALOG, WARNING_DIALOG
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier | Constructor and Description |
---|---|
protected |
MarvinPane()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Adds an action listener.
|
javax.swing.JMenu |
addHelpMenu(java.awt.Container m)
Adds the help menu to a parent menu.
|
void |
addMenuBarChangeListener(chemaxon.marvin.common.swing.MenuBarChangeListener l)
Adds a menubar change listener.
|
javax.swing.JMenu |
addToolsMenu(java.awt.Container m)
Deprecated.
Not used.
|
boolean |
arePopupMenusEnabled()
Are popup menus enabled?
|
void |
beginHourglass()
Changes the cursor to hourglass at the beginning of a long operation.
|
void |
closeWindows()
Closes all windows opened by this MarvinPane.
|
void |
componentHidden(java.awt.event.ComponentEvent ev)
Hides windows if the parent frame is hidden.
|
void |
componentMoved(java.awt.event.ComponentEvent ev)
Does nothing.
|
void |
componentResized(java.awt.event.ComponentEvent ev)
Does nothing.
|
void |
componentShown(java.awt.event.ComponentEvent ev)
Shows windows if the parent frame is hidden.
|
static javax.swing.JMenu |
createMenu(java.util.ResourceBundle rc,
java.lang.String key)
Deprecated.
as of Marvin 3.3.1, replaced by SwingUtil.createMenu
|
abstract void |
doPaste()
Invokes Paste actions.
|
void |
endHourglass()
Changes the hourglass cursor back to normal at the end of a long operation.
|
void |
exit()
Closes all windows opened by this MarvinPane and saves user initialization file.
|
int |
getAtomNumberingType()
Determines the atom numbering.
|
java.awt.Color |
getAtomSetColor(int i)
Gets the color of an atom set.
|
double |
getAtomsize()
Gets the atom size.
|
double |
getBallRadius()
Gets the ball radius in units of covalent radius.
|
double |
getBoldBondWidth()
Gets the C-C bold bond width in pt units.
|
double |
getBondLength()
Gets the C-C bond length in pt units.
|
double |
getBondSpacing()
Gets the bond spacing.
|
double |
getBondWidth()
Deprecated.
as of Marvin 4.1, replaced by
getBondSpacing() |
int |
getChiralitySupport()
Gets chirality support level.
|
int |
getCleanDim()
Gets the number of space dimensions for cleaning.
|
java.lang.String |
getColorScheme()
Gets the color scheme.
|
chemaxon.marvin.common.swing.action.CommonActions |
getCommonActions()
Deprecated.
|
int |
getDebug()
Gets the debugging level.
|
java.io.File |
getDirectory()
Sets the working directory.
|
int |
getDispopts()
Gets display options.
|
java.lang.String |
getDownWedge()
Gets the wedge bond display convention.
|
java.io.File |
getFile()
Gets the current molecule file.
|
java.lang.String |
getFormat()
Gets the default molecule file format.
|
java.lang.String |
getImplicitH()
Query the display method of implicit hydrogens.
|
long |
getInvisibleSets()
Gets the visibility of the specified atom sets.
|
boolean |
getLabels()
Deprecated.
use isAtomSymbolsVisible() instead
|
boolean |
getLonePairsVisible()
Tests whether lone pairs are visible.
|
double |
getMarginSize()
Gets the documents margin size.
|
java.awt.Color |
getMolbg()
Gets the molecule background color.
|
chemaxon.marvin.common.swing.MolPanel |
getMolPanel()
Returns the underlying panel.
|
java.lang.String |
getParameter(java.lang.String key)
Gets a parameter.
|
java.lang.String |
getParams()
Gets the parameter string.
|
boolean |
getPopupMenusEnabled()
Are popup menus enabled?
|
boolean |
getReadGlobalGUIProperties()
Deprecated.
since Marvin 5.1 when this and the
getSaveGlobalGUIProperties() function
have been merged. |
java.lang.String |
getRendering()
Gets the rendering style.
|
static java.util.ResourceBundle |
getResourceBundle(java.lang.String name)
Utility method to get a resource bundle.
|
boolean |
getSaveGlobalGUIProperties()
Checks whether we have to read GUI properties from a .MRV file
|
java.awt.Color |
getSetColor(int i)
Deprecated.
as of Marvin 3.3, replaced by getAtomSetColor
|
double |
getStickThickness()
Gets the stick thickness.
|
java.awt.Container |
getTopLevelContainer() |
UserSettings |
getUserSettings()
Gets the user settings object.
|
double |
getWireThickness()
Gets the line thickness for wireframe mode.
|
protected void |
init(chemaxon.marvin.common.swing.MolPanel m)
Initializes the content pane.
|
protected void |
init(chemaxon.marvin.common.swing.MolPanel m,
boolean start)
Initializes the content pane.
|
static void |
initAction(javax.swing.Action action,
java.util.ResourceBundle rc,
java.lang.String key,
javax.swing.KeyStroke accel)
Deprecated.
as of Marvin 3.3.1, replaced by SwingUtil.initAction
|
static void |
initButton(javax.swing.AbstractButton b,
java.util.ResourceBundle rc,
java.lang.String key)
Deprecated.
as of Marvin 3.3.1, replaced by SwingUtil.initButton
|
boolean |
isAtomMappingVisible()
Determines the visibility of the atom mapping.
|
boolean |
isAtomNumbersVisible()
Deprecated.
in 6.2.0. Use getAtomNumberingType() instead.
|
boolean |
isAtomSymbolsVisible()
Tests the visibility of the atom symbols in 3D.
|
boolean |
isBondLengthVisible()
Gets the bond length display option.
|
boolean |
isExitCanceled()
Check whether exiting is allowed or not.
|
boolean |
isExperimentalEnabled()
Tests whether experimental features are enabled.
|
boolean |
isEzVisible()
Gets the E/Z display option.
|
boolean |
isGrinv()
Deprecated.
as of Marvin 3.5, use isGrinvVisible() instead
|
boolean |
isGrinvVisible()
Gets the visibility of the graph invariants.
|
boolean |
isMPVisible()
Gets the M/P display option.
|
boolean |
isPrintEnabled()
Determines if the File->Print menu item is enabled or not.
|
boolean |
isRgroupsVisible()
Determines the visibility of R-group defintions.
|
boolean |
isSaveIniEnabled()
Automatically saves user settings to an initialization file.
|
boolean |
isSetColoringEnabled()
Is the atom/bond set coloring enabled?
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
Handles "ancestor" events or sets parameters if a bean property is changed.
|
protected static MDocument |
readDoc(java.io.ObjectInput in) |
void |
readExternal(java.io.ObjectInput in)
Restores object state.
|
protected static Molecule |
readMol(java.io.ObjectInput in) |
protected static void |
readResources(java.lang.Class<?> cl,
java.lang.String fname)
Reads resources from the specified file.
|
void |
removeActionListener(java.awt.event.ActionListener l)
Removes an action listener.
|
void |
setAtomMappingVisible(boolean v)
Shows or hides the atom mapping.
|
void |
setAtomNumberingType(int type)
Sets the atom numbering.
|
void |
setAtomNumbersVisible(boolean v)
Deprecated.
in 6.2.0. Use setAtomNumberingType() instead
|
void |
setAtomSetColor(int i,
java.awt.Color color)
Sets the color of an atom set.
|
void |
setAtomsize(double r)
Sets the atom size.
|
void |
setAtomSymbolsVisible(boolean v)
Shows or hides the atom symbols in 3D.
|
void |
setBallRadius(double r)
Sets the ball radius in units of covalent radius.
|
void |
setBoldBondWidth(double w)
Sets the bold bond width.
|
void |
setBondLength(double l)
Sets the bond length.
|
void |
setBondLengthVisible(boolean v)
Sets the bond length display option.
|
void |
setBondSetColor(int i,
java.awt.Color color)
Sets the color of a bond set.
|
void |
setBondSpacing(double w)
Sets the bond spacing.
|
void |
setBondWidth(double w)
Deprecated.
as of Marvin 4.1, replaced by
setBondSpacing(double) |
void |
setChiralitySupport(int l)
Sets chirality support to show or hide the R/S labels.
|
void |
setCleanDim(int d)
Sets the space dimensions for cleaning.
|
void |
setColorScheme(java.lang.String s)
Sets the color scheme.
|
void |
setDebug(int debug)
Switches on the debug messages.
|
void |
setDirectory(java.io.File wd)
Sets the working directory, if the Load/Save is in Last Opened Mode.
|
void |
setDispopts(int f)
Sets display options.
|
void |
setDownWedge(java.lang.String s)
Sets the wedge bond display convention.
|
void |
setEnabled(boolean b)
Enables or disables this component, depending on the value of the parameter b.
|
void |
setExperimentalEnabled(boolean v)
Enable or disable experimental features.
|
void |
setEzVisible(boolean v)
Sets the E/Z display option.
|
void |
setFile(java.io.File f)
Sets the current molecule file but does not load it.
|
void |
setFormat(java.lang.String fmt)
Sets the default molecule file format.
|
void |
setGlobalGUIProperties(MPropertyContainer gp) |
void |
setGrinv(boolean v)
Deprecated.
as of Marvin 3.5, use setGrinvVisible(boolean) instead
|
void |
setGrinvVisible(boolean v)
Shows or hides the graph invariants.
|
void |
setImplicitH(java.lang.String s)
Sets the display method of implicit hydrogens.
|
void |
setInvisibleSets(long v)
Sets the visibility of the specified atom sets.
|
void |
setLabels(boolean v)
Deprecated.
use setAtomSymbolsVisible(v) instead
|
void |
setLonePairsVisible(boolean v)
Shows or hides (implicit) lone pairs.
|
void |
setMarginSize(double size)
Sets the documents margin size.
|
void |
setMolbg(java.awt.Color c)
Sets the molecule background color.
|
void |
setMPVisible(boolean v)
Sets the M/P display option.
|
void |
setParams(java.lang.String s)
Sets the parameter string.
|
void |
setPopupMenusEnabled(boolean b)
Allows popup menus.
|
void |
setPrintEnabled(boolean b)
Set the accessibility of the Print menu item in the File menu.
|
void |
setRendering(java.lang.String s)
Sets the rendering style.
|
void |
setRgroupsVisible(boolean b)
Shows or hides R-group definitions.
|
void |
setSaveIniEnabled(boolean v)
Enables or disables automatic preference saving.
|
void |
setSetColor(int i,
java.awt.Color color)
Deprecated.
as of Marvin 3.3, replaced by setAtomSetColor
|
void |
setSetColoringEnabled(boolean v)
Enable or disable atom/bond set coloring.
|
void |
setStickThickness(double d)
Sets the stick thickness.
|
void |
setTopLevelContainer(java.awt.Container tlc)
Sets the top level container (JFrame, JDialog, etc) of the pane.
|
void |
setUserSettings(UserSettings settings)
Sets the user settings object.
|
void |
setWireThickness(double d)
Sets the line thickness for wireframe mode.
|
void |
showErrorDialog(java.lang.String msg,
java.lang.Throwable ex)
Show error dialog.
|
void |
showFileDialog(java.lang.String what,
Molecule mol)
Shows an Open or Save file dialog.
|
void |
showFileOpenDialog()
Shows file open dialog.
|
void |
writeExternal(java.io.ObjectOutput out)
Saves object state.
|
protected static void |
writeMol(java.io.ObjectOutput out,
Molecule mol) |
addImpl, addNotify, createContentPane, createGlassPane, createLayeredPane, createRootLayout, getAccessibleContext, getContentPane, getDefaultButton, getGlassPane, getJMenuBar, getLayeredPane, getMenuBar, getUI, getUIClassID, getWindowDecorationStyle, isOptimizedDrawingEnabled, isValidateRoot, paramString, removeNotify, setContentPane, setDefaultButton, setDoubleBuffered, setGlassPane, setJMenuBar, setLayeredPane, setMenuBar, setUI, setWindowDecorationStyle, updateUI
addAncestorListener, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, 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
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, 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
public static final java.lang.String VERSION
protected chemaxon.marvin.common.swing.MolPanel molPanel
protected java.lang.String params
protected static java.awt.Container topLevelContainer
public void addMenuBarChangeListener(chemaxon.marvin.common.swing.MenuBarChangeListener l)
l
- the menubar change listenerpublic void addActionListener(java.awt.event.ActionListener l)
l
- the action listenerpublic void removeActionListener(java.awt.event.ActionListener l)
l
- the action listenerprotected void init(chemaxon.marvin.common.swing.MolPanel m)
m
- the MolPanelprotected void init(chemaxon.marvin.common.swing.MolPanel m, boolean start)
m
- the MolPanelstart
- enable (true
) or disable (false
) molecule/template
structure/abbreviated group loadingpublic chemaxon.marvin.common.swing.MolPanel getMolPanel()
chemaxon.license.LicenseException
- if there is not any license set for using Marvin Beans in the given context. From
Marvin 6.2public void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange
in interface java.beans.PropertyChangeListener
ev
- the event objectpublic void componentResized(java.awt.event.ComponentEvent ev)
componentResized
in interface java.awt.event.ComponentListener
ev
- the event objectpublic void componentMoved(java.awt.event.ComponentEvent ev)
componentMoved
in interface java.awt.event.ComponentListener
ev
- the event objectpublic void componentShown(java.awt.event.ComponentEvent ev)
componentShown
in interface java.awt.event.ComponentListener
ev
- the event objectpublic void componentHidden(java.awt.event.ComponentEvent ev)
componentHidden
in interface java.awt.event.ComponentListener
ev
- the event objectpublic boolean getPopupMenusEnabled()
public boolean arePopupMenusEnabled()
public void setPopupMenusEnabled(boolean b)
//Create custom popup menu ... sketchPane.getCanvasComponent().addMouseListener(actionListener); sketchPane.setPopupMenusEnabled(false); //avoid to display both popup menus
b
- True sets popup menus enabled, false sets them disabled.MSketchPane.getCanvasComponent()
,
MViewPane.getVisibleCellComponent(int)
public java.lang.String getParams()
public void setParams(java.lang.String s)
MViewParams
molPanel.setParams("rows=2\n" + "cols=2\n" + "layout0=:2:2:M:1:0:1:1:c:b:1:1:L:0:0:1:1:c:n:0:1\n" + "param0=:M:100:100:L:10b\n" + "\n" + "# MarvinSketch properties also have to be specified here for the\n" + "# sketcher windows that can be launched using Edit/Structure.\n" + "extrabonds=arom,wedge\n");
s
- the parameter stringpublic java.lang.String getParameter(java.lang.String key)
key
- the parameter namepublic java.awt.Color getMolbg()
public void setMolbg(java.awt.Color c)
c
- the colorpublic double getAtomsize()
public void setAtomsize(double r)
size = atomsize*1.54 Å = atomsize*scale points
r
- the atom size in C-C bond length unitspublic double getBoldBondWidth()
public void setBoldBondWidth(double w)
w
- the bold bond width of C-C bonds in pt units.public double getBondLength()
public void setBondLength(double l)
l
- the bond length of C-C bonds in pt units.public double getBondSpacing()
public void setBondSpacing(double w)
width = w*1.54 Å = w*scale pixels
w
- the bond spacing in C-C bond length units.public int getCleanDim()
public void setCleanDim(int d)
d
- 2 or 3public int getDispopts()
public void setDispopts(int f)
f
- the display optionspublic java.lang.String getColorScheme()
MONO_SCHEME_S
, CPK_SCHEME_S
, SHAPELY_SCHEME_S
or
GROUP_SCHEME_S
.COLOR_SCHEMES
public void setColorScheme(java.lang.String s)
s
- MONO_SCHEME_S
,
CPK_SCHEME_S
,
SHAPELY_SCHEME_S
or
GROUP_SCHEME_S
.DispOptConsts.COLOR_SCHEMES
public boolean isSetColoringEnabled()
public void setSetColoringEnabled(boolean v)
v
- true to enable, false to disablepublic java.lang.String getRendering()
WIREFRAME_RENDERING_S
,
STICKS_RENDERING_S
,
BALLSTICK_RENDERING_S
or
SPACEFILL_RENDERING_S
.DispOptConsts.RENDERING_STYLES
public void setRendering(java.lang.String s)
s
- WIREFRAME_RENDERING_S
,
STICKS_RENDERING_S
,
BALLSTICK_RENDERING_S
or
SPACEFILL_RENDERING_S
.DispOptConsts.RENDERING_STYLES
public double getWireThickness()
public void setWireThickness(double d)
d
- wire thickness in Angstromspublic double getStickThickness()
public void setStickThickness(double d)
d
- stick thickness in Angstromspublic double getBallRadius()
public void setBallRadius(double r)
r
- the ball radiuspublic java.lang.String getDownWedge()
public void setDownWedge(java.lang.String s)
s
- "mdl" or "daylight"@Deprecated public boolean isAtomNumbersVisible()
public int getAtomNumberingType()
@Deprecated public void setAtomNumbersVisible(boolean v)
v
- shows the atom numbers if true, else hide them.public void setAtomNumberingType(int type)
type
- 0: off 1: Atom numbers 2: IUPAC numbering.public boolean isAtomMappingVisible()
public void setAtomMappingVisible(boolean v)
v
- shows the atom mapping if true, else hide it.public boolean isAtomSymbolsVisible()
DispOptConsts.ATSYM_FLAG
public void setAtomSymbolsVisible(boolean v)
v
- shows the atom symbols if true, else hide themDispOptConsts.ATSYM_FLAG
public boolean getLonePairsVisible()
true
if lone pairs are visible, false
otherwisepublic void setLonePairsVisible(boolean v)
v
- true
show, false
hides lone pairspublic void setMarginSize(double size)
size
- the size of the marginpublic double getMarginSize()
public boolean isGrinvVisible()
public void setGrinvVisible(boolean v)
v
- true to show the graph invariants, false to hide them.public java.lang.String getImplicitH()
IMPLICITH_OFF_S
,
IMPLICITH_HETERO_S
,
IMPLICITH_HETEROTERM_S
or
IMPLICITH_ALL_S
.DispOptConsts.IMPLICITH_LEVELS
public void setImplicitH(java.lang.String s)
s
- IMPLICITH_OFF_S
,
IMPLICITH_HETERO_S
,
IMPLICITH_HETEROTERM_S
or
IMPLICITH_ALL_S
.DispOptConsts.IMPLICITH_LEVELS
public int getChiralitySupport()
StereoConstants.CHIRALITYSUPPORT_ALL_POSSIBLE
StereoConstants.CHIRALITYSUPPORT_ALL
StereoConstants.CHIRALITYSUPPORT_SELECTED
StereoConstants.CHIRALITYSUPPORT_NONE
public void setChiralitySupport(int l)
StereoConstants.CHIRALITYSUPPORT_ALL_POSSIBLE
StereoConstants.CHIRALITYSUPPORT_ALL
StereoConstants.CHIRALITYSUPPORT_SELECTED
StereoConstants.CHIRALITYSUPPORT_NONE
l
- chirality support level.public boolean isEzVisible()
public void setEzVisible(boolean v)
v
- show (true) or hide (false) E/Zpublic boolean isMPVisible()
public void setMPVisible(boolean v)
v
- show (true) or hide (false) M/ppublic boolean isBondLengthVisible()
public void setBondLengthVisible(boolean v)
v
- show (true) or hide (false)DispOptConsts.BONDLEN_FLAG
public long getInvisibleSets()
public void setInvisibleSets(long v)
v
- invisibility maskgetInvisibleSets()
public java.awt.Color getAtomSetColor(int i)
i
- atom set sequence number (0, ..., SETSEQ_MAX
)public void setAtomSetColor(int i, java.awt.Color color)
i
- atom set sequence number (0, ..., SETSEQ_MAX
)color
- the colorpublic void setBondSetColor(int i, java.awt.Color color)
i
- bond set sequence number (1, ..., SETSEQ_MAX
)color
- the colorpublic java.lang.String getFormat()
public void setFormat(java.lang.String fmt)
fmt
- the format string or nullpublic java.io.File getFile()
public void setFile(java.io.File f)
f
- the filepublic void showFileDialog(java.lang.String what, Molecule mol)
what
- "open", "save" or "saveAs"mol
- the molecule to save or nullpublic int getDebug()
public void setDebug(int debug)
debug
- debug levelpublic void closeWindows()
public boolean isExitCanceled()
public void exit()
public UserSettings getUserSettings()
public void setUserSettings(UserSettings settings)
settings
- the user settings objectpublic boolean isSaveIniEnabled()
public void setSaveIniEnabled(boolean v)
v
- true to enable, false to disablepublic java.io.File getDirectory()
public void setDirectory(java.io.File wd)
wd
- the working directorypublic boolean isExperimentalEnabled()
true
if experimental features are enabled, false
otherwisepublic void setExperimentalEnabled(boolean v)
v
- true
enables, false
disables experimental featurespublic void showFileOpenDialog()
@Deprecated public chemaxon.marvin.common.swing.action.CommonActions getCommonActions()
@Deprecated public javax.swing.JMenu addToolsMenu(java.awt.Container m)
m
- the parent menu or menu barpublic javax.swing.JMenu addHelpMenu(java.awt.Container m)
m
- the parent menu or menu barpublic static java.util.ResourceBundle getResourceBundle(java.lang.String name)
name
- resource file pathpublic void beginHourglass()
public void endHourglass()
public void showErrorDialog(java.lang.String msg, java.lang.Throwable ex)
msg
- error messageex
- the exceptionprotected static void readResources(java.lang.Class<?> cl, java.lang.String fname)
cl
- the class to read resources forfname
- resource filenamepublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
MSketch
and MView
classes, which
do implement it.out
- the stream to write the object tojava.io.IOException
- Includes any I/O exceptions that may occurpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException
MSketch
and MView
classes, which
do implement it.in
- the stream to read data from in order to restore the objectjava.io.IOException
- if I/O errors occurjava.lang.ClassNotFoundException
- If the class for an object being restored cannot be found.protected static void writeMol(java.io.ObjectOutput out, Molecule mol) throws java.io.IOException
java.io.IOException
protected static Molecule readMol(java.io.ObjectInput in) throws java.io.IOException
java.io.IOException
protected static MDocument readDoc(java.io.ObjectInput in) throws java.io.IOException
java.io.IOException
@Deprecated public double getBondWidth()
getBondSpacing()
@Deprecated public void setBondWidth(double w)
setBondSpacing(double)
w
- bond spacing in bond length units@Deprecated public java.awt.Color getSetColor(int i)
i
- atom set sequence number (0, ..., SETSEQ_MAX
)@Deprecated public void setSetColor(int i, java.awt.Color color)
i
- atom set sequence number (0, ..., SETSEQ_MAX
)color
- the color@Deprecated public boolean getLabels()
@Deprecated public void setLabels(boolean v)
@Deprecated public boolean isGrinv()
@Deprecated public void setGrinv(boolean v)
v
- true to show the graph invariants, false to hide them.@Deprecated public static javax.swing.JMenu createMenu(java.util.ResourceBundle rc, java.lang.String key)
rc
- the resourceskey
- name of the label resource@Deprecated public static void initButton(javax.swing.AbstractButton b, java.util.ResourceBundle rc, java.lang.String key)
b
- the buttonrc
- the resourceskey
- name of the resource@Deprecated public static void initAction(javax.swing.Action action, java.util.ResourceBundle rc, java.lang.String key, javax.swing.KeyStroke accel)
action
- the actionrc
- the resourceskey
- name of the resourceaccel
- the accelerator or nullpublic void setTopLevelContainer(java.awt.Container tlc)
tlc
- the top level containerpublic java.awt.Container getTopLevelContainer()
@Deprecated public boolean getReadGlobalGUIProperties()
getSaveGlobalGUIProperties()
function
have been merged.public boolean getSaveGlobalGUIProperties()
public void setGlobalGUIProperties(MPropertyContainer gp)
public void setEnabled(boolean b)
setEnabled
in class javax.swing.JComponent
b
- If true, this component is enabled; otherwise this component is disabled.public abstract void doPaste()
public void setRgroupsVisible(boolean b)
b
- true to show, false to hide R-group definitions.public boolean isRgroupsVisible()
public boolean isPrintEnabled()
setPrintEnabled(boolean)
public void setPrintEnabled(boolean b)
b
- True to enable print operation from the file menu. False to set it to disabled.isPrintEnabled()