Class AbstractAlignmentJmol
- java.lang.Object
- 
- org.biojava.nbio.structure.align.gui.jmol.AbstractAlignmentJmol
 
- 
- All Implemented Interfaces:
- ActionListener,- MouseListener,- MouseMotionListener,- WindowListener,- EventListener
 - Direct Known Subclasses:
- MultipleAlignmentJmol,- StructureAlignmentJmol
 
 public abstract class AbstractAlignmentJmol extends Object implements MouseMotionListener, MouseListener, WindowListener, ActionListener An Abstract Class to generalize the visualization of AFP and MultipleAlignment structure alignments in Jmol.- Author:
- Aleix Lafita
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.jcolorbrewer.ColorBrewercolorPaletteprotected static StringCOMMAND_LINE_HELPprotected static intDEFAULT_HEIGHTprotected static StringDEFAULT_SCRIPTprotected static intDEFAULT_WIDTHprotected JFrameframeprotected JmolPaneljmolPanelprotected static intnrOpenWindowsprotected JTextFieldstatusprotected Structurestructureprotected JTextFieldtext
 - 
Constructor SummaryConstructors Constructor Description AbstractAlignmentJmol()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidactionPerformed(ActionEvent e)voiddestroy()Set all the member variables to null.voidevalString(String rasmolScript)Execute a command String in the current Jmol panel.org.jcolorbrewer.ColorBrewergetColorPalette()Return the color pattelete of the AlignmentJmol instance.abstract List<Matrix>getDistanceMatrices()Returns a List of internal Distance Matrices, one for each structure in the alignment.JmolPanelgetJmolPanel()Return the jmolPanel instance of the AlignmentJmol.StructuregetStructure()Return the current Structure in the AlignmentJmol instance.StringgetTitle()Return the title of the AlignmentJmol window.protected abstract voidinitCoords()Display the structures after the variable initialization in the constructor.voidmouseClicked(MouseEvent e)voidmouseDragged(MouseEvent e)voidmouseEntered(MouseEvent e)voidmouseExited(MouseEvent e)voidmouseMoved(MouseEvent e)voidmousePressed(MouseEvent e)voidmouseReleased(MouseEvent e)abstract voidresetDisplay()Return to the initial state of the alignment visualization.voidsetAtoms(Atom[] atoms)Create and set a new structure from a given atom array.voidsetJmolPanel(JmolPanel jmolPanel)Set the jmolPanel of the AlignmentJmol instance.voidsetStructure(Structure s)Set a new Structure to visualize in the AlignmentJmol window.voidsetTitle(String title)Set the title of the AlignmentJmol window.voidwindowActivated(WindowEvent e)voidwindowClosed(WindowEvent e)voidwindowClosing(WindowEvent e)voidwindowDeactivated(WindowEvent e)voidwindowDeiconified(WindowEvent e)voidwindowIconified(WindowEvent e)voidwindowOpened(WindowEvent e)
 
- 
- 
- 
Field Detail- 
colorPaletteprotected org.jcolorbrewer.ColorBrewer colorPalette 
 - 
textprotected JTextField text 
 - 
statusprotected JTextField status 
 - 
COMMAND_LINE_HELPprotected static final String COMMAND_LINE_HELP - See Also:
- Constant Field Values
 
 - 
DEFAULT_HEIGHTprotected static final int DEFAULT_HEIGHT - See Also:
- Constant Field Values
 
 - 
DEFAULT_WIDTHprotected static final int DEFAULT_WIDTH - See Also:
- Constant Field Values
 
 - 
DEFAULT_SCRIPTprotected static final String DEFAULT_SCRIPT 
 - 
nrOpenWindowsprotected static int nrOpenWindows 
 
- 
 - 
Constructor Detail- 
AbstractAlignmentJmolpublic AbstractAlignmentJmol() 
 
- 
 - 
Method Detail- 
initCoordsprotected abstract void initCoords() Display the structures after the variable initialization in the constructor.
 - 
destroypublic void destroy() Set all the member variables to null.
 - 
resetDisplaypublic abstract void resetDisplay() Return to the initial state of the alignment visualization.
 - 
setAtomspublic void setAtoms(Atom[] atoms) Create and set a new structure from a given atom array.- Parameters:
- atoms-
 
 - 
getColorPalettepublic org.jcolorbrewer.ColorBrewer getColorPalette() Return the color pattelete of the AlignmentJmol instance.
 - 
getJmolPanelpublic JmolPanel getJmolPanel() Return the jmolPanel instance of the AlignmentJmol.
 - 
setJmolPanelpublic void setJmolPanel(JmolPanel jmolPanel) Set the jmolPanel of the AlignmentJmol instance.- Parameters:
- jmolPanel-
 
 - 
evalStringpublic void evalString(String rasmolScript) Execute a command String in the current Jmol panel.- Parameters:
- rasmolScript-
 
 - 
setStructurepublic void setStructure(Structure s) Set a new Structure to visualize in the AlignmentJmol window.- Parameters:
- s-
 
 - 
getStructurepublic Structure getStructure() Return the current Structure in the AlignmentJmol instance.
 - 
getDistanceMatricespublic abstract List<Matrix> getDistanceMatrices() Returns a List of internal Distance Matrices, one for each structure in the alignment. Returns null if no alignment is being displayed.
 - 
setTitlepublic void setTitle(String title) Set the title of the AlignmentJmol window.- Parameters:
- label-
 
 - 
mouseDraggedpublic void mouseDragged(MouseEvent e) - Specified by:
- mouseDraggedin interface- MouseMotionListener
 
 - 
mouseMovedpublic void mouseMoved(MouseEvent e) - Specified by:
- mouseMovedin interface- MouseMotionListener
 
 - 
mouseClickedpublic void mouseClicked(MouseEvent e) - Specified by:
- mouseClickedin interface- MouseListener
 
 - 
mouseEnteredpublic void mouseEntered(MouseEvent e) - Specified by:
- mouseEnteredin interface- MouseListener
 
 - 
mouseExitedpublic void mouseExited(MouseEvent e) - Specified by:
- mouseExitedin interface- MouseListener
 
 - 
mousePressedpublic void mousePressed(MouseEvent e) - Specified by:
- mousePressedin interface- MouseListener
 
 - 
mouseReleasedpublic void mouseReleased(MouseEvent e) - Specified by:
- mouseReleasedin interface- MouseListener
 
 - 
windowActivatedpublic void windowActivated(WindowEvent e) - Specified by:
- windowActivatedin interface- WindowListener
 
 - 
windowClosedpublic void windowClosed(WindowEvent e) - Specified by:
- windowClosedin interface- WindowListener
 
 - 
windowClosingpublic void windowClosing(WindowEvent e) - Specified by:
- windowClosingin interface- WindowListener
 
 - 
windowDeactivatedpublic void windowDeactivated(WindowEvent e) - Specified by:
- windowDeactivatedin interface- WindowListener
 
 - 
windowDeiconifiedpublic void windowDeiconified(WindowEvent e) - Specified by:
- windowDeiconifiedin interface- WindowListener
 
 - 
windowIconifiedpublic void windowIconified(WindowEvent e) - Specified by:
- windowIconifiedin interface- WindowListener
 
 - 
windowOpenedpublic void windowOpened(WindowEvent e) - Specified by:
- windowOpenedin interface- WindowListener
 
 - 
actionPerformedpublic abstract void actionPerformed(ActionEvent e) - Specified by:
- actionPerformedin interface- ActionListener
 
 
- 
 
-