|
||||||||||
| 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.AtomScalePanel
public class AtomScalePanel
This control panel allows the user to modify the scale for the radii of Atoms in Space-Filling or Balls-and-Sticks style displays.
| 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 "Scale" will be returned by toString(). |
static double |
SCALE_INCREMENT
The increment for the scale spinner is 0.1. |
static double |
SCALE_INIT
The initial value for the scale spinner is 1.0. |
static double |
SCALE_MAX
The maximum radius scale factor is 10.0. |
static double |
SCALE_MIN
The minimum radius scale factor is 0.1. |
| 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 | |
|---|---|
AtomScalePanel(Mediator mediator,
Frame dialogOwner,
RadioPanel radioPanel)
Constructs a AtomScalePanel. |
|
| Method Summary | |
|---|---|
void |
applyDefaultScale()
Applies the default scale to the Atoms (spheres) of whatever item or items are currently selected in the RadioPanel, but only if the current style is SPACE_FILLING or BALLS_AND_STICKS. |
void |
applyScale(double scale)
Applies the scale to the Atoms (spheres) of whatever item or items are currently selected in the RadioPanel, but only if the style is SPACE_FILLING or BALLS_AND_STICKS. |
double |
getScale()
Returns the scale currently showing in the 'Scale:' spinner. |
String |
toString()
Returns a name suitable for use in a menu. |
void |
updateStyle(StyleEnum style)
Changes will be applied only if the style is SPACE_FILLING or BALLS_AND_STICKS. |
| 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
public static final double SCALE_MIN
public static final double SCALE_MAX
public static final double SCALE_INIT
public static final double SCALE_INCREMENT
| Constructor Detail |
|---|
public AtomScalePanel(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 applyDefaultScale()
public void applyScale(double scale)
scale - the radius scaling factor to use.public double getScale()
public void updateStyle(StyleEnum style)
style - the current style as a StyleEnum.public String toString()
toString in class Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||