Class DefaultPrintPreferences

  • All Implemented Interfaces:
    IPrintPreferences

    public class DefaultPrintPreferences
    extends java.lang.Object
    implements IPrintPreferences
    This class is a simple container for the preferences for the print dialog.
    • Constructor Detail

      • DefaultPrintPreferences

        public DefaultPrintPreferences()
        Creates a new instance of DefaultPrintPreferences, which is initialized with the default values.
    • Method Detail

      • setIntPreference

        public void setIntPreference​(int preference,
                                     int value)
        Description copied from interface: IPrintPreferences
        Sets the integer preference value of the preference at position atIndex to the given value.
        Specified by:
        setIntPreference in interface IPrintPreferences
        Parameters:
        preference - The index of the preference to set
        value - The new value to set
      • getIntPreference

        public int getIntPreference​(int preference)
        Description copied from interface: IPrintPreferences
        Returns the integer value of the preference with the given index.
        Specified by:
        getIntPreference in interface IPrintPreferences
        Parameters:
        preference - The index of the preference to return
        Returns:
        The value of the preference with the given index as an integer
      • setDoublePreference

        public void setDoublePreference​(int preference,
                                        double value)
        Description copied from interface: IPrintPreferences
        Sets the double preference value of the preference at position atIndex to the given value.
        Specified by:
        setDoublePreference in interface IPrintPreferences
        Parameters:
        preference - The index of the preference to set
        value - The new value to set
      • getDoublePreference

        public double getDoublePreference​(int preference)
        Description copied from interface: IPrintPreferences
        Returns the double value of the preference with the given index.
        Specified by:
        getDoublePreference in interface IPrintPreferences
        Parameters:
        preference - The index of the preference to return
        Returns:
        The value of the preference with the given index as a double