⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reversefigureenumerator.java

📁 JHotDraw学习过程中对数组的测试程序haha 学习过程中对数组的测试程序
💻 JAVA
字号:
/* * @(#)ReverseFigureEnumerator.java 5.1 * */package CH.ifa.draw.standard;import java.util.*;import CH.ifa.draw.util.ReverseVectorEnumerator;import CH.ifa.draw.framework.*;/** * An Enumeration that enumerates a vector of figures back (size-1) to front (0). */public final class ReverseFigureEnumerator implements FigureEnumeration {    ReverseVectorEnumerator fEnumeration;    public ReverseFigureEnumerator(Vector v) {	    fEnumeration = new ReverseVectorEnumerator(v);    }    /**     * Returns true if the enumeration contains more elements; false     * if its empty.     */    public boolean hasMoreElements() {	    return fEnumeration.hasMoreElements();    }    /**     * Returns the next element of the enumeration. Calls to this     * method will enumerate successive elements.     * @exception NoSuchElementException If no more elements exist.     */    public Object nextElement() {        return fEnumeration.nextElement();    }    /**     * Returns the next element casted as a figure of the enumeration. Calls to this     * method will enumerate successive elements.     * @exception NoSuchElementException If no more elements exist.     */    public Figure nextFigure() {        return (Figure)fEnumeration.nextElement();    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -