Class HighDPISupport

java.lang.Object
org.vanted.scaling.vanted.HighDPISupport
All Implemented Interfaces:
PreferencesInterface

public class HighDPISupport
extends Object
implements PreferencesInterface
  • Field Details

  • Constructor Details

    • HighDPISupport

      public HighDPISupport()
  • Method Details

    • getDefaultParameters

      public List<Parameter> getDefaultParameters()
      Description copied from interface: PreferencesInterface
      On first start or on reset there will be no preferences available. The PreferenceManager will read this list containing the set of settings, that the implementing class thinks can be configured provide default values. All Parameters in this list will also appear in the PreferenceDialog. Entities providing preferences should add parameters to this array.
      Specified by:
      getDefaultParameters in interface PreferencesInterface
    • updatePreferences

      public void updatePreferences​(Preferences preferences)
      Description copied from interface: PreferencesInterface
      This method will be called, when preferences for this class have changed and the implementing class gets the chance of setting class (static) variables having the values of the parameters. Setting static class variables will help increase speed, when querying the parameters. Direct variable access VS querying the Preferences Object for this class
      Specified by:
      updatePreferences in interface PreferencesInterface
    • getPreferencesAlternativeName

      public String getPreferencesAlternativeName()
      Description copied from interface: PreferencesInterface
      return a custom preference category, that this class will reside in. If null is returned, this class will be put into a standard category dependent on its Super class
      Specified by:
      getPreferencesAlternativeName in interface PreferencesInterface
      Returns:
    • getClassInstance

      public static Object getClassInstance​(Class<?> clazz)
      Through reflection we get an instance of the specified class, given there is such static field defined.
      Parameters:
      clazz - the Class to extract the instance from
      Returns:
      a clazz instance