ilog.views.maps
Class IlvAreaOfInterestVector

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultListModel
          extended by ilog.views.maps.IlvAreaOfInterestVector
All Implemented Interfaces:
IlvPersistentObject, Serializable, ListModel

public class IlvAreaOfInterestVector
extends DefaultListModel
implements IlvPersistentObject

This class stores a vector of IlvAreaOfInterest objects in a persistent manner.

Since:
JViews 7.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
IlvAreaOfInterestVector()
          Creates an empty vector of IlvAreaOfInterest objects.
IlvAreaOfInterestVector(IlvAreaOfInterestVector src)
          Copies the src parameter into a new IlvAreaOfInterestVector instance.
IlvAreaOfInterestVector(IlvInputStream stream)
          Creates a new IlvAreaOfInterestVector by reading from an input stream.
 
Method Summary
 IlvAreaOfInterestVector copy()
          Returns a copy of this IlvAreaOfInterestVector instance.
 IlvAreaOfInterest getArea(int iArea)
          Returns the IlvAreaOfInterest object at the specified position in this IlvAreaOfInterestVector instance.
 void write(IlvOutputStream stream)
          Writes the vector of IlvAreaOfInterest objects in this IlvAreaOfInterestVector instance to a formatted output stream.
 
Methods inherited from class javax.swing.DefaultListModel
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvAreaOfInterestVector

public IlvAreaOfInterestVector()
Creates an empty vector of IlvAreaOfInterest objects.


IlvAreaOfInterestVector

public IlvAreaOfInterestVector(IlvAreaOfInterestVector src)
Copies the src parameter into a new IlvAreaOfInterestVector instance.

Parameters:
src - The source vector to copy.

IlvAreaOfInterestVector

public IlvAreaOfInterestVector(IlvInputStream stream)
                        throws IlvReadFileException
Creates a new IlvAreaOfInterestVector by reading from an input stream.

Parameters:
stream - The input stream to read from.
Throws:
IlvReadFileException - if the file being read from the stream is incorrect.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes the vector of IlvAreaOfInterest objects in this IlvAreaOfInterestVector instance to a formatted output stream.

Specified by:
write in interface IlvPersistentObject
Parameters:
stream - The output stream to write to.
Throws:
IOException - thrown when an exception occurs during the write operation for this object.
See Also:
IlvPersistentObject.write(ilog.views.io.IlvOutputStream)

copy

public IlvAreaOfInterestVector copy()
Returns a copy of this IlvAreaOfInterestVector instance.

Returns:
A new IlvAreaOfInterestVector instance.

getArea

public IlvAreaOfInterest getArea(int iArea)
Returns the IlvAreaOfInterest object at the specified position in this IlvAreaOfInterestVector instance.

Parameters:
iArea - The index of the element to return.
Returns:
The object at index iArea.
Throws:
ArrayIndexOutOfBoundsException - if iArea is out of range, that is, iArea < 0 || iArea >= size().


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.