| java.util.AbstractList org.geotools.coverage.CategoryList org.geotools.coverage.GeophysicsCategoryList
GeophysicsCategoryList | final class GeophysicsCategoryList extends CategoryList (Code) | | An immutable list of geophysics category. Elements are usually (but not always) instances
of [@link GeophysicsCategory}. Exception to this rule includes categories wrapping an
identity transforms.
This list can transform geophysics values into sample values using
the list of
Category . This transform is thread safe if each
Category.getSampleToGeophysics transform is thread-safe too.
since: 2.1 version: $Id: GeophysicsCategoryList.java 22817 2006-11-17 17:24:55Z desruisseaux $ author: Martin Desruisseaux |
Constructor Summary | |
| GeophysicsCategoryList(Category[] categories, Unit unit, CategoryList inverse) Constructs a category list using the specified array of categories.
Parameters: categories - The list of categories. |
Method Summary | |
public boolean | equals(Object object) Compares the specified object with this category list for equality. | synchronized StringBuffer | format(double value, boolean writeUnits, Locale locale, StringBuffer buffer) Formatte la valeur spécifiée selon les conventions locales. | public CategoryList | geophysics(boolean toGeophysics) If
toGeophysics is
false , cancel the action of a previous
call to
geophysics(true) . | public Unit | getUnits() Returns the unit information for quantitative categories in this list. |
GeophysicsCategoryList | GeophysicsCategoryList(Category[] categories, Unit unit, CategoryList inverse)(Code) | | Constructs a category list using the specified array of categories.
Parameters: categories - The list of categories. Elements should beinstances of GeophysicsCategory(most of the time, but not always). Parameters: unit - The unit information for all quantitative categories.May be null if no category has units. Parameters: inverse - The CategoryList which is constructing thisGeophysicsCategoryList. throws: IllegalArgumentException - if two or more categorieshave overlapping sample value range. |
equals | public boolean equals(Object object)(Code) | | Compares the specified object with this category list for equality.
If the two objects are instances of
CategoryList , then the
test is a little bit stricter than the default
AbstractList.equals .
|
format | synchronized StringBuffer format(double value, boolean writeUnits, Locale locale, StringBuffer buffer)(Code) | | Formatte la valeur spécifiée selon les conventions locales. Le nombre sera
écrit avec un nombre de chiffres après la virgule approprié pour la catégorie.
Le symbole des unités sera ajouté après le nombre si
writeUnit est
true .
Parameters: value - Valeur du paramètre géophysique à formatter. Parameters: writeUnit - Indique s'il faut écrire le symbole des unités après le nombre.Cet argument sera ignoré si aucune unité n'avait été spécifiée au constructeur. Parameters: locale - Conventions locales à utiliser, ou null pour les conventions pardéfaut. Parameters: buffer - Le buffer dans lequel écrire la valeur. Le buffer buffer dans lequel auront été écrit la valeur et les unités. |
geophysics | public CategoryList geophysics(boolean toGeophysics)(Code) | | If
toGeophysics is
false , cancel the action of a previous
call to
geophysics(true) . This method always returns a list of categories
in which
Category.geophysics(boolean) Category.geophysics (toGeophysics)
has been invoked for each category.
|
getUnits | public Unit getUnits()(Code) | | Returns the unit information for quantitative categories in this list.
May returns
null if there is no quantitative categories
in this list, or if there is no unit information.
|
Methods inherited from org.geotools.coverage.CategoryList | static int binarySearch(double[] array, double key)(Code)(Java Doc) final public int compare(Object o1, Object o2)(Code)(Java Doc) final public Matrix derivative(DirectPosition point) throws TransformException(Code)(Java Doc) final public double derivative(double value) throws TransformException(Code)(Java Doc) public boolean equals(Object object)(Code)(Java Doc) StringBuffer format(double value, boolean writeUnits, Locale locale, StringBuffer buffer)(Code)(Java Doc) final public String format(double value, Locale locale)(Code)(Java Doc) public CategoryList geophysics(boolean toGeophysics)(Code)(Java Doc) final public Object get(int i)(Code)(Java Doc) final public Category getCategory(double sample)(Code)(Java Doc) final public ColorModel getColorModel(int visibleBand, int numBands)(Code)(Java Doc) final public ColorModel getColorModel(int visibleBand, int numBands, int type)(Code)(Java Doc) final public InternationalString getName()(Code)(Java Doc) final public NumberRange getRange()(Code)(Java Doc) final public int getSourceDimensions()(Code)(Java Doc) final public int getTargetDimensions()(Code)(Java Doc) public Unit getUnits()(Code)(Java Doc) final public MathTransform inverse()(Code)(Java Doc) public boolean isIdentity()(Code)(Java Doc) final boolean isScaled(boolean toGeophysics)(Code)(Java Doc) static boolean isScaled(Category[] categories, boolean toGeophysics)(Code)(Java Doc) static boolean isSorted(Category[] categories)(Code)(Java Doc) final public int size()(Code)(Java Doc) final public Object[] toArray()(Code)(Java Doc) final public String toString()(Code)(Java Doc) final String toString(Object owner)(Code)(Java Doc) public String toWKT() throws UnsupportedOperationException(Code)(Java Doc) final public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws TransformException(Code)(Java Doc) final public double transform(double value) throws TransformException(Code)(Java Doc) final public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws TransformException(Code)(Java Doc) final public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(Code)(Java Doc) final public void transform(WritableRectIter iterator) throws RasterFormatException(Code)(Java Doc)
|
Fields inherited from java.util.AbstractList | protected transient int modCount(Code)(Java Doc)
|
|
|