Package ca.phon.ui.painter
Enum Class BufferedPainter.ResizeMode
- All Implemented Interfaces:
Serializable
,Comparable<BufferedPainter.ResizeMode>
,Constable
- Enclosing class:
BufferedPainter<T>
This class will keep a reference to the size of the
previously rendered area. When this changes, one
of two mode are supported.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepaint buffer when the display area changes (default)Only repaint when width changesOnly repaint when height changesScale the contents of the current buffer, useful when client data scales well -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedPainter.ResizeMode
Returns the enum constant of this class with the specified name.static BufferedPainter.ResizeMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REPAINT_ON_RESIZE
Repaint buffer when the display area changes (default) -
REPAINT_ON_RESIZE_Y
Only repaint when height changes -
REPAINT_ON_RESIZE_X
Only repaint when width changes -
SCALE_ON_RESIZE
Scale the contents of the current buffer, useful when client data scales well
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-