Package ucar.unidata.idv.control
Class DisplaySettingsDialog
java.lang.Object
ucar.unidata.idv.control.DisplaySettingsDialog
Shows the display settings dialog
- Version:
- $Revision: 1.13 $
- Author:
- IDV development team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Class PropertyValueWrapper utility class -
Constructor Summary
ConstructorsConstructorDescriptionDisplaySettingsDialog
(DisplayControlImpl display) ctorctorDisplaySettingsDialog
(IntegratedDataViewer idv, DisplayControlImpl display) ctorDisplaySettingsDialog
(IntegratedDataViewer idv, DisplayControlImpl display, boolean showDialog) The ctor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyValue
(Object object, String propName, String label, String category) Add a property valuevoid
applyDisplaySetting
(DisplaySetting displaySetting) Apply the display settingsvoid
doApply()
apply dialogvoid
doCancel()
cancel dialogvoid
doOk()
do ok of dialogvoid
doSave()
Save the settingsGet the property valuesstatic String
Get label to show for the given valuestatic List
makeDisplaySettingsMenuItems
(List<DisplaySetting> displaySettings, Object object, String method, String labelPrefix) make menu itemsvoid
setDisplay
(DisplayControlImpl display) Set the display to usevoid
showSelectMenu
(JMenu menu) Add items to the Select menu
-
Constructor Details
-
DisplaySettingsDialog
ctor- Parameters:
idv
- the idvdisplay
- The initial display to use
-
DisplaySettingsDialog
public DisplaySettingsDialog(IntegratedDataViewer idv, DisplayControlImpl display, boolean showDialog) The ctor- Parameters:
idv
- the idvdisplay
- Initial display to useshowDialog
- Should we show the dialog
-
DisplaySettingsDialog
ctor- Parameters:
idv
- the idv
-
DisplaySettingsDialog
ctor- Parameters:
display
- The initial display
-
-
Method Details
-
getPropertyValues
Get the property values- Returns:
- property values
-
setDisplay
Set the display to use- Parameters:
display
- The display
-
addPropertyValue
Add a property value- Parameters:
object
- value of the propertypropName
- its namelabel
- label to usecategory
- The category of the property
-
showSelectMenu
Add items to the Select menu- Parameters:
menu
- select menu
-
doSave
public void doSave()Save the settings -
applyDisplaySetting
Apply the display settings- Parameters:
displaySetting
- The display setting
-
makeDisplaySettingsMenuItems
public static List makeDisplaySettingsMenuItems(List<DisplaySetting> displaySettings, Object object, String method, String labelPrefix) make menu items- Parameters:
displaySettings
- List of display settingsobject
- ???method
- Method to calllabelPrefix
- Prefix- Returns:
- Items
-
doCancel
public void doCancel()cancel dialog -
doOk
public void doOk()do ok of dialog -
doApply
public void doApply()apply dialog -
getValueLabel
Get label to show for the given value- Parameters:
v
- value- Returns:
- label
-