Package org.esa.snap.rcp.preferences
Class PreferenceUtils
java.lang.Object
org.esa.snap.rcp.preferences.PreferenceUtils
Contains some static helper functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds a text note to the givenJPanel.static JComponent[]createColorComponents(Property colorProperty) Creates color combobox components for a given property.static JPanelcreateTitleLabel(String title) Creates aJPanelcontaining a label with the given text and a horizontal line.
-
Constructor Details
-
PreferenceUtils
public PreferenceUtils()
-
-
Method Details
-
addNote
Adds a text note to the givenJPanel.- Parameters:
panel- A panel to add the note to.text- The note text.
-
createColorComponents
Creates color combobox components for a given property.- Parameters:
colorProperty- The property to create the components for.- Returns:
- A new color combobox.
-
createTitleLabel
Creates aJPanelcontaining a label with the given text and a horizontal line.- Parameters:
title- The label text.- Returns:
- A
JPanelwith the title label.
-