Class JNCSRendererProxy
- java.lang.Object
-
- com.vividsolutions.jump.workbench.imagery.ecw.JNCSRendererProxy
-
public class JNCSRendererProxy extends Object
The purpose of this proxy class is to defer linking to the proprietary ECW ER Mapper library till runtime. So it's not necessary to ship the library and/or its Java wrapper in binary distributions of OpenJUMP.- Author:
- Sascha L. Teichmann (sascha.teichmann@intevation.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected Objectrendererstatic StringRENDERER_CLASS
-
Constructor Summary
Constructors Constructor Description JNCSRendererProxy(String location, boolean flag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(boolean flag)Point2D.DoubleconvertDatasetToWorld(int x, int y)PointconvertWorldToDataset(double x, double y)doublegetCellIncrementX()doublegetCellIncrementY()static doublegetDouble(Object object, String fieldname)doublegetDouble(String fieldname)intgetHeight()static intgetInt(Object object, String fieldname)intgetInt(String fieldname)intgetNumBands()doublegetOriginX()doublegetOriginY()intgetWidth()voidreadLineRGBA(int[] rgba)voidsetView(int numBands, int[] bands, int firstColumn, int firstLine, int lastColumn, int lastLine, int width, int height)static voidthrowAsException(InvocationTargetException ite)
-
-
-
Method Detail
-
throwAsException
public static void throwAsException(InvocationTargetException ite) throws Exception
- Throws:
Exception
-
getInt
public int getInt(String fieldname)
-
getDouble
public double getDouble(String fieldname)
-
getOriginX
public double getOriginX()
-
getOriginY
public double getOriginY()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getCellIncrementX
public double getCellIncrementX()
-
getCellIncrementY
public double getCellIncrementY()
-
getNumBands
public int getNumBands()
-
convertWorldToDataset
public Point convertWorldToDataset(double x, double y) throws Exception
- Throws:
Exception
-
convertDatasetToWorld
public Point2D.Double convertDatasetToWorld(int x, int y) throws Exception
- Throws:
Exception
-
setView
public void setView(int numBands, int[] bands, int firstColumn, int firstLine, int lastColumn, int lastLine, int width, int height) throws Exception- Throws:
Exception
-
close
public void close(boolean flag)
-
-