|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel org.proteinshader.gui.components.controlpanel.SelectorPanel
public class SelectorPanel
Provides a panel with menus and lists for selecting a Structure's Models, Chains, Residues, Atoms, Helices, and BetaStrands.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
DIALOG_HEIGHT
The height of the Atoms list dialog box. |
static int |
DIALOG_WIDTH
The width of the Atoms list dialog box. |
static Font |
LIST_FONT
The font for lists is 14 point plain Courier. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SelectorPanel(Mediator mediator,
Frame dialogOwner)
Constructs a SelectorPanel. |
Method Summary | |
---|---|
int |
addAtomsToAtomList(Residue residue)
Adds all Atoms in the Residue to the Atom list. |
void |
clearAtoms()
Clears the Atom list. |
void |
clearChains()
Clears the Chain menu, Residue list, and Atom list. |
void |
clearModels()
Clears all menus and lists. |
void |
clearResidues()
Clears the Residue list and Atom list. |
void |
closeAtomListDialog()
Sets the Atom list dialog to invisible and enables the "Atoms" button. |
Atom |
getSelectedAtom()
Returns the currently selected Atom from the Atom list. |
Atom[] |
getSelectedAtoms()
Returns an array of the currently selected Atoms from the Atom list. |
Chain |
getSelectedChain()
Returns the currently selected Chain from the Chain menu. |
Model |
getSelectedModel()
Returns the currently selected Model from the Model menu. |
Residue |
getSelectedResidue()
Returns the currently selected Residue from the Residue list. |
Residue[] |
getSelectedResidues()
Returns an array of the currently selected Residues from the Residue list. |
ResidueEnum |
getSelectedResidueType()
Returns the currently selected Residue type from the Residue menu. |
void |
openAtomListDialog()
Sets the Atom list dialog to visible and disables the "Atoms" button. |
void |
setAtomList(Residue residue)
Sets the Atom list for a Residue. |
void |
setChainMenu(Model model)
Adds the Model's Chains to the Chain menu. |
void |
setModelMenu(Structure structure)
Adds the Structure's Models to the Model menu. |
void |
setResidueList(Chain chain)
Checks the currently selected Residue type (AminoAcids, Heterogens, or Waters) and copies them from the Chain to the Residue list. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Font LIST_FONT
public static final int DIALOG_WIDTH
public static final int DIALOG_HEIGHT
Constructor Detail |
---|
public SelectorPanel(Mediator mediator, Frame dialogOwner)
mediator
- the centralized Mediator that most listeners need
to call on to accomplish their task.dialogOwner
- the owner of any Dialogs opened from the
SelectorPanel (or null if there is no
requested owner).Method Detail |
---|
public Model getSelectedModel()
public Chain getSelectedChain()
public ResidueEnum getSelectedResidueType()
public Residue getSelectedResidue()
public Residue[] getSelectedResidues()
public Atom getSelectedAtom()
public Atom[] getSelectedAtoms()
public void setModelMenu(Structure structure)
structure
- the Structure holding the Models to add to the
menu.public void setChainMenu(Model model)
model
- the Model holding the Chains to add to the menu.public void setResidueList(Chain chain)
chain
- the Chain holding the Residues to add to the Residue
list.public void setAtomList(Residue residue)
residue
- the Chain holding the Residues to add to the
Residue list.public void openAtomListDialog()
public void closeAtomListDialog()
public void clearModels()
public void clearChains()
public void clearResidues()
public void clearAtoms()
public int addAtomsToAtomList(Residue residue)
residue
- the Residue holding the Atoms.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |