public class DefaultDataStructFactory extends java.lang.Object implements DataStructFactory
Constructor and Description |
---|
DefaultDataStructFactory() |
Modifier and Type | Method and Description |
---|---|
ColorInterpretation |
createColorInterpretation(java.lang.String colorInterpretationConstant)
Gets a new instance of a ColorInterpretation object
|
ColorInterpretation |
createColorInterpretation(java.lang.String[] colorInterp)
Gets a new instance of a ColorInterpretation object
|
RasterDataStore |
createDataStore()
Creates a empty DataStore
|
NoData |
createDefaultNoData(int bandCount,
int dataType)
Builds a new NoData for DEMs
|
Extent |
createExtent()
Builds an empty extent
|
Extent |
createExtent(double x1,
double y1,
double x2,
double y2)
Builds a extent using upper left coordinate and lower right coordinate
|
Extent |
createExtent(java.awt.geom.Point2D ul,
java.awt.geom.Point2D lr)
Builds a extent using upper left coordinate and lower right coordinate
|
Extent |
createExtent(java.awt.geom.Point2D ul,
java.awt.geom.Point2D lr,
java.awt.geom.Point2D ur,
java.awt.geom.Point2D ll)
Builds a extent using the four coordinates
|
Extent |
createExtent(java.awt.geom.Rectangle2D r)
Builds a extent using a rectangle
|
GeoPoint |
createGeoPoint()
Creates a empty geopoint
|
GeoPoint |
createGeoPoint(java.awt.geom.Point2D p,
java.awt.geom.Point2D m)
Creates a geopoint with values
|
NoData |
createNoData(java.lang.Number noData,
java.lang.Number nativeNoData,
java.lang.String fileName)
Builds a new NoData for DEMs
|
NoData |
createNoData(java.lang.Number noData,
java.lang.Number nativeNoData,
java.lang.String fileName,
int bandCount)
Builds a new NoData object
|
Transparency |
createTransparency(int nBands)
Creates a
Transparency object. |
TransparencyRange |
createTransparencyRange()
Builds a TransparencyRange object
|
ViewPortData |
createViewPortData()
Builds a new ViewPortData object
|
ViewPortData |
createViewPortData(IProjection proj,
Extent extent,
java.awt.geom.Dimension2D size)
Builds a new ViewPortData object
|
ColorTableLibrary |
getColorTableLibrary()
Returns the object which represents the color table library
|
public TransparencyRange createTransparencyRange()
DataStructFactory
createTransparencyRange
in interface DataStructFactory
public Transparency createTransparency(int nBands)
DataStructFactory
Transparency
object. This object is useful to render
with transparency information.createTransparency
in interface DataStructFactory
public ColorTableLibrary getColorTableLibrary()
DataStructFactory
getColorTableLibrary
in interface DataStructFactory
public Extent createExtent(java.awt.geom.Point2D ul, java.awt.geom.Point2D lr)
DataStructFactory
createExtent
in interface DataStructFactory
ul
- upper left coordinatelr
- lower right coordinatepublic Extent createExtent(java.awt.geom.Point2D ul, java.awt.geom.Point2D lr, java.awt.geom.Point2D ur, java.awt.geom.Point2D ll)
DataStructFactory
createExtent
in interface DataStructFactory
ul
- upper left coordinatelr
- lower right coordinateur
- upper right coordinatell
- lower left coordinatepublic Extent createExtent(double x1, double y1, double x2, double y2)
DataStructFactory
createExtent
in interface DataStructFactory
x1
- X upper left coordinatey1
- Y upper left coordinatex2
- X lower right coordinatey2
- Y lower right coordinatepublic Extent createExtent(java.awt.geom.Rectangle2D r)
DataStructFactory
createExtent
in interface DataStructFactory
r
- Rectangle 2Dpublic Extent createExtent()
DataStructFactory
createExtent
in interface DataStructFactory
public NoData createNoData(java.lang.Number noData, java.lang.Number nativeNoData, java.lang.String fileName, int bandCount)
DataStructFactory
createNoData
in interface DataStructFactory
noData
- value to assign to all bandsnativeNoData
- The native is the original value
saved in the head of the file or its metadata.fileName
- Name of file owner of this nodata value. This string is useful to
save the rmf filebandCount
- Number of bands of the filepublic NoData createNoData(java.lang.Number noData, java.lang.Number nativeNoData, java.lang.String fileName)
DataStructFactory
createNoData
in interface DataStructFactory
noData
- value to assign to all bandsnativeNoData
- The native is the original value
saved in the head of the file or its metadata.fileName
- Name of file owner of this nodata value. This string is useful to
save the rmf filepublic NoData createDefaultNoData(int bandCount, int dataType)
DataStructFactory
createDefaultNoData
in interface DataStructFactory
bandCount
- Number of bandsdataType
- dataType of this NoDatapublic RasterDataStore createDataStore()
DataStructFactory
createDataStore
in interface DataStructFactory
public GeoPoint createGeoPoint()
DataStructFactory
createGeoPoint
in interface DataStructFactory
public GeoPoint createGeoPoint(java.awt.geom.Point2D p, java.awt.geom.Point2D m)
DataStructFactory
createGeoPoint
in interface DataStructFactory
public ColorInterpretation createColorInterpretation(java.lang.String[] colorInterp)
DataStructFactory
createColorInterpretation
in interface DataStructFactory
public ColorInterpretation createColorInterpretation(java.lang.String colorInterpretationConstant)
DataStructFactory
createColorInterpretation
in interface DataStructFactory
public ViewPortData createViewPortData(IProjection proj, Extent extent, java.awt.geom.Dimension2D size)
DataStructFactory
createViewPortData
in interface DataStructFactory
public ViewPortData createViewPortData()
DataStructFactory
createViewPortData
in interface DataStructFactory