Method Summary |
|
public static ColorInterpretation | getColorInterpretation(ColorModel model, int band) Returns the color interpretation code for the specified color model and band number.
Parameters: model - The color model. Parameters: band - The band to query. |
public static int | getDataBufferType(SampleDimensionType type) Returns the
DataBuffer type. |
public static InternationalString | getName(SampleDimensionType type) Returns the sample dimension type name as an international string. |
public static NumberRange | getPositiveRange(SampleDimensionType type) Returns the range of positive sample values (excluding 0). |
public static NumberRange | getRange(SampleDimensionType type) Returns the full range of sample values for the specified dimension type. |
public static SampleDimensionType | getSampleDimensionType(Range range) Returns the smallest sample dimension type capable to hold the specified range of values.
Parameters: range - The range of values. |
public static SampleDimensionType | getSampleDimensionType(double min, double max) Returns the smallest sample dimension type capable to hold the specified range of values.
An heuristic approach is used for non-integer values.
Parameters: min - The lower value, inclusive. Parameters: max - The upper value, inclusive as well. |
public static SampleDimensionType | getSampleDimensionType(long min, long max) Returns the smallest sample dimension type capable to hold the specified range of values.
Parameters: min - The lower value, inclusive. Parameters: max - The upper value, inclusive as well. |
public static SampleDimensionType | getSampleDimensionType(SampleModel model, int band) Returns the sample dimension type for the specified sample model and band number. |
public static int | getSize(SampleDimensionType type) Returns the size in bits. |
public static boolean | isFloatingPoint(SampleDimensionType type) Returns
true for floating-point data type. |
public static boolean | isSigned(SampleDimensionType type) Returns
true for signed sample type. |
public static Number | wrapSample(double value, SampleDimensionType type, boolean allowWidening) Wraps the specified value into a number of the specified data type. |