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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.jcolorbrewer.ColorBrewerprotected static final Stringprotected static final intprotected static final Stringprotected static final intprotected JFrameprotected JmolPanelprotected static intprotected JTextFieldprotected Structureprotected JTextField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidvoiddestroy()Set all the member variables to null.voidevalString(String rasmolScript) Execute a command String in the current Jmol panel.org.jcolorbrewer.ColorBrewerReturn the color pattelete of the AlignmentJmol instance.Returns a List of internal Distance Matrices, one for each structure in the alignment.Return the jmolPanel instance of the AlignmentJmol.Return the current Structure in the AlignmentJmol instance.getTitle()Return the title of the AlignmentJmol window.protected abstract voidDisplay the structures after the variable initialization in the constructor.voidvoidvoidvoidvoidvoidvoidabstract voidReturn to the initial state of the alignment visualization.voidCreate and set a new structure from a given atom array.voidsetJmolPanel(JmolPanel jmolPanel) Set the jmolPanel of the AlignmentJmol instance.voidSet a new Structure to visualize in the AlignmentJmol window.voidSet the title of the AlignmentJmol window.voidvoidvoidvoidvoidvoidvoid
-
Field Details
-
structure
-
colorPalette
-
jmolPanel
-
frame
-
text
-
status
-
COMMAND_LINE_HELP
- See Also:
-
DEFAULT_HEIGHT
- See Also:
-
DEFAULT_WIDTH
- See Also:
-
DEFAULT_SCRIPT
-
nrOpenWindows
-
-
Constructor Details
-
AbstractAlignmentJmol
public AbstractAlignmentJmol()
-
-
Method Details
-
initCoords
Display the structures after the variable initialization in the constructor. -
destroy
Set all the member variables to null. -
resetDisplay
Return to the initial state of the alignment visualization. -
setAtoms
Create and set a new structure from a given atom array.- Parameters:
atoms-
-
getColorPalette
Return the color pattelete of the AlignmentJmol instance. -
getJmolPanel
Return the jmolPanel instance of the AlignmentJmol. -
setJmolPanel
Set the jmolPanel of the AlignmentJmol instance.- Parameters:
jmolPanel-
-
evalString
Execute a command String in the current Jmol panel.- Parameters:
rasmolScript-
-
setStructure
Set a new Structure to visualize in the AlignmentJmol window.- Parameters:
s-
-
getStructure
Return the current Structure in the AlignmentJmol instance. -
getDistanceMatrices
Returns a List of internal Distance Matrices, one for each structure in the alignment. Returns null if no alignment is being displayed. -
setTitle
Set the title of the AlignmentJmol window.- Parameters:
title-
-
getTitle
Return the title of the AlignmentJmol window. -
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
windowActivated
- Specified by:
windowActivatedin interfaceWindowListener
-
windowClosed
- Specified by:
windowClosedin interfaceWindowListener
-
windowClosing
- Specified by:
windowClosingin interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivatedin interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconifiedin interfaceWindowListener
-
windowIconified
- Specified by:
windowIconifiedin interfaceWindowListener
-
windowOpened
- Specified by:
windowOpenedin interfaceWindowListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-