Package com.luciad.tea
Class TLcdMatrix
java.lang.Object
com.luciad.tea.TLcdMatrix
- All Implemented Interfaces:
ILcdMatrixView,ILcdMatrix
A
TLcdMatrix is a "regular" ILcdMatrixView, with
the x- and y-coordinates are regularly spaced.
The implementation of the ILcdMatrix interface is for backward
compatibility.-
Constructor Summary
ConstructorsConstructorDescriptionTLcdMatrix(double[][] aValueArray, double[] aXArray, double[] aYArray) Creates a matrix of points which are regularly spaced. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of columns in this matrix view.intDeprecated.intReturns the number of rows in this matrix view.doublegetValue(int i, int j) Returns the value of the matrix at point (i,j).intgetWidth()Deprecated.UsegetColumnCount().doublegetX(int i, int j) Deprecated.doublegetY(int i, int j) Deprecated.doubleretrieveAssociatedPointX(int i, int j) Returns the x-coordinate of the associated point corresponding to the column indexaColumnIndexand the row indexaRowIndex.doubleretrieveAssociatedPointY(int i, int j) Returns the y-coordinate of the associated point corresponding to the column indexaColumnIndexand the row indexaRowIndex.
-
Constructor Details
-
TLcdMatrix
public TLcdMatrix(double[][] aValueArray, double[] aXArray, double[] aYArray) Creates a matrix of points which are regularly spaced.- Parameters:
aValueArray- the array of values for the given points.aXArray- the array of values for the first coordinate of the points.aYArray- the array of values for the second coordinate of the points.
-
-
Method Details
-
getValue
public double getValue(int i, int j) Description copied from interface:ILcdMatrixReturns the value of the matrix at point (i,j).- Specified by:
getValuein interfaceILcdMatrix- Specified by:
getValuein interfaceILcdMatrixView- Parameters:
i- The first index of the matrix point.j- The second index of the matrix point.- Returns:
- The value of the matrix at point (i,j).
-
retrieveAssociatedPointX
public double retrieveAssociatedPointX(int i, int j) Description copied from interface:ILcdMatrixViewReturns the x-coordinate of the associated point corresponding to the column indexaColumnIndexand the row indexaRowIndex.- Specified by:
retrieveAssociatedPointXin interfaceILcdMatrixView- Parameters:
i- the column index, positive and smaller than the columncount.j- the row index, positive and smaller than the rowcount.- Returns:
- the x-coordinate of the associated point.
-
retrieveAssociatedPointY
public double retrieveAssociatedPointY(int i, int j) Description copied from interface:ILcdMatrixViewReturns the y-coordinate of the associated point corresponding to the column indexaColumnIndexand the row indexaRowIndex.- Specified by:
retrieveAssociatedPointYin interfaceILcdMatrixView- Parameters:
i- the column index, positive and smaller than the columncount.j- the row index, positive and smaller than the rowcount.- Returns:
- the y-coordinate of the associated point.
-
getRowCount
public int getRowCount()Description copied from interface:ILcdMatrixViewReturns the number of rows in this matrix view. The number of rows shall be strictly positive.- Specified by:
getRowCountin interfaceILcdMatrixView- Returns:
- the number of rows in this matrix view, strictly positive.
-
getColumnCount
public int getColumnCount()Description copied from interface:ILcdMatrixViewReturns the number of columns in this matrix view. The number of columns shall be strictly positive.- Specified by:
getColumnCountin interfaceILcdMatrixView- Returns:
- the number of columns in this matrix view, strictly positive.
-
getX
public double getX(int i, int j) Deprecated.Description copied from interface:ILcdMatrixReturns the "true" x-coordinate at point (i,j).- Specified by:
getXin interfaceILcdMatrix- Parameters:
i- The first index of the matrix point.j- The second index of the matrix point.- Returns:
- The "true" x-coordinate at point (i,j).
-
getY
public double getY(int i, int j) Deprecated.Description copied from interface:ILcdMatrixReturns the "true" y-coordinate at point (i,j).- Specified by:
getYin interfaceILcdMatrix- Parameters:
i- The first index of the matrix point.j- The second index of the matrix point.- Returns:
- The "true" y-coordinate at point (i,j).
-
getWidth
public int getWidth()Deprecated.UsegetColumnCount().Description copied from interface:ILcdMatrixReturns the integer width of the matrix.- Specified by:
getWidthin interfaceILcdMatrix- Returns:
- The integer width of the matrix.
-
getHeight
public int getHeight()Deprecated.UsegetRowCount().Description copied from interface:ILcdMatrixReturns the integer height of the matrix.- Specified by:
getHeightin interfaceILcdMatrix- Returns:
- The integer height of the matrix.
-
getRowCount().