Enum PixmapRatioMode

    • Enum Constant Detail

      • NONE

        public static final PixmapRatioMode NONE
        The pixmap will not be scaled at all.
      • ONE_HALF

        public static final PixmapRatioMode ONE_HALF
        The width to height ration is one to one half (1:1/2).
      • TWO_THIRDS

        public static final PixmapRatioMode TWO_THIRDS
        The width to height ration is one to two thirds (1:2/3).
      • THREE_QUARTERS

        public static final PixmapRatioMode THREE_QUARTERS
        The width to height ration is one to three quarters (1:3/4).
      • CONSOLE

        public static final PixmapRatioMode CONSOLE
        The width to height ration is adjusted to look good on a console / terminal.
    • Method Detail

      • values

        public static PixmapRatioMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PixmapRatioMode c : PixmapRatioMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PixmapRatioMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getRatio

        public float getRatio()
        Gets the ratio.
        Returns:
        the ratio