Package qupath.lib.gui.panes
Class PreferencePane
java.lang.Object
qupath.lib.gui.panes.PreferencePane
QuPath's preference pane, giving a means to modify many of the properties within PathPrefs.
- Author:
- Pete Bankhead
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> void
addChoicePropertyPreference
(Property<T> prop, ObservableList<T> choices, Class<? extends T> cls, String name, String category, String description) Deprecated.<T> void
addChoicePropertyPreference
(Property<T> prop, ObservableList<T> choices, Class<? extends T> cls, String name, String category, String description, boolean makeSearchable) Deprecated.usePropertyItemBuilder
insteadvoid
addColorPropertyPreference
(IntegerProperty prop, String name, String category, String description) Deprecated.usePropertyItemBuilder
insteadvoid
addDirectoryPropertyPreference
(Property<String> prop, String name, String category, String description) Deprecated.usePropertyItemBuilder
instead<T> void
addPropertyPreference
(Property<T> prop, Class<? extends T> cls, String name, String category, String description) Deprecated.usePropertyItemBuilder
insteadstatic <T> org.controlsfx.control.PropertySheet.Item
createPropertySheetItem
(Property<T> property, Class<? extends T> cls) Deprecated.usePropertyItemBuilder
insteadgetPane()
Get a pane to display.org.controlsfx.control.PropertySheet
Get the property sheet for thisPreferencePane
.void
Request that all the property editors are regenerated.
-
Constructor Details
-
PreferencePane
public PreferencePane()
-
-
Method Details
-
getPropertySheet
public org.controlsfx.control.PropertySheet getPropertySheet()Get the property sheet for thisPreferencePane
. This is aNode
that may be added to a scene for display.- Returns:
-
getPane
Get a pane to display. This includes the property sheet, and additional information that should be displayed to the user.- Returns:
- Since:
- v0.5.0
-
refreshAllEditors
public void refreshAllEditors()Request that all the property editors are regenerated. This is useful if the Locale has changed, and so the text may need to be updated. -
addPropertyPreference
@Deprecated public <T> void addPropertyPreference(Property<T> prop, Class<? extends T> cls, String name, String category, String description) Deprecated.usePropertyItemBuilder
insteadAdd a new preference based on a specified Property.- Parameters:
prop
-cls
-name
-category
-description
-
-
addColorPropertyPreference
@Deprecated public void addColorPropertyPreference(IntegerProperty prop, String name, String category, String description) Deprecated.usePropertyItemBuilder
insteadAdd a new color preference based on a specified IntegerProperty (storing a packed RGBA value).- Parameters:
prop
-name
-category
-description
-
-
addDirectoryPropertyPreference
@Deprecated public void addDirectoryPropertyPreference(Property<String> prop, String name, String category, String description) Deprecated.usePropertyItemBuilder
insteadAdd a new directory preference based on a specified StringProperty.- Parameters:
prop
-name
-category
-description
-
-
addChoicePropertyPreference
@Deprecated public <T> void addChoicePropertyPreference(Property<T> prop, ObservableList<T> choices, Class<? extends T> cls, String name, String category, String description) Deprecated.usePropertyItemBuilder
insteadAdd a new choice preference, to select from a list of possibilities.- Parameters:
prop
-choices
-cls
-name
-category
-description
-
-
addChoicePropertyPreference
@Deprecated public <T> void addChoicePropertyPreference(Property<T> prop, ObservableList<T> choices, Class<? extends T> cls, String name, String category, String description, boolean makeSearchable) Deprecated.usePropertyItemBuilder
insteadAdd a new choice preference, to select from an optionally searchable list of possibilities.- Parameters:
prop
-choices
-cls
-name
-category
-description
-makeSearchable
- make the choice item's editor searchable (useful for long lists)
-
createPropertySheetItem
@Deprecated public static <T> org.controlsfx.control.PropertySheet.Item createPropertySheetItem(Property<T> property, Class<? extends T> cls) Deprecated.usePropertyItemBuilder
insteadCreate a defaultPropertySheet.Item
for a generic property.- Type Parameters:
T
- type of the property- Parameters:
property
- the propertycls
- the property type- Returns:
- a new
PropertySheet.Item
-
PropertyItemBuilder
instead