com.togethersoft.openapi.util.enum
Class PointEnumerationAdapter


public class PointEnumerationAdapter
implements PointEnumeration

Adaptes existing enumeration to the enumeration of AWT Points.

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private EnumerationmySource
           

Constructor Summary
PointEnumerationAdapter(Enumeration source)
          Creates new enumeration of AWT Points from existing enumeration.

Method Summary
 booleanhasMoreElements()
          Checks is there more elements in enumeration after counter.
 ObjectnextElement()
          Returns next element from enumeration as a Object.
 PointnextPoint()
          Returns next element from enumeration as a AWT Point.

Field Detail

mySource

private Enumeration mySource
Constructor Detail

PointEnumerationAdapter

public PointEnumerationAdapter(Enumeration source)
Creates new enumeration of AWT Points from existing enumeration.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Checks is there more elements in enumeration after counter.
Returns: true if there, false else.

nextElement

public Object nextElement()
Returns next element from enumeration as a Object.
Returns: next element from enumeration as a Object.

nextPoint

public Point nextPoint()
Returns next element from enumeration as a AWT Point.
Returns: next element from enumeration as a AWT Point.

Association Links

to Class java.util.Enumeration