| |
|
| java.lang.Object org.geotools.coverage.grid.GeneralGridCoordinates
GeneralGridCoordinates | public class GeneralGridCoordinates implements GridCoordinates,Serializable(Code) | | Holds the set of grid coordinates that specifies the location of the
within the
.
since: 2.4 version: $Id: GeneralGridCoordinates.java 24925 2007-03-27 20:12:08Z jgarnett $ author: Martin Desruisseaux |
Constructor Summary | |
public | GeneralGridCoordinates(int dimension) Creates a grid coordinates of the specified dimension. | public | GeneralGridCoordinates(int[] coordinates) Creates a grid coordinates initialized to the specified values. | | GeneralGridCoordinates(int[] coordinates, int lower, int upper) Creates a grid coordinates initialized to the specified values
in the specified range. |
Method Summary | |
public Object | clone() Returns a clone of this coordinates. | public boolean | equals(Object object) Compares this grid coordinates with the specified object for equality. | public int | getCoordinateValue(int i) Returns the coordinate value at the specified dimension. | public int[] | getCoordinateValues() Returns one integer value for each dimension of the grid. | public int | getDimension() Returns the number of dimensions. | public int | hashCode() Returns a hash code value for this object. | public void | setCoordinateValue(int i, int value) Sets the coordinate value at the specified dimension (optional operation). | public String | toString() Returns a string representation of this grid coordinates. |
GeneralGridCoordinates | public GeneralGridCoordinates(int dimension)(Code) | | Creates a grid coordinates of the specified dimension.
All coordinates are initially set to 0.
|
GeneralGridCoordinates | public GeneralGridCoordinates(int[] coordinates)(Code) | | Creates a grid coordinates initialized to the specified values.
|
GeneralGridCoordinates | GeneralGridCoordinates(int[] coordinates, int lower, int upper)(Code) | | Creates a grid coordinates initialized to the specified values
in the specified range.
|
clone | public Object clone()(Code) | | Returns a clone of this coordinates.
|
equals | public boolean equals(Object object)(Code) | | Compares this grid coordinates with the specified object for equality.
|
getCoordinateValue | public int getCoordinateValue(int i)(Code) | | Returns the coordinate value at the specified dimension. This method is equivalent to
[i] . It is provided for
efficienty.
|
getCoordinateValues | public int[] getCoordinateValues()(Code) | | Returns one integer value for each dimension of the grid. The ordering of these coordinate
values shall be the same as that of the elements of
Grid.getAxisNames . The value of
a single coordinate shall be the number of offsets from the origin of the grid in the
direction of a specific axis.
A copy of the coordinates. Changes in the returned array will not be reflectedback in this GeneralGridCoordinates object. |
getDimension | public int getDimension()(Code) | | Returns the number of dimensions. This method is equivalent to
.length . It is
provided for efficienty.
|
setCoordinateValue | public void setCoordinateValue(int i, int value) throws UnsupportedOperationException(Code) | | Sets the coordinate value at the specified dimension (optional operation).
Parameters: i - The index of the value to set. Parameters: value - The new value. throws: UnsupportedOperationException - if this grid coordinates is not modifiable. |
toString | public String toString()(Code) | | Returns a string representation of this grid coordinates.
|
|
|
|