/*----------------------------------------------------------------------------
Copyright (C) 1998 Object International Software GmbH
----------------------------------------------------------------------------*/
package oisoft.togetherx.scriptapi.UML.enums;
import java.util.Enumeration;
import java.awt.Point;
//------------------------------------------------------------------------------
/**
* Implemented typified enumeration for String
* @version 2.1.01 Thu Apr 02 19:15:21 1998
* @author Andrei Ivanov
*/
public class UMLPointEnumeration implements Enumeration
{
public UMLPointEnumeration(Enumeration e)
{
imp = e;
}
public Point getNextPoint()
{
if (imp != null)
return (Point) imp.nextElement();
else
return null;
}
public Object nextElement()
{
if (imp != null)
return imp.nextElement();
else
return null;
}
public boolean hasMoreElements()
{
if (imp != null)
return imp.hasMoreElements();
else
return false;
}
private Enumeration imp;
}
//------------------------------------------------------------------------------ |