|
||||||||||
| 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.JTree
ucar.unidata.ui.DndTree
ucar.unidata.idv.ui.SettingsTree
public class SettingsTree
This class is a sortof polymorphic dialog/window that manages selection of times for a datasource, displays/times for a datachoice and (sometime) a window showing a DataTree, list of displays and times.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.ui.DndTree |
|---|
DndTree.TreeTransferable |
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.AccessibleJTree, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirector |
| 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 |
|---|
| 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 | |
|---|---|
SettingsTree(IntegratedDataViewer theIdv)
ctor |
|
| Method Summary | |
|---|---|
void |
changeName(DisplaySetting displaySetting)
Change the name of the given display settings |
void |
deleteSettings(List selected)
Delete the list of settings |
protected void |
doDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode)
drop |
protected JComponent |
getContents()
get gui |
protected List |
getSelectedSettings()
Get the selected settings |
protected boolean |
okToDrag(DefaultMutableTreeNode sourceNode)
ok to dnd |
protected boolean |
okToDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode)
ok to dnd |
void |
paint(Graphics g)
Override paint so we knwo when to update ourselves |
protected void |
updateSettings(ControlDescriptor cd)
See if we should update the tree |
| Methods inherited from class ucar.unidata.ui.DndTree |
|---|
doDrop, dragDropEnd, dragEnter, dragEnter, dragExit, dragExit, dragGestureRecognized, dragOver, dragOver, drop, dropActionChanged, dropActionChanged, okToDrop, selectCursor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SettingsTree(IntegratedDataViewer theIdv)
theIdv - the idv| Method Detail |
|---|
public void changeName(DisplaySetting displaySetting)
displaySetting - settings to change namepublic void deleteSettings(List selected)
selected - settings to deleteprotected JComponent getContents()
public void paint(Graphics g)
paint in class DndTreeg - graphicsprotected void updateSettings(ControlDescriptor cd)
cd - The control descriptor to useprotected List getSelectedSettings()
protected boolean okToDrag(DefaultMutableTreeNode sourceNode)
okToDrag in class DndTreesourceNode - node
protected boolean okToDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode)
okToDrop in class DndTreesourceNode - fromdestNode - to
protected void doDrop(DefaultMutableTreeNode sourceNode,
DefaultMutableTreeNode destNode)
doDrop in class DndTreesourceNode - fromdestNode - to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||