public class MSpaceApplet extends JApplet implements chemaxon.marvin.util.ParentPanelIface
JApplet.AccessibleJApplet
Applet.AccessibleApplet
Panel.AccessibleAWTPanel
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
MSpaceApplet()
Creates a new instance of MSpaceApplet
|
Modifier and Type | Method and Description |
---|---|
void |
addMolecule(String fileName)
Adds a molecule to the active cell without removing components from it.
|
void |
addMolecules(String mols,
String separator)
Adds molecules to display without removing existing components from the viewer.
|
void |
addMoleculeString(String smiles)
Adds a molecule to the active cell without removing components from it.
|
void |
addPDB(String pdbId)
Loads a pdb file from the RCSB Protein Data Bank (http://www.rcsb.org/)
|
chemaxon.marvin.space.SlabComponent |
createSlabComponent()
Creates a SlabComponent, that can be initailized by
SlabComponent.beginSlab() ,
vertices can be set by the SlabComponent.addVertex(float, float, float) method, and
finally SlabComponent.endSlab() should be invoked. |
chemaxon.marvin.space.SlabComponent |
createSlabComponent(float[] vertices)
Creates a SlabComponent with the given vertices.
|
chemaxon.marvin.space.SlabComponent |
createSlabComponent(float[][] vertices)
Creates a SlabComponent with the given vertices.
|
chemaxon.marvin.space.SlabComponent |
createSlabComponent(String name)
Creates a SlabComponent, that can be initailized by
SlabComponent.beginSlab() ,
vertices can be set by the SlabComponent.addVertex(float, float, float) method, and
finally SlabComponent.endSlab() should be invoked. |
chemaxon.marvin.space.SlabComponent |
createSlabComponent(String name,
int r,
int g,
int b)
Creates a SlabComponent, that can be initailized by
SlabComponent.beginSlab() ,
vertices can be set by the SlabComponent.addVertex(float, float, float) method, and
finally SlabComponent.endSlab() should be invoked. |
chemaxon.marvin.space.MSpaceEasy |
getMSpaceEasy()
Returns MSpaceEasy which offers some more API calls.
|
String |
getProgName()
See
ParentPanelIface.getProgName() for details. |
String |
getVersion()
See
ParentPanelIface.getVersion() for details. |
void |
hideWindow(Window f)
See
ParentPanelIface.hideWindow(java.awt.Window) for details. |
void |
init()
Initializes the applet by loading necessary natives and processing parameters.
|
void |
mapPropertyFile(String filename,
float min,
float max)
Computes a Connolly molecular surface, loads the given property file, colors the surface by
it, and sets minimum and maximum values that affect coloring the surface.
|
void |
mapPropertyFile(String filename,
float min,
float max,
float surfacePrecision)
Computes a Connolly molecular surface by the given precision, loads the given property file,
colors the surface by it, and sets minimum and maximum values that affect coloring the
surface.
|
void |
mapPropertyFile(String filename,
String surfacetype,
float min,
float max)
Computes an arbitrary type molecular surface, loads the given property file, colors the
surface by it, and sets minimum and maximum values that affect coloring the surface.
|
void |
mapPropertyFile(String filename,
String surfacetype,
float min,
float max,
float surfacePrecision)
Computes a Connolly molecular surfaces by the given precision, loads the given property file,
colors the surface by it, and sets minimum and maximum values that affect coloring the
surface.
|
void |
processLog(String filename)
Processes the given log file.
|
void |
readPropertyFile(String filename,
float isoValue)
Reads a property file (Charmm format), and creates isocontour surfaces.
|
void |
refresh()
Quick refresh of the graphic canvas.
|
void |
setMolecule(String fileName)
Removes all components from the active cell and adds a molecule.
|
void |
setMoleculeString(String smiles)
Removes all components from the active cell and adds a molecule.
|
void |
setPDB(String pdbId)
Loads a pdb file from the RCSB Protein Data Bank (http://www.rcsb.org/)
|
void |
setProperty(String propertyName,
String propertyValue)
Sets a draw property of MarvinSpace.
|
void |
showWindow(Window f)
See
ParentPanelIface.showWindow(java.awt.Window) for details. |
void |
unregWindow(Window f)
See
ParentPanelIface.unregWindow(java.awt.Window) for details. |
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public void init()
public void setProperty(String propertyName, String propertyValue)
propertyName
- identifier of a draw propertypropertyValue
- value of the property to be set given as a String
public chemaxon.marvin.space.MSpaceEasy getMSpaceEasy()
MSpaceEasy
class.public void addPDB(String pdbId) throws Exception
pdbId
- PDB ID used by the RSCB PDBException
- when reading file or adding component failspublic void setPDB(String pdbId) throws Exception
pdbId
- PDB ID used by the RSCB PDBException
- when reading file or adding component failspublic void addMolecules(String mols, String separator) throws Exception
mols
- list of molecules separated by the separator character in a Stringseparator
- character in the mols string delimiting each moleculesException
- when reading file or adding component failspublic void addMolecule(String fileName) throws Exception
fileName
- url or path relative to applet codebaseException
- when reading file or adding component failspublic void addMoleculeString(String smiles) throws Exception
smiles
- the molecule data in smilesException
- when reading smiles or adding component failspublic void setMolecule(String fileName) throws Exception
fileName
- url or path relative to applet codebaseException
- when reading file or adding component failspublic void setMoleculeString(String smiles) throws Exception
smiles
- the molecule in smilesException
- when reading smiles or adding component failspublic void refresh()
setProperty
refreshes
automatically after the property setting.public void processLog(String filename) throws IOException
filename
- url or path relative to applet codebaseIOException
- if an I/O exception occurspublic void readPropertyFile(String filename, float isoValue)
filename
- file, url or relative location to the codebaseisoValue
- initial threshold value to create isocontour surfacespublic void mapPropertyFile(String filename, String surfacetype, float min, float max)
filename
- file, url or relative location to the codebasesurfacetype
- one of the following strings: "van der Waals", "Solvent-accessible", "Connolly",
"Blobby"min
- vertices having equal or lesser values will be colored as minimummax
- vertices having equal or greater values will be colored as maximumpublic void mapPropertyFile(String filename, String surfacetype, float min, float max, float surfacePrecision)
filename
- file, url or relative location to the codebasesurfacetype
- one of the following strings: "van der Waals", "Solvent-accessible", "Connolly",
"Blobby"min
- vertices having equal or lesser values will be colored as minimummax
- vertices having equal or greater values will be colored as maximumsurfacePrecision
- grid spacing of surface in Angstroms, default value is 0.55public void mapPropertyFile(String filename, float min, float max)
filename
- file, url or relative location to the codebasemin
- vertices having equal or lesser values will be colored as minimummax
- vertices having equal or greater values will be colored as maximumpublic void mapPropertyFile(String filename, float min, float max, float surfacePrecision)
filename
- file, url or relative location to the codebasemin
- vertices having equal or lesser values will be colored as minimummax
- vertices having equal or greater values will be colored as maximumsurfacePrecision
- grid spacing of surface in Angstroms, default value is 0.55public chemaxon.marvin.space.SlabComponent createSlabComponent()
SlabComponent.beginSlab()
,
vertices can be set by the SlabComponent.addVertex(float, float, float)
method, and
finally SlabComponent.endSlab()
should be invoked.public chemaxon.marvin.space.SlabComponent createSlabComponent(String name)
SlabComponent.beginSlab()
,
vertices can be set by the SlabComponent.addVertex(float, float, float)
method, and
finally SlabComponent.endSlab()
should be invoked.name
- name of the componentpublic chemaxon.marvin.space.SlabComponent createSlabComponent(String name, int r, int g, int b)
SlabComponent.beginSlab()
,
vertices can be set by the SlabComponent.addVertex(float, float, float)
method, and
finally SlabComponent.endSlab()
should be invoked.name
- name of the componentr
- red component of the colorg
- green component of the colorb
- blue component of the colorpublic chemaxon.marvin.space.SlabComponent createSlabComponent(float[][] vertices)
createSlabComponent()
method.vertices
- array of xyz coordinate arrayspublic chemaxon.marvin.space.SlabComponent createSlabComponent(float[] vertices)
createSlabComponent()
method.vertices
- array of x, y, z coordinatespublic void showWindow(Window f)
ParentPanelIface.showWindow(java.awt.Window)
for details.
Warning: for internal usage only MarvinSpace needs this interface to be able to control Help
windows.showWindow
in interface chemaxon.marvin.util.ParentPanelIface
public void hideWindow(Window f)
ParentPanelIface.hideWindow(java.awt.Window)
for details.
Warning: for internal usage only MarvinSpace needs this interface to be able to control Help
windows.hideWindow
in interface chemaxon.marvin.util.ParentPanelIface
public void unregWindow(Window f)
ParentPanelIface.unregWindow(java.awt.Window)
for details.
Warning: for internal usage only MarvinSpace needs this interface to be able to control Help
windows.unregWindow
in interface chemaxon.marvin.util.ParentPanelIface
public String getProgName()
ParentPanelIface.getProgName()
for details. Warning: for
internal usage only MarvinSpace needs this interface to be able to control Help windows.getProgName
in interface chemaxon.marvin.util.ParentPanelIface
public String getVersion()
ParentPanelIface.getVersion()
for details. Warning: for
internal usage only MarvinSpace needs this interface to be able to control Help windows.getVersion
in interface chemaxon.marvin.util.ParentPanelIface