Package com.xinapse.image
Enum Class RenderingInterpolationType
- All Implemented Interfaces:
Serializable,Comparable<RenderingInterpolationType>,Constable,Icon
An Enumeration of the types rendering interpolation when drawing pixel values to screen.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA javax.swing.JComboBox that is used for selecting a RenderingInterpolationType.static classA JButton for setting the RenderingInterpolationType.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe RenderingInterpolationType for bi-cubic interpolation.The RenderingInterpolationType for bi-linear interpolation.The RenderingInterpolationType for nearest neighbour interpolation. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RenderingInterpolationTypeThe default RenderingInterpolationType.static final StringThe Preference name for rendering interpolation type setting. -
Method Summary
Modifier and TypeMethodDescriptionintintstatic RenderingInterpolationTypeReturns the user's preferred RenderingInterpolationType as set in the user preferences.Returns the rendering hint for this RenderingInterpolationType.voidstatic voidSaves the user's preferred RenderingInterpolationType to the user preferences.toString()static RenderingInterpolationTypeReturns the enum constant of this class with the specified name.static RenderingInterpolationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEAREST_NEIGHBOUR
The RenderingInterpolationType for nearest neighbour interpolation. -
BILINEAR
The RenderingInterpolationType for bi-linear interpolation. -
BICUBIC
The RenderingInterpolationType for bi-cubic interpolation.
-
-
Field Details
-
DEFAULT
The default RenderingInterpolationType. -
PREFERENCE_NAME
The Preference name for rendering interpolation type setting.- See Also:
-
-
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
-
getPreferredRenderingInterpolationType
Returns the user's preferred RenderingInterpolationType as set in the user preferences.- Returns:
- user's preferred RenderingInterpolationType.
-
savePreferredRenderingInterpolationType
Saves the user's preferred RenderingInterpolationType to the user preferences.- Parameters:
type- the RenderingInterpolationType to save to the user's preferences.
-
toString
- Overrides:
toStringin classEnum<RenderingInterpolationType>
-
getRenderingHint
Returns the rendering hint for this RenderingInterpolationType.- Returns:
- the rendering hint for this RenderingInterpolationType.
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
paintIcon
-