edu.bonn.xulu.plugin.io.grid.awt
Class WritableGridRasterFactory

java.lang.Object
  extended by edu.bonn.xulu.io.AbstractFactory
      extended by edu.bonn.xulu.plugin.io.grid.WritableGridFactory
          extended by edu.bonn.xulu.plugin.io.grid.awt.WritableGridRasterFactory
All Implemented Interfaces:
Factory, InstantiationFactory

public class WritableGridRasterFactory
extends WritableGridFactory

Diese Factory erzeugt Standard-Instanzen des Datentyps WritableGridRaster.
Bemerke:
Diese stellen keine Xulu-Objekte dar, koennen also nicht direkt im Xulu-Datenpool gespeichert werden. Hierzu ist der Datentyp SingleGrid (bzw. eine entsprechende Factory) zu verwenden!

Version:
1.0
Author:
Martin Schmitz (University of Bonn/Germany)

Field Summary
 
Fields inherited from class edu.bonn.xulu.io.AbstractFactory
name
 
Constructor Summary
WritableGridRasterFactory()
           
 
Method Summary
 Class getInstanceType()
          Liefert den Datentyp, den die Factory erzeugt.
 WritableGridRaster newInstance(int type, int widthc, int heightc, int minX, int minY, double x, double y, double width, double height, CoordinateReferenceSystem crs)
          Erzeugt ein neues Grid.
 
Methods inherited from class edu.bonn.xulu.plugin.io.grid.WritableGridFactory
newInstance, newInstance, newInstance
 
Methods inherited from class edu.bonn.xulu.io.AbstractFactory
checkExportDestinationObject, checkImportSourceObject, equals, equals, getInstantiationFactoryFromRegistry, getName, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.bonn.xulu.io.Factory
equals
 

Constructor Detail

WritableGridRasterFactory

public WritableGridRasterFactory()
Method Detail

getInstanceType

public Class getInstanceType()
Liefert den Datentyp, den die Factory erzeugt.

Specified by:
getInstanceType in interface InstantiationFactory
Overrides:
getInstanceType in class WritableGridFactory
Returns:
immer WritableGridRaster.class
See Also:
InstantiationFactory.newInstance(boolean)

newInstance

public WritableGridRaster newInstance(int type,
                                      int widthc,
                                      int heightc,
                                      int minX,
                                      int minY,
                                      double x,
                                      double y,
                                      double width,
                                      double height,
                                      CoordinateReferenceSystem crs)
Erzeugt ein neues Grid.

Specified by:
newInstance in class WritableGridFactory
Parameters:
type - Datentyp der gespeicherten Objekte
widthc - Breite in Zellen
heightc - Hoehe in Zellen
minX - Index der ersten Zelle in X-Richtung (wird nicht verwendet! immer 0!)
minY - Index der ersten Zelle in Y-Richtung (wird nicht verwendet! immer 0!).
x - Georeferenz Longitute (Westliche/Linke Kante)
y - Georeferenz Latitude (Suedliche/Untere Kante)
width - Breite
height - Hoehe
crs - Referenzsystem fuer das Raster