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
Modifier and TypeFieldDescriptionprotected ColorBrewer
protected static final String
protected static final int
protected static final String
protected static final int
protected JFrame
protected JmolPanel
protected static int
protected JTextField
protected Structure
protected JTextField
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
void
destroy()
Set all the member variables to null.void
evalString
(String rasmolScript) Execute a command String in the current Jmol panel.Return 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 void
Display the structures after the variable initialization in the constructor.void
void
void
void
void
void
void
abstract void
Return to the initial state of the alignment visualization.void
Create and set a new structure from a given atom array.void
setJmolPanel
(JmolPanel jmolPanel) Set the jmolPanel of the AlignmentJmol instance.void
Set a new Structure to visualize in the AlignmentJmol window.void
Set the title of the AlignmentJmol window.void
void
void
void
void
void
void
-
Field Details
-
structure
-
colorPalette
-
jmolPanel
-
frame
-
text
-
status
-
COMMAND_LINE_HELP
- See Also:
-
DEFAULT_HEIGHT
protected static final int DEFAULT_HEIGHT- See Also:
-
DEFAULT_WIDTH
protected static final int DEFAULT_WIDTH- See Also:
-
DEFAULT_SCRIPT
-
nrOpenWindows
protected static int nrOpenWindows
-
-
Constructor Details
-
AbstractAlignmentJmol
public AbstractAlignmentJmol()
-
-
Method Details
-
initCoords
protected abstract void initCoords()Display the structures after the variable initialization in the constructor. -
destroy
public void destroy()Set all the member variables to null. -
resetDisplay
public abstract void 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:
label
-
-
getTitle
Return the title of the AlignmentJmol window. -
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
windowActivated
- Specified by:
windowActivated
in interfaceWindowListener
-
windowClosed
- Specified by:
windowClosed
in interfaceWindowListener
-
windowClosing
- Specified by:
windowClosing
in interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
- Specified by:
windowIconified
in interfaceWindowListener
-
windowOpened
- Specified by:
windowOpened
in interfaceWindowListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-