jwo.landserf.structure
Class DummySpatialObject

java.lang.Object
  extended by jwo.landserf.structure.SpatialObject
      extended by jwo.landserf.structure.DummySpatialObject
All Implemented Interfaces:
Serializable, SpatialModel

public class DummySpatialObject
extends SpatialObject

Dummy generic spatial object that can be used when an instantiated generic spatial object is required.

Version:
2.3, 13th May, 2006.
Author:
Jo Wood
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jwo.landserf.structure.SpatialModel
ADJACENT, AREA, CONTOUR, ENCLOSES, INTERSECTION, LINE, MATCHES, MSN, NO_VALUE, OUT_OF_BOUNDS, OVERLAPS, POINT, RASTER_2D, RASTER_3D, SEPARATE, TIN, UNDEFINED, UNION, UNKNOWN, UNKNOWN_MODEL, VECTOR_2D, VECTOR_3D, VOLUME, WITHIN
 
Constructor Summary
DummySpatialObject()
           
 
Method Summary
 float getAttribute(Footprint location)
          Would report the attribute of the model at the given location, but does nothing in this case.
 void getImage(int[] img, int imgWidth)
          Would convert the spatial object into colour image for display, but does nothing in this case.
 float getMaxAttribute()
          Would report the maximum attribute value of the object, but does nothing in this case.
 float getMinAttribute()
          Would report the minimum attribute value of the object, but does nothing in this case.
 SpatialModel subset(Footprint bounds)
          Would creates a new spatial model that is clipped to the given bounds, but does nothing in this case.
 void updateBounds()
          Would force the object to find its new spatial and attribute bounds, but does nothing in this case.
 
Methods inherited from class jwo.landserf.structure.SpatialObject
compare, getAttributeTable, getBounds, getColourTable, getComparisonText, getHeader, getIntersectionMER, getProjection, getType, getTypeName, getTypeName, getUnionMER, move, setAttributeTable, setBounds, setColourTable, setHeader, setProjection, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummySpatialObject

public DummySpatialObject()
Method Detail

getAttribute

public float getAttribute(Footprint location)
Would report the attribute of the model at the given location, but does nothing in this case.

Specified by:
getAttribute in interface SpatialModel
Specified by:
getAttribute in class SpatialObject
Parameters:
location - Location to query.
Returns:
Always returns NO_VALUE.

getMinAttribute

public float getMinAttribute()
Would report the minimum attribute value of the object, but does nothing in this case.

Specified by:
getMinAttribute in class SpatialObject
Returns:
Always returns NO_VALUE.

getMaxAttribute

public float getMaxAttribute()
Would report the maximum attribute value of the object, but does nothing in this case.

Specified by:
getMaxAttribute in class SpatialObject
Returns:
Always returns NO_VALUE.

getImage

public void getImage(int[] img,
                     int imgWidth)
Would convert the spatial object into colour image for display, but does nothing in this case.

Specified by:
getImage in interface SpatialModel
Specified by:
getImage in class SpatialObject
Parameters:
img - Image array to store colours.
imgWidth - Image width.

subset

public SpatialModel subset(Footprint bounds)
Would creates a new spatial model that is clipped to the given bounds, but does nothing in this case.

Specified by:
subset in interface SpatialModel
Specified by:
subset in class SpatialObject
Parameters:
bounds - Bounds defining the clipping region.
Returns:
Always returns null.

updateBounds

public void updateBounds()
Would force the object to find its new spatial and attribute bounds, but does nothing in this case.

Specified by:
updateBounds in class SpatialObject


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009