Package java.util

Examples of java.util.Vector.elements()


        if (IDs == null) {
//      throw new ChaiDBException(ErrorCode.INVALID_INPUT_PARAM,
//                               elementName + " has not child!");
            return new Vector().elements();
        } else {
            return IDs.elements();
        }

    }

    /**
 
View Full Code Here


            }
            // We now know that i contains the smallest element
            // in the remaining vector.
            resultvec.addElement(result[i]);
        }
        return resultvec.elements();
    }

    /**
     * Create OMGraphics for all the data points on the plot
     */
 
View Full Code Here

        children[NORTHEAST] = new QuadTreeNode(bounds.north, ewHalf, nsHalf, bounds.east, maxItems);
        children[SOUTHEAST] = new QuadTreeNode(nsHalf, ewHalf, bounds.south, bounds.east, maxItems);
        children[SOUTHWEST] = new QuadTreeNode(nsHalf, bounds.west, bounds.south, ewHalf, maxItems);
        Vector temp = (Vector) items.clone();
        items.removeAllElements();
        Enumeration things = temp.elements();
        while (things.hasMoreElements()) {
            put((QuadTreeLeaf) things.nextElement());
        }
        //items.removeAllElements();
    }
View Full Code Here

        }

        Vector floats = PropUtils.parseSpacedMarkers(das);
        float[] ret = new float[floats.size()];
        int index = 0;
        Enumeration thing = floats.elements();
        while (thing.hasMoreElements()) {
            String f = (String) thing.nextElement();
            try {
                ret[index++] = (new Float(f)).floatValue();
            } catch (NumberFormatException nfe) {
View Full Code Here

        // Make a copy of the list and fire the events using that
        // copy.
        // This means that listeners can be added or removed from the
        // original list in response to this event.
        Vector list = (Vector) listeners.clone();
        Enumeration e = list.elements();
        while (e.hasMoreElements()) {
            listener = (HttpRequestListener) e.nextElement();
            listener.httpRequest(event);
        }
View Full Code Here

        }

        Vector floats = PropUtils.parseSpacedMarkers(das);
        float[] ret = new float[floats.size()];
        int index = 0;
        Enumeration thing = floats.elements();
        while (thing.hasMoreElements()) {
            String f = (String) thing.nextElement();
            try {
                ret[index++] = (new Float(f)).floatValue();
            } catch (NumberFormatException nfe) {
View Full Code Here

            // Don't forget to project them. Since they are only
            // being recalled if the projection hase changed, then
            // we need to force a reprojection of all of them
            // because the screen position has changed.
            Enumeration things = omGraphicList.elements();
            while (things.hasMoreElements()) {
                OMGraphic thingy = (OMGraphic) things.nextElement();

                if (useDeclutterMatrix && thingy instanceof Location) {
                    Location loc = (Location) thingy;
View Full Code Here

        handleMessages(lal.getProperties());

        // The only thing we need to do is handle any gesture
        // changes...
        Vector updates = lal.getGraphicUpdates();
        Enumeration items = updates.elements();
        boolean needRepaint = false;
        LinkOMGraphicList graphics = getGraphicList();

        Projection proj = getProjection();
View Full Code Here

        addNamedCacheObjects(temp, CacheRegion.getRegion());
        Iterator iter = userRegions.keySet().iterator();
        while (iter.hasNext()) {
            addNamedCacheObjects(temp, (CacheRegion) userRegions.get(iter.next()));
        }
        return temp.elements();
    }

    /**
     * adds all objects in the region to the vector.
     * will also add from all the groups, if any.
View Full Code Here

        }
        if (!userRegions.containsKey(region)) {
            throw new RegionNotFoundException("The region " + region + " is not present in the cache.");
        }
        addNamedCacheObjects(temp, (CacheRegion) userRegions.get(region));
        return temp.elements();
    }

    /**
     * returns the current attributes of the cache including the cache version
     * number, wether the cache is local or distributed, the maximum number of
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.