com.esri.aims.mtier.model.map.layer.raster
Class Bands

java.lang.Object
  extended by com.esri.aims.mtier.model.map.layer.raster.Bands
All Implemented Interfaces:
Serializable

public class Bands
extends Object
implements Serializable

Contains a collection of Band objects.

See Also:
Serialized Form

Constructor Summary
Bands()
          Constructs an instance of the Bands object.
 
Method Summary
 void addBand(Band obj)
          Adds the specified Band object to the Bands collection.
 void clearBands()
          Clears all Band objects from the Bands collection.
 Band getBand(int index)
          Returns a Band object at given index from the collection.
 int getBandsCount()
          Returns the count of all Band objects in the Bands collection.
 String getRasterID()
          Returns the raster ID property value.
 Band removeBand(int index)
          Removes the Band object at given index from the Bands collection.
 void setRasterID(String value)
          Sets the Bands raster ID property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bands

public Bands()
Constructs an instance of the Bands object. Example:
Bands bands = new Bands();

Method Detail

addBand

public void addBand(Band obj)
Adds the specified Band object to the Bands collection. Example:
 Band band = new Band();
 bands.addBand(band);
 

Parameters:
obj - the Band object to add.
See Also:
getBand(int), removeBand(int)

removeBand

public Band removeBand(int index)
Removes the Band object at given index from the Bands collection. Example:
Band band = bands.removeBand(0); 

Parameters:
index - the item to remove.
Returns:
Band
See Also:
addBand(com.esri.aims.mtier.model.map.layer.raster.Band)

clearBands

public void clearBands()
Clears all Band objects from the Bands collection. Example:
 bands.clearBands();
 

See Also:
addBand(com.esri.aims.mtier.model.map.layer.raster.Band)

getBandsCount

public int getBandsCount()
Returns the count of all Band objects in the Bands collection. Example:
 int bandsCount = bands.getBandsCount();
 

Returns:
int

getBand

public Band getBand(int index)
Returns a Band object at given index from the collection. Example:
 Band band1 = bands.getBand(1);
 

Parameters:
index - the item to return.
Returns:
Band

setRasterID

public void setRasterID(String value)
Sets the Bands raster ID property value. This value is set by the response from the ArcIMS Application Server.

Parameters:
value - the raster id value.
See Also:
getRasterID()

getRasterID

public String getRasterID()
Returns the raster ID property value. Example:
 String rasterID = bands.getRasterID();
 

Returns:
String
See Also:
setRasterID(java.lang.String)