javax.media.jai.operator
Class RotateDescriptor
java.lang.Object
|
+--javax.media.jai.OperationDescriptorImpl
|
+--javax.media.jai.operator.RotateDescriptor
- All Implemented Interfaces:
- OperationDescriptor, RegistryElementDescriptor, Serializable
- public class RotateDescriptor
- extends OperationDescriptorImpl
An OperationDescriptor describing the "Rotate" operation.
The "Rotate" operation rotates an image about a given point by
a given angle, specified in radians. The origin defaults to (0, 0).
It may be noted that the minX, minY, width and height hints as
specified through the JAI.KEY_IMAGE_LAYOUT hint in the
RenderingHints object are not honored, as this operator
calculates the destination image bounds itself. The other
ImageLayout hints, like tileWidth and tileHeight,
however are honored.
"Rotate" defines a PropertyGenerator that performs an
identical transformation on the "ROI" property of the source image,
which can be retrieved by calling the getProperty
method with "ROI" as the property name.
Resource List
| Name | Value |
| GlobalName | Rotate |
| LocalName | Rotate |
| Vendor | com.sun.media.jai |
| Description | Rotate an image. |
| DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/RotateDescriptor.html |
| Version | 1.0 |
| arg0Desc | The X origin to rotate about. |
| arg1Desc | The Y origin to rotate about. |
| arg2Desc | The rotation angle in radians. |
| arg3Desc | The interpolation method. |
Parameter List
| Name | Class Type |
Default Value |
| xOrigin | java.lang.Float |
0.0F |
| yOrigin | java.lang.Float |
0.0F |
| angle | java.lang.Float |
NO_PARAMETER_DEFAULT |
| interpolation | javax.media.jai.Interpolation |
InterpolationNearest |
- See Also:
Interpolation,
OperationDescriptor, Serialized Form
| Methods inherited from class javax.media.jai.OperationDescriptorImpl |
arePropertiesSupported,
getDefaultSourceClass,
getDestClass,
getDestClass,
getInvalidRegion,
getName,
getNumParameters,
getNumSources,
getParamClasses,
getParamDefaults,
getParamDefaultValue,
getParameterListDescriptor,
getParamMaxValue,
getParamMinValue,
getParamNames,
getPropertyGenerators,
getRenderableDestClass,
getRenderableSourceClasses,
getResourceBundle,
getResources,
getSourceClasses,
getSourceClasses,
getSourceNames,
getSupportedModes,
isImmediate,
isModeSupported,
isRenderedSupported,
makeDefaultSourceClassList,
validateArguments,
validateArguments,
validateParameters,
validateParameters,
validateRenderableArguments,
validateRenderableSources,
validateSources,
validateSources |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RotateDescriptor
public RotateDescriptor()
- Constructor.
isRenderableSupported
public boolean isRenderableSupported()
- Returns
true since renderable operation is supported.
- Overrides:
- isRenderableSupported in class OperationDescriptorImpl
- Tags copied from class: OperationDescriptorImpl
- See Also:
OperationDescriptorImpl.isModeSupported(java.lang.String)
getPropertyGenerators
public PropertyGenerator[] getPropertyGenerators()
- Returns an array of
PropertyGenerators implementing
property inheritance for the "Rotate" operation.
- Overrides:
- getPropertyGenerators in class OperationDescriptorImpl
- Returns:
- An array of property generators.