Package org.esa.snap.rcp.preferences
Class PreferenceUtils
- java.lang.Object
-
- org.esa.snap.rcp.preferences.PreferenceUtils
-
public class PreferenceUtils extends Object
Contains some static helper functions.
-
-
Constructor Summary
Constructors Constructor Description PreferenceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addNote(JPanel panel, String text)
Adds a text note to the givenJPanel
.static JComponent[]
createColorComponents(Property colorProperty)
Creates color combobox components for a given property.static JPanel
createTitleLabel(String title)
Creates aJPanel
containing a label with the given text and a horizontal line.
-
-
-
Method Detail
-
addNote
public static void addNote(JPanel panel, String text)
Adds a text note to the givenJPanel
.- Parameters:
panel
- A panel to add the note to.text
- The note text.
-
createColorComponents
public static JComponent[] createColorComponents(Property colorProperty)
Creates color combobox components for a given property.- Parameters:
colorProperty
- The property to create the components for.- Returns:
- A new color combobox.
-
-