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 void
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.
-
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 aJPanel
containing a label with the given text and a horizontal line.- Parameters:
title
- The label text.- Returns:
- A
JPanel
with the title label.
-