com.moximedia.aims
Class AimsBands

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended bycom.moximedia.aims.AimsBands
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class AimsBands
extends java.util.ArrayList
implements java.io.Serializable

Implementation of ArcIMS BANDS element - Release 4.0 onward.

Author:
Doug Cates - www.moximedia.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AimsBands()
          Creates new AimsBands
AimsBands(java.lang.String rasterId)
          Creates new AimsBands with a raster ID.
 
Method Summary
 void addBand(AimsBand band)
          Adds a band to the collection.
 AimsBand getBand(int index)
          Gets the BAND at the specified position.
 AimsPoint getLocation()
          Sets the request location of the BANDS object.
 java.lang.String getRasterId()
          Gets the property of attribute RASTERID.
 void setAxlAttribute(java.lang.String tag, java.lang.String name, java.lang.String value)
          Sets one of the attributes of this object using a string value.
 void setLocation(AimsPoint pt)
          Gets the request location of the BANDS object.
 void setRasterId(java.lang.String rasterId)
          Sets the property of attribute RASTERID.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

AimsBands

public AimsBands()
Creates new AimsBands


AimsBands

public AimsBands(java.lang.String rasterId)
Creates new AimsBands with a raster ID.

Parameters:
rasterId - The RASTERID property.
Method Detail

addBand

public void addBand(AimsBand band)
Adds a band to the collection.

Parameters:
band - The BAND to add to the collection.

getBand

public AimsBand getBand(int index)
                 throws java.lang.IndexOutOfBoundsException
Gets the BAND at the specified position.

Parameters:
index - The position of the band in the list.
Returns:
The BAND object.
Throws:
java.lang.IndexOutOfBoundsException - If the specified index value does not exist.

getRasterId

public java.lang.String getRasterId()
Gets the property of attribute RASTERID.

Returns:
The property of attribute RASTERID.

setRasterId

public void setRasterId(java.lang.String rasterId)
Sets the property of attribute RASTERID.

Parameters:
rasterId - The property of attribute RASTERID.

getLocation

public AimsPoint getLocation()
Sets the request location of the BANDS object.

Returns:
The request location.

setLocation

public void setLocation(AimsPoint pt)
Gets the request location of the BANDS object.

Parameters:
pt - The request location.

setAxlAttribute

public void setAxlAttribute(java.lang.String tag,
                            java.lang.String name,
                            java.lang.String value)
Sets one of the attributes of this object using a string value. This method can only be called from the SAX event handler.

Parameters:
tag - The AXL element tag containing this attribute.
name - The AXL attribute name.
value - The AXL attribute value.


Internet Mapping Framework for ArcIMS Java Object Model API (v5.1.00)
Copyright © 2006 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.