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 Enumeration | mySource |
| Constructor Summary |
PointEnumerationAdapter(Enumeration source) Creates new enumeration of AWT Points from existing enumeration. |
| Method Summary |
boolean | hasMoreElements() Checks is there more elements in enumeration after counter. |
Object | nextElement() Returns next element from enumeration as a Object. |
Point | nextPoint() Returns next element from enumeration as a AWT Point. |
mySource
private Enumeration mySource
PointEnumerationAdapter
public PointEnumerationAdapter(Enumeration source)
- Creates new enumeration of AWT
Points from existing enumeration.
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.
to Class java.util.Enumeration