|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
cytoscape.visual.ui.VizMapUI.StyleSelector
public class VizMapUI.StyleSelector
StyleSelector implements the style selection control. It has been separated visually from the dialog shown by VizMapUI, but is still very much a part of the parent VizMapUI. Keeping StyleSelector as an internal class of VizMapUI makes the program simpler since many variables must be kept synchronized between the two classes.
Nested Class Summary | |
---|---|
protected class |
VizMapUI.StyleSelector.DefStyleListener
|
protected class |
VizMapUI.StyleSelector.DupeStyleListener
|
protected class |
VizMapUI.StyleSelector.NewStyleListener
|
protected class |
VizMapUI.StyleSelector.RenStyleListener
|
protected class |
VizMapUI.StyleSelector.RmStyleListener
|
protected class |
VizMapUI.StyleSelector.StyleSelectionListener
|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
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 | |
---|---|
protected CalculatorCatalog |
catalog
Reference to catalog |
protected VisualStyle |
currentStyle
Currently selected style |
protected VizMapUI.StyleSelector |
myself
Reference back to self for action listeners |
protected boolean |
rebuilding
Flag to trap events triggered by myself |
protected JComboBox |
styleComboBox
Combo box for style selection |
protected JComboBox |
styleComboBoxDupe
Duplicate combo box for style selection - used in toolbar |
protected DefaultComboBoxModel |
styleComboModel
Model for combo boxes |
protected boolean |
styleDefNeedsUpdate
Lazily create visual style parameter UI. |
protected VizMapUI |
styleDefUI
Reference to style definition UI |
protected GridBagGroup |
styleGBG
GridBagGroup for layout |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
protected |
VizMapUI.StyleSelector(VizMapUI styleDef,
JFrame mainFrame)
|
Method Summary | |
---|---|
String |
getStyleName(VisualStyle s)
|
JComboBox |
getToolbarComboBox()
Retrieve copy of style selection combo box for toolbar |
protected void |
refreshStyleComboBox()
Update the style combo box model. |
protected void |
refreshStyleComboBox(VisualStyle selectedStyle)
|
void |
resetStyles()
Reset the style selection controls. |
void |
resetStyles(String selected)
|
void |
stateChanged(ChangeEvent ce)
Called when the underlying VisualMappingManger object changes |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected CalculatorCatalog catalog
protected DefaultComboBoxModel styleComboModel
protected JComboBox styleComboBox
protected JComboBox styleComboBoxDupe
protected GridBagGroup styleGBG
protected VisualStyle currentStyle
protected VizMapUI styleDefUI
protected VizMapUI.StyleSelector myself
protected boolean styleDefNeedsUpdate
protected boolean rebuilding
Constructor Detail |
---|
protected VizMapUI.StyleSelector(VizMapUI styleDef, JFrame mainFrame)
Method Detail |
---|
public String getStyleName(VisualStyle s)
public JComboBox getToolbarComboBox()
protected void refreshStyleComboBox()
protected void refreshStyleComboBox(VisualStyle selectedStyle)
public void resetStyles()
public void resetStyles(String selected)
public void stateChanged(ChangeEvent ce)
stateChanged
in interface ChangeListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |