public abstract class AbstractAlignmentJmol extends Object implements MouseMotionListener, MouseListener, WindowListener, ActionListener
Modifier and Type | Field and Description |
---|---|
protected org.jcolorbrewer.ColorBrewer |
colorPalette |
protected static String |
COMMAND_LINE_HELP |
protected static int |
DEFAULT_HEIGHT |
protected static String |
DEFAULT_SCRIPT |
protected static int |
DEFAULT_WIDTH |
protected JFrame |
frame |
protected JmolPanel |
jmolPanel |
protected static int |
nrOpenWindows |
protected JTextField |
status |
protected Structure |
structure |
protected JTextField |
text |
Constructor and Description |
---|
AbstractAlignmentJmol() |
Modifier and Type | Method and Description |
---|---|
abstract void |
actionPerformed(ActionEvent e) |
void |
destroy()
Set all the member variables to null.
|
void |
evalString(String rasmolScript)
Execute a command String in the current Jmol panel.
|
org.jcolorbrewer.ColorBrewer |
getColorPalette()
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.
|
JmolPanel |
getJmolPanel()
Return the jmolPanel instance of the AlignmentJmol.
|
Structure |
getStructure()
Return the current Structure in the AlignmentJmol instance.
|
String |
getTitle()
Return the title of the AlignmentJmol window.
|
protected abstract void |
initCoords()
Display the structures after the variable initialization in the
constructor.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
abstract void |
resetDisplay()
Return to the initial state of the alignment visualization.
|
void |
setAtoms(Atom[] atoms)
Create and set a new structure from a given atom array.
|
void |
setJmolPanel(JmolPanel jmolPanel)
Set the jmolPanel of the AlignmentJmol instance.
|
void |
setStructure(Structure s)
Set a new Structure to visualize in the AlignmentJmol window.
|
void |
setTitle(String title)
Set the title of the AlignmentJmol window.
|
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e) |
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
protected org.jcolorbrewer.ColorBrewer colorPalette
protected JTextField text
protected JTextField status
protected static final String COMMAND_LINE_HELP
protected static final int DEFAULT_HEIGHT
protected static final int DEFAULT_WIDTH
protected static final String DEFAULT_SCRIPT
protected static int nrOpenWindows
public AbstractAlignmentJmol()
protected abstract void initCoords()
public void destroy()
public abstract void resetDisplay()
public void setAtoms(Atom[] atoms)
atoms
- public org.jcolorbrewer.ColorBrewer getColorPalette()
public JmolPanel getJmolPanel()
public void setJmolPanel(JmolPanel jmolPanel)
jmolPanel
- public void evalString(String rasmolScript)
rasmolScript
- public void setStructure(Structure s)
s
- public Structure getStructure()
public abstract List<Matrix> getDistanceMatrices()
public void setTitle(String title)
label
- public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public abstract void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
Copyright © 2000–2019 BioJava. All rights reserved.