|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.resources.image.JAIUtilities
A set of utilities methods working on JAI classes. Those method should be considered as temporary. They will be removed if Sun extends their class with the fonctionality provided here.
Method Summary | |
static void |
add(javax.media.jai.IntegerSequence sequence,
javax.media.jai.IntegerSequence toAdd,
int offset)
Copy all the value from toAdd in the given sequence while adding
the specified offset to each value. |
static boolean |
contains(javax.media.jai.IntegerSequence sequence,
int value)
Returns true if the given sequence contains the given value. |
static boolean |
containsAll(javax.media.jai.IntegerSequence sequence,
int lower,
int upper)
Returns true if the given sequence contains all values in the given range. |
static boolean |
containsAny(javax.media.jai.IntegerSequence sequence,
int lower,
int upper)
Returns true if the given sequence contains any value in the given range. |
static javax.media.jai.IntegerSequence |
createSequence(int min,
int max)
Workaround for IntegerSequence constructor bug. |
static void |
fill(javax.media.jai.IntegerSequence sequence,
int lower,
int upper)
Fill the specified integer sequence with numbers from lower inclusive
to upper exclusive. |
static int |
getMaximum(javax.media.jai.IntegerSequence sequence)
Returns the maximum (last) value in the specified sequence. |
static int |
getMinimum(javax.media.jai.IntegerSequence sequence)
Returns the minimum (first) value in the specified sequence. |
static int[] |
toArray(javax.media.jai.IntegerSequence sequence)
Returns all integers in the given sequence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void fill(javax.media.jai.IntegerSequence sequence, int lower, int upper)
lower
inclusive
to upper
exclusive. Nothing is done if the sequence
is
null
.
sequence
- The sequence to fill, or null
.lower
- The lower value, inclusive.upper
- The upper value, exclusive.public static void add(javax.media.jai.IntegerSequence sequence, javax.media.jai.IntegerSequence toAdd, int offset)
toAdd
in the given sequence
while adding
the specified offset
to each value. Nothing is done if sequence
is null
.
public static int getMinimum(javax.media.jai.IntegerSequence sequence) throws java.util.NoSuchElementException
sequence
- The sequence to test for the minimum value.
java.util.NoSuchElementException
- if there is no element in the given sequence.public static int getMaximum(javax.media.jai.IntegerSequence sequence) throws java.util.NoSuchElementException
sequence
- The sequence to test for the minimum value.
java.util.NoSuchElementException
- if there is no element in the given sequence.public static boolean contains(javax.media.jai.IntegerSequence sequence, int value)
true
if the given sequence contains the given value.
sequence
- The sequence to test.value
- The value to search.
true
if the sequence contains the given value.public static boolean containsAll(javax.media.jai.IntegerSequence sequence, int lower, int upper)
true
if the given sequence contains all values in the given range.
sequence
- The sequence to test.lower
- The lower value, inclusive.upper
- The upper value, exclusive.
true
if the sequence contains all values in the given range.public static boolean containsAny(javax.media.jai.IntegerSequence sequence, int lower, int upper)
true
if the given sequence contains any value in the given range.
sequence
- The sequence to test.lower
- The lower value, inclusive.upper
- The upper value, exclusive.
true
if the sequence contains at least one value in the given range.public static int[] toArray(javax.media.jai.IntegerSequence sequence)
new IntegerSequence(min, max)
when the bug will be fixed.
public static javax.media.jai.IntegerSequence createSequence(int min, int max)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |