Back to index

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

An Enumeration that enumerates a vector of figures back (size-1) to front (0). More...

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

List of all members.

Public Member Functions

 ReverseFigureEnumerator (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 casted as a figure of the enumeration.
boolean contains (Figure figure)
 Returns true if thje enumeration contains the specified figure.

Package Attributes

Vector v
ReverseVectorEnumerator fEnumeration

Detailed Description

An Enumeration that enumerates a vector of figures back (size-1) to front (0).

Definition at line 15 of file ReverseFigureEnumerator.java.


Constructor & Destructor Documentation

Definition at line 19 of file ReverseFigureEnumerator.java.

                                             {
        this.v = v;
           fEnumeration = new ReverseVectorEnumerator(v);
    }

Member Function Documentation

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

Returns true if thje enumeration contains the specified figure.

Parameters:
figurethe figure to check

Definition at line 54 of file ReverseFigureEnumerator.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 28 of file ReverseFigureEnumerator.java.

Here is the call graph for this function:

Returns the next element of the enumeration.

Calls to this method will enumerate successive elements.

Exceptions:
NoSuchElementExceptionIf no more elements exist.

Definition at line 37 of file ReverseFigureEnumerator.java.

                                {
        return fEnumeration.nextElement();
    }

Here is the call graph for this function:

Returns the next element casted as a figure of the enumeration.

Calls to this method will enumerate successive elements.

Exceptions:
NoSuchElementExceptionIf no more elements exist.

Definition at line 46 of file ReverseFigureEnumerator.java.

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

Here is the call graph for this function:


Member Data Documentation

Definition at line 17 of file ReverseFigureEnumerator.java.

Definition at line 16 of file ReverseFigureEnumerator.java.


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