Class PreferencePane

java.lang.Object
qupath.lib.gui.panes.PreferencePane

public class PreferencePane extends Object
QuPath's preference pane, giving a means to modify many of the properties within PathPrefs.
Author:
Pete Bankhead
  • Constructor Details

    • PreferencePane

      public PreferencePane()
  • Method Details

    • getPropertySheet

      public org.controlsfx.control.PropertySheet getPropertySheet()
      Get the property sheet for this PreferencePane. This is a Node that may be added to a scene for display.
      Returns:
    • getPane

      public Pane 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.
      use PropertyItemBuilder instead
      Add 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.
      use PropertyItemBuilder instead
      Add 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.
      use PropertyItemBuilder instead
      Add 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.
      use PropertyItemBuilder instead
      Add 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.
      use PropertyItemBuilder instead
      Add 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.
      use PropertyItemBuilder instead
      Create a default PropertySheet.Item for a generic property.
      Type Parameters:
      T - type of the property
      Parameters:
      property - the property
      cls - the property type
      Returns:
      a new PropertySheet.Item