Enum Class BufferedPainter.ResizeMode

java.lang.Object
java.lang.Enum<BufferedPainter.ResizeMode>
ca.phon.ui.painter.BufferedPainter.ResizeMode
All Implemented Interfaces:
Serializable, Comparable<BufferedPainter.ResizeMode>, Constable
Enclosing class:
BufferedPainter<T>

public static enum BufferedPainter.ResizeMode extends Enum<BufferedPainter.ResizeMode>
This class will keep a reference to the size of the previously rendered area. When this changes, one of two mode are supported.
  • Enum Constant Details

    • REPAINT_ON_RESIZE

      public static final BufferedPainter.ResizeMode REPAINT_ON_RESIZE
      Repaint buffer when the display area changes (default)
    • REPAINT_ON_RESIZE_Y

      public static final BufferedPainter.ResizeMode REPAINT_ON_RESIZE_Y
      Only repaint when height changes
    • REPAINT_ON_RESIZE_X

      public static final BufferedPainter.ResizeMode REPAINT_ON_RESIZE_X
      Only repaint when width changes
    • SCALE_ON_RESIZE

      public static final BufferedPainter.ResizeMode SCALE_ON_RESIZE
      Scale the contents of the current buffer, useful when client data scales well
  • Method Details

    • values

      public static BufferedPainter.ResizeMode[] 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 BufferedPainter.ResizeMode 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