public void accept(ImageDisplayVisitor visitor, int algoType)
public void accept(ImageDisplayVisitor visitor)
    public void accept(ImageDisplayVisitor visitor, int algoType)    {        if (visitor == null) throw new NullPointerException("No visitor.");        if (!checkAlgoType(algoType))            throw new IllegalArgumentException("Algorithm not supported.");        setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));        Iterator i = childrenDisplay.iterator();        ImageDisplay child;        switch (algoType) {            case ImageDisplayVisitor.IMAGE_NODE_ONLY:                while (i.hasNext()) {                    child = (ImageDisplay) i.next();                    child.accept(visitor, algoType);                }                if (this instanceof ImageNode) doAccept(visitor);                break;            case ImageDisplayVisitor.IMAGE_SET_ONLY:                while (i.hasNext()) {                    child = (ImageDisplay) i.next();                    if (child instanceof ImageSet)                        child.accept(visitor, algoType);                }                if (this instanceof ImageSet) doAccept(visitor);                break;            case ImageDisplayVisitor.ALL_NODES:                while (i.hasNext()) {                    child = (ImageDisplay) i.next();                    child.accept(visitor, algoType);                }                doAccept(visitor);                break;        }        setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));    }