|
||||||||||
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.DecorationsPanel
public class DecorationsPanel
This control panel allows the user to select a decoration type (Plain,
Text Labels, or Halftoning) for Segments of a tube or ribbon.
The default decoration is determined by the value of the public
constant Segment.DECORATION (which is also used by the Segment
constructor).
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 "Decorations" will be returned by toString(). |
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 | |
---|---|
DecorationsPanel(Mediator mediator,
Frame dialogOwner,
RadioPanel radioPanel)
Constructs a DecorationsPanel. |
Method Summary | |
---|---|
void |
applyBendTexture()
Applies the current "Bend Texture:" selection to whatever Segments are selected in the RadioPanel. |
void |
applyHalftoningAndBendTextures()
Applies the current "Patterns" texture selection to whatever Segments are selected in the RadioPanel. |
void |
applyHalftoningTexture()
Applies the current "Patterns" texture selection to whatever Segments are selected in the RadioPanel. |
void |
applyPatternsTexture()
Applies the current "Patterns" texture selection to whatever Segments are selected in the RadioPanel. |
void |
loadBendMenu()
Loads the bend menu with the current set of textures from the Mediator. |
void |
loadHalftoningMenu()
Loads the halftoning menu with the current set of textures from the Mediator. |
void |
loadPatternsMenu()
Loads the Patterns menu with the current set of textures from the Mediator, and sets the selected item to the second item in the menu (the first item is always 'None'). |
void |
setDecoration(DecorationEnum decoration)
Sets up a SegmentModifier to change the decoration type and then passes the SegmentModifier to the RadioPanel. |
void |
setDefaultTextures()
If the default decoration type for a Segment, Segment.DECORATION, is PATTERNS or HALFTONING, texture maps will be applied. |
String |
toString()
Returns a name suitable for use in a menu. |
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 DecorationsPanel(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 setDecoration(DecorationEnum decoration)
decoration
- the decoration type to set.public void applyPatternsTexture()
public void applyHalftoningAndBendTextures()
public void applyHalftoningTexture()
public void applyBendTexture()
public void loadPatternsMenu()
public void loadHalftoningMenu()
public void loadBendMenu()
public void setDefaultTextures()
public String toString()
toString
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |