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 TypeClassDescriptionclassClass 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 TypeMethodDescriptionvoidaddPropertyValue(Object object, String propName, String label, String category) Add a property valuevoidapplyDisplaySetting(DisplaySetting displaySetting) Apply the display settingsvoiddoApply()apply dialogvoiddoCancel()cancel dialogvoiddoOk()do ok of dialogvoiddoSave()Save the settingsGet the property valuesstatic StringGet label to show for the given valuestatic ListmakeDisplaySettingsMenuItems(List<DisplaySetting> displaySettings, Object object, String method, String labelPrefix) make menu itemsvoidsetDisplay(DisplayControlImpl display) Set the display to usevoidshowSelectMenu(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
 
 
 -