Package diva.util

Examples of diva.util.NullIterator


     * Return an iterator over the objects
     * added to the selection model.
     */
    public Iterator getSelectionAdditions() {
        if (_added == null) {
            return new NullIterator();
        } else {
            return new IteratorAdapter() {
                int i = 0;

                public boolean hasNext() {
View Full Code Here


     * Return an iterator over the objects
     * removed from the selection model.
     */
    public Iterator getSelectionRemovals() {
        if (_removed == null) {
            return new NullIterator();
        } else {
            return new IteratorAdapter() {
                int i = 0;

                public boolean hasNext() {
View Full Code Here

    /** Return an iteration containing the one child.
     */
    public Iterator figures() {
        if (_child == null) {
            return new NullIterator();
        } else {
            return new UnitIterator(_child);
        }
    }
View Full Code Here

        /** Return an iterator over the edges coming into the given node.
         *  @param node The node, which is assumed to be an icon.
         *  @return A NullIterator, since no edges are attached to icons.
         */
        public Iterator inEdges(Object node) {
            return new NullIterator();
        }
View Full Code Here

            if (container instanceof ComponentEntity) {
                ComponentEntity entity = (ComponentEntity) container;
                return entity.portList().iterator();
            } else {
                return new NullIterator();
            }
        }
View Full Code Here

         * @param composite The composite, which is assumed to be an icon.
         * @return An iterator of nodes that should be rendered after
         * the edges.
         */
        public Iterator nodesAfterEdges(Object composite) {
            return (new NullIterator());
        }
View Full Code Here

        /** Return an iterator over the edges coming out of the given node.
         *  @param node The node, which is assumed to be an icon.
         *  @return A NullIterator, since no edges are attached to icons.
         */
        public Iterator outEdges(Object node) {
            return new NullIterator();
        }
View Full Code Here

    /** Return an iterator over the edges coming into the given node.
     *  @param node The node.
     *  @return A NullIterator, since no edges are attached to attributes.
     */
    public Iterator inEdges(Object node) {
        return new NullIterator();
    }
View Full Code Here

    /** Return an iterator over the edges coming out of the given node.
     *  @param node The node.
     *  @return A NullIterator, since no edges are attached to attributes.
     */
    public Iterator outEdges(Object node) {
        return new NullIterator();
    }
View Full Code Here

         *   this graph model.
         *  @return An iterator of Arc objects, all of which have
         *   the given node as their head.
         */
        public Iterator inEdges(Object node) {
            return new NullIterator();
        }
View Full Code Here

TOP

Related Classes of diva.util.NullIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.