public class DisplaySettingsDialog
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
DisplaySettingsDialog.PropertyValueWrapper
Class PropertyValueWrapper utility class
|
Constructor and Description |
---|
DisplaySettingsDialog(DisplayControlImpl display)
ctor
|
DisplaySettingsDialog(IntegratedDataViewer idv)
ctor
|
DisplaySettingsDialog(IntegratedDataViewer idv,
DisplayControlImpl display)
ctor
|
DisplaySettingsDialog(IntegratedDataViewer idv,
DisplayControlImpl display,
boolean showDialog)
The ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyValue(java.lang.Object object,
java.lang.String propName,
java.lang.String label,
java.lang.String category)
Add a property value
|
void |
applyDisplaySetting(DisplaySetting displaySetting)
Apply the display settings
|
void |
doApply()
apply dialog
|
void |
doCancel()
cancel dialog
|
void |
doOk()
do ok of dialog
|
void |
doSave()
Save the settings
|
java.util.List<PropertyValue> |
getPropertyValues()
Get the property values
|
static java.lang.String |
getValueLabel(java.lang.Object v)
Get label to show for the given value
|
static java.util.List |
makeDisplaySettingsMenuItems(java.util.List<DisplaySetting> displaySettings,
java.lang.Object object,
java.lang.String method,
java.lang.String labelPrefix)
make menu items
|
void |
setDisplay(DisplayControlImpl display)
Set the display to use
|
void |
showSelectMenu(javax.swing.JMenu menu)
Add items to the Select menu
|
public DisplaySettingsDialog(IntegratedDataViewer idv, DisplayControlImpl display)
idv
- the idvdisplay
- The initial display to usepublic DisplaySettingsDialog(IntegratedDataViewer idv, DisplayControlImpl display, boolean showDialog)
idv
- the idvdisplay
- Initial display to useshowDialog
- Should we show the dialogpublic DisplaySettingsDialog(IntegratedDataViewer idv)
idv
- the idvpublic DisplaySettingsDialog(DisplayControlImpl display)
display
- The initial displaypublic java.util.List<PropertyValue> getPropertyValues()
public void setDisplay(DisplayControlImpl display)
display
- The displaypublic void addPropertyValue(java.lang.Object object, java.lang.String propName, java.lang.String label, java.lang.String category)
object
- value of the propertypropName
- its namelabel
- label to usecategory
- The category of the propertypublic void showSelectMenu(javax.swing.JMenu menu)
menu
- select menupublic void doSave()
public void applyDisplaySetting(DisplaySetting displaySetting)
displaySetting
- The display settingpublic static java.util.List makeDisplaySettingsMenuItems(java.util.List<DisplaySetting> displaySettings, java.lang.Object object, java.lang.String method, java.lang.String labelPrefix)
displaySettings
- List of display settingsobject
- ???method
- Method to calllabelPrefix
- Prefixpublic void doCancel()
public void doOk()
public void doApply()
public static java.lang.String getValueLabel(java.lang.Object v)
v
- value