|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.proteinshader.gui.components.controlpanel.VisibilityPanel
org.proteinshader.gui.components.controlpanel.AtomVisibilityPanel
public class AtomVisibilityPanel
This control panel allows the user to modify the visibility status and alpha value of Atoms.
| 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 String |
MENU_NAME
The menu name "Atom Visibility" will be returned by the toString() method. |
| Fields inherited from class org.proteinshader.gui.components.controlpanel.VisibilityPanel |
|---|
SLIDER_INIT |
| 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 | |
|---|---|
AtomVisibilityPanel(Mediator mediator,
Frame dialogOwner,
RadioPanel radioPanel)
Constructs a VisibilityPanel. |
|
| Method Summary | |
|---|---|
void |
modifyGlobal(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up the the AtomModifier and then calls on modifyGlobal() method of the radio panel. |
void |
modifyHelices(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up an AtomModifier and a BondModifier, and then calls on modifyHelices() method of the radio panel. |
void |
modifyLoops(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up an AtomModifier and then calls on modifyLoops() method of the radio panel. |
void |
modifySelected(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up the AtomModifier and the BondModifier and then calls on the modifySelected() method of the radio panel. |
void |
modifyStrands(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up an AtomModifier and then calls on modifyStrands() method of the radio panel. |
String |
toString()
Returns a name suitable for use in a menu. |
| Methods inherited from class org.proteinshader.gui.components.controlpanel.VisibilityPanel |
|---|
applyVisibility, getPercentField, getSliderValue, modifyGlobal, modifyHelices, modifyLoops, modifySelected, modifyStrands, setPercentField, setSliderValue |
| 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 String MENU_NAME
| Constructor Detail |
|---|
public AtomVisibilityPanel(Mediator mediator,
Frame dialogOwner,
RadioPanel radioPanel)
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 owner).radioPanel - the common RadioPanel used by subpanels.| Method Detail |
|---|
public void modifySelected(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
modifySelected in class VisibilityPanelvisibility - the visibility state.alpha - the alpha value associated with the RGB color.
ColorOutOfRangeException - if alpha is less than 0.0 or
greater than 1.0.
public void modifyHelices(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
modifyHelices in class VisibilityPanelvisibility - the visibility state.alpha - the alpha value associated with the RGB color.
ColorOutOfRangeException - if alpha is less than 0.0 or
greater than 1.0.
public void modifyStrands(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
modifyStrands in class VisibilityPanelvisibility - the visibility state.alpha - the alpha value associated with the RGB color.
ColorOutOfRangeException - if alpha is less than 0.0 or
greater than 1.0.
public void modifyLoops(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
modifyLoops in class VisibilityPanelvisibility - the visibility state.alpha - the alpha value associated with the RGB color.
ColorOutOfRangeException - if alpha is less than 0.0 or
greater than 1.0.
public void modifyGlobal(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
modifyGlobal in class VisibilityPanelvisibility - the visibility state.alpha - the alpha value associated with the RGB color.
ColorOutOfRangeException - if alpha is less than 0.0 or
greater than 1.0.public String toString()
toString in class Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||