Enum Class RenderingInterpolationType

java.lang.Object
java.lang.Enum<RenderingInterpolationType>
com.xinapse.image.RenderingInterpolationType
All Implemented Interfaces:
Serializable, Comparable<RenderingInterpolationType>, Constable, Icon

public enum RenderingInterpolationType extends Enum<RenderingInterpolationType> implements Icon
An Enumeration of the types rendering interpolation when drawing pixel values to screen.
  • Enum Constant Details

    • NEAREST_NEIGHBOUR

      public static final RenderingInterpolationType NEAREST_NEIGHBOUR
      The RenderingInterpolationType for nearest neighbour interpolation.
    • BILINEAR

      public static final RenderingInterpolationType BILINEAR
      The RenderingInterpolationType for bi-linear interpolation.
    • BICUBIC

      public static final RenderingInterpolationType BICUBIC
      The RenderingInterpolationType for bi-cubic interpolation.
  • Field Details

  • Method Details

    • values

      public static RenderingInterpolationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RenderingInterpolationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPreferredRenderingInterpolationType

      public static RenderingInterpolationType getPreferredRenderingInterpolationType()
      Returns the user's preferred RenderingInterpolationType as set in the user preferences.
      Returns:
      user's preferred RenderingInterpolationType.
    • savePreferredRenderingInterpolationType

      public static void savePreferredRenderingInterpolationType(RenderingInterpolationType type)
      Saves the user's preferred RenderingInterpolationType to the user preferences.
      Parameters:
      type - the RenderingInterpolationType to save to the user's preferences.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RenderingInterpolationType>
    • getRenderingHint

      public Object getRenderingHint()
      Returns the rendering hint for this RenderingInterpolationType.
      Returns:
      the rendering hint for this RenderingInterpolationType.
    • getIconHeight

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon
    • getIconWidth

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon