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
Modifier and TypeClassDescriptionstatic class
A javax.swing.JComboBox that is used for selecting a RenderingInterpolationType.static class
A JButton for setting the RenderingInterpolationType.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe RenderingInterpolationType for bi-cubic interpolation.The RenderingInterpolationType for bi-linear interpolation.The RenderingInterpolationType for nearest neighbour interpolation. -
Field Summary
Modifier and TypeFieldDescriptionstatic final RenderingInterpolationType
The default RenderingInterpolationType.static final String
The Preference name for rendering interpolation type setting. -
Method Summary
Modifier and TypeMethodDescriptionint
int
static RenderingInterpolationType
Returns the user's preferred RenderingInterpolationType as set in the user preferences.Returns the rendering hint for this RenderingInterpolationType.void
static void
Saves the user's preferred RenderingInterpolationType to the user preferences.toString()
static RenderingInterpolationType
Returns 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:
toString
in classEnum<RenderingInterpolationType>
-
getRenderingHint
Returns the rendering hint for this RenderingInterpolationType.- Returns:
- the rendering hint for this RenderingInterpolationType.
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
paintIcon
-