|
||||||||||
| 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
public abstract class VisibilityPanel
This control panel allows the user to modify the visibility status and alpha value of Drawable objects.
| 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 |
SLIDER_INIT
The initial value for the slider is 75 %. |
| 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 | |
|---|---|
VisibilityPanel(Mediator mediator,
Frame dialogOwner,
RadioPanel radioPanel)
Constructs a VisibilityPanel. |
|
| Method Summary | |
|---|---|
void |
applyVisibility(VisibilityEnum visibility,
float alpha)
Applies the requested visiblity status and alpha value to whatever item or items are currently selected in the RadioPanel. |
float |
getPercentField()
Returns the number entered in the "% Translucent" text field. |
int |
getSliderValue()
Gets the current value for the slider. |
void |
modifyGlobal(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
Passes the DrawableModifiers to the modifyGlobal() method of the RadioPanel. |
abstract void |
modifyGlobal(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up whatever DrawableModifiers are needed and then calls on the modifyGlobal() method of the radio panel. |
void |
modifyHelices(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
Passes the DrawableModifiers to the modifyHelices() method of the RadioPanel. |
abstract void |
modifyHelices(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up whatever DrawableModifiers are needed and then calls on the modifyHelices() method of the radio panel. |
void |
modifyLoops(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
Passes the DrawableModifiers to the modifyLoops() method of the RadioPanel. |
abstract void |
modifyLoops(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up whatever DrawableModifiers are needed and then calls on the modifyLoops() method of the radio panel. |
void |
modifySelected(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
Passes the DrawableModifiers to the modifySelected() method of the RadioPanel. |
abstract void |
modifySelected(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up whatever DrawableModifiers are needed and then calls on the modifySelected() method of the radio panel. |
void |
modifyStrands(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
Passes the DrawableModifiers to the modifyStrands() method of the RadioPanel. |
abstract void |
modifyStrands(VisibilityEnum visibility,
float alpha)
This helper method for applyVisibility() sets up whatever DrawableModifiers are needed and then calls on the modifyStrands() method of the radio panel. |
void |
setPercentField(float n)
Sets the value for the "% Translucent" text field. |
void |
setSliderValue(int n)
Sets the current value for the slider. |
| 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 int SLIDER_INIT
| Constructor Detail |
|---|
public VisibilityPanel(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 applyVisibility(VisibilityEnum visibility,
float alpha)
visibility - the visibility status as a VisibilityEnum.alpha - the alpha value associated with the RGB color.public int getSliderValue()
public void setSliderValue(int n)
n - the int value to set the slider to.public float getPercentField()
public void setPercentField(float n)
n - the float value to set the text field value to.
public abstract void modifySelected(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
visibility - 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 abstract void modifyHelices(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
visibility - 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 abstract void modifyStrands(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
visibility - 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 abstract void modifyLoops(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
visibility - 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 abstract void modifyGlobal(VisibilityEnum visibility,
float alpha)
throws ColorOutOfRangeException
visibility - 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 modifySelected(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
atomModifier - an AtomModifier programmed to modify
Atoms (or null for no modifications).bondModifier - a BondModifier programmed to modify
Bonds (or null for no modifications).segmentModifier - a SegmentModifier programmed to modify
Segments (or null for no modifications).
public void modifyHelices(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
atomModifier - an AtomModifier programmed to modify
Atoms (or null for no modifications).bondModifier - a BondModifier programmed to modify
Bonds (or null for no modifications).segmentModifier - a SegmentModifier programmed to modify
Segments (or null for no modifications).
public void modifyStrands(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
atomModifier - an AtomModifier programmed to modify
Atoms (or null for no modifications).bondModifier - a BondModifier programmed to modify
Bonds (or null for no modifications).segmentModifier - a SegmentModifier programmed to modify
Segments (or null for no modifications).
public void modifyLoops(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
atomModifier - an AtomModifier programmed to modify
Atoms (or null for no modifications).bondModifier - a BondModifier programmed to modify
Bonds (or null for no modifications).segmentModifier - a SegmentModifier programmed to modify
Segments (or null for no modifications).
public void modifyGlobal(AtomModifier atomModifier,
BondModifier bondModifier,
SegmentModifier segmentModifier)
atomModifier - an AtomModifier programmed to modify
Atoms (or null for no modifications).bondModifier - a BondModifier programmed to modify
Bonds (or null for no modifications).segmentModifier - a SegmentModifier programmed to modify
Segments (or null for no modifications).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||