Back to index

moin  1.9.0~rc2
Public Member Functions | Package Attributes
CH.ifa.draw.standard.FigureEnumerator Class Reference

An Enumeration for a Vector of Figures. More...

Collaboration diagram for CH.ifa.draw.standard.FigureEnumerator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FigureEnumerator (Vector v)
boolean hasMoreElements ()
 Returns true if the enumeration contains more elements; false if its empty.
Object nextElement ()
 Returns the next element of the enumeration.
Figure nextFigure ()
 Returns the next element of the enumeration.
boolean contains (Figure figure)
 Returns true if thje enumeration contains the specified figure.

Package Attributes

Vector v
Enumeration fEnumeration

Detailed Description

An Enumeration for a Vector of Figures.

Definition at line 14 of file FigureEnumerator.java.


Constructor & Destructor Documentation

Definition at line 18 of file FigureEnumerator.java.

                                      {
        this.v = v;
           fEnumeration = v.elements();
    }

Member Function Documentation

boolean CH.ifa.draw.standard.FigureEnumerator.contains ( Figure  figure) [inline]

Returns true if thje enumeration contains the specified figure.

Parameters:
figurethe figure to check

Definition at line 53 of file FigureEnumerator.java.

                                           {
        return v.contains(figure);
    }

Here is the caller graph for this function:

Returns true if the enumeration contains more elements; false if its empty.

Definition at line 27 of file FigureEnumerator.java.

                                     {
           return fEnumeration.hasMoreElements();
    }

Returns the next element of the enumeration.

Calls to this method will enumerate successive elements.

Exceptions:
NoSuchElementExceptionIf no more elements exist.

Definition at line 36 of file FigureEnumerator.java.

                                {
        return fEnumeration.nextElement();
    }

Returns the next element of the enumeration.

Calls to this method will enumerate successive elements.

Exceptions:
NoSuchElementExceptionIf no more elements exist.

Definition at line 45 of file FigureEnumerator.java.

                               {
        return (Figure)fEnumeration.nextElement();
    }

Member Data Documentation

Definition at line 16 of file FigureEnumerator.java.

Definition at line 15 of file FigureEnumerator.java.


The documentation for this class was generated from the following file: