javax.media.jai.operator
Class PatternDescriptor
java.lang.Object
|
+--javax.media.jai.OperationDescriptorImpl
|
+--javax.media.jai.operator.PatternDescriptor
- All Implemented Interfaces:
- OperationDescriptor, RegistryElementDescriptor, Serializable
- public class PatternDescriptor
- extends OperationDescriptorImpl
An OperationDescriptor
describing the "Pattern" operation.
The "Pattern" operation defines a tiled image consisting of a
repeated pattern. The width and height of the destination image
must be specified. The tileWidth and tileHeight are equal to pattern's
width and height. Each tile of the destination image will be defined
by a reference to a shared instance of the pattern.
Resource List
Name | Value |
GlobalName | pattern |
LocalName | pattern |
Vendor | com.sun.media.jai |
Description | Defines an image with a repeated
pattern. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/PatternDescriptor.html |
Version | 1.0 |
arg0Desc | The width of the image in pixels. |
arg1Desc | The height of the image in pixels. |
Parameter List
Name | Class Type |
Default Value |
width | java.lang.Integer |
NO_PARAMETER_DEFAULT |
height | java.lang.Integer |
NO_PARAMETER_DEFAULT |
- See Also:
OperationDescriptor
, Serialized Form
Method Summary |
Number |
getParamMinValue(int index)
Returns the minimum legal value of a specified numeric parameter
for this operation. |
Methods inherited from class javax.media.jai.OperationDescriptorImpl |
arePropertiesSupported,
getDefaultSourceClass,
getDestClass,
getDestClass,
getInvalidRegion,
getName,
getNumParameters,
getNumSources,
getParamClasses,
getParamDefaults,
getParamDefaultValue,
getParameterListDescriptor,
getParamMaxValue,
getParamNames,
getPropertyGenerators,
getPropertyGenerators,
getRenderableDestClass,
getRenderableSourceClasses,
getResourceBundle,
getResources,
getSourceClasses,
getSourceClasses,
getSourceNames,
getSupportedModes,
isImmediate,
isModeSupported,
isRenderableSupported,
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 |
PatternDescriptor
public PatternDescriptor()
- Constructor.
getParamMinValue
public Number getParamMinValue(int index)
- Description copied from class: OperationDescriptorImpl
- Returns the minimum legal value of a specified numeric parameter
for this operation. If the specified parameter is non-numeric,
this method returns
null
.
The return value should be of the class types corresponding to
the parameter's primitive type, that is, Byte
for a
byte
parameter, Integer
for an
int
parameter, and so forth.
The default implementation returns the minimum value
in the parameter data type's full range.
- Overrides:
- getParamMinValue in class OperationDescriptorImpl
- Tags copied from class: OperationDescriptorImpl
- Parameters:
index
- The index of the parameter to be queried.- Returns:
- A
Number
representing the minimum legal value,
or null
if the specified parameter is not
numeric. - Throws:
- IllegalArgumentException - if this operation has no parameters.
- ArrayIndexOutOfBoundsException - if there is no parameter
corresponding to the specified
index
. - See Also:
ParameterListDescriptor.getParamValueRange(java.lang.String)
,
ParameterListDescriptor.getEnumeratedParameterValues(java.lang.String)
,
ParameterListDescriptor.isParameterValueValid(java.lang.String, java.lang.Object)