Examples of CaselessStringKey


Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

     * @return  <code>true</code> if and only if the specified object
     *          is a key in this hashtable, as determined by the
     *          <tt>equals</tt> method; <code>false</code> otherwise.
     */
    public boolean containsKey(String key) {
  return super.containsKey(new CaselessStringKey(key));
    }
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

     *          <code>null</code> if the key is not mapped to any value in
     *          this hashtable.
     * @see     #put(String, Object)
     */
    public Object get(String key) {
  return super.get(new CaselessStringKey(key));
    }
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

    public Object put(String key, Object value) {
        if ( key == null || value == null ) {
            throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
        }

  return super.put(new CaselessStringKey(key), value);
    }
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

     * @param   key   the key that needs to be removed.
     * @return  the value to which the key had been mapped in this hashtable,
     *          or <code>null</code> if the key did not have a mapping.
     */
    public Object remove(String key) {
  return super.remove(new CaselessStringKey(key));
    }
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

  // Initialize names to synthetic property names.
  Vector names = new Vector(synthProps);

        // Create a dummy key for later use.
        CaselessStringKey key = new CaselessStringKey("");

        // Get property names managed by WritablePropertySourceImpl.
        // This includes those of thePropertySource.
        String[] localNames = properties.getPropertyNames();
        if(localNames != null) {
            int length = localNames.length;
            for(int i = 0; i < length; i++) {
                key.setName(localNames[i]);

                // Check for duplicates being inserted
                if (!names.contains(key)) {
                    names.add(key.clone());
                }
            }
        }

        // Return an array.
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

    /** Initialize the synthProperties Hashtable if needed. */
    private synchronized void createSynthProperties() {
        if (synthProperties == null) {
            synthProperties = new Hashtable();
            synthProperties.put(new CaselessStringKey("image_width"),
                                new Integer(theImage.getWidth()));
            synthProperties.put(new CaselessStringKey("image_height"),
                                new Integer(theImage.getHeight()));
            synthProperties.put(new CaselessStringKey("image_min_x_coord"),
                                new Integer(theImage.getMinX()));
            synthProperties.put(new CaselessStringKey("image_min_y_coord"),
                                new Integer(theImage.getMinY()));

            if(theImage instanceof OpImage) {
                synthProperties.put(new CaselessStringKey("tile_cache_key"),
                                    theImage);
                Object tileCache = ((OpImage)theImage).getTileCache();
                synthProperties.put(new CaselessStringKey("tile_cache"),
                                    tileCache == null ?
                                    java.awt.Image.UndefinedProperty :
                                    tileCache);
            } else if(theImage instanceof PlanarImageServerProxy) {
                synthProperties.put(new CaselessStringKey("tile_cache_key"),
                                    theImage);
                Object tileCache =
                    ((PlanarImageServerProxy)theImage).getTileCache();
                synthProperties.put(new CaselessStringKey("tile_cache"),
                                    tileCache == null ?
                                    java.awt.Image.UndefinedProperty :
                                    tileCache);
            } else {
                Object tileCacheKey = theImage.getProperty("tile_cache_key");
                synthProperties.put(new CaselessStringKey("tile_cache_key"),
                                    tileCacheKey == null ?
                                    java.awt.Image.UndefinedProperty :
                                    tileCacheKey);
                Object tileCache = theImage.getProperty("tile_cache");
                synthProperties.put(new CaselessStringKey("tile_cache"),
                                    tileCache == null ?
                                    java.awt.Image.UndefinedProperty :
                                    tileCache);
            }
        }
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

        if (name == null)
            throw new IllegalArgumentException(JaiI18N.getString("Generic0"));

        createPropertySource();
        CaselessStringKey key = new CaselessStringKey(name);

        // Attempt to retrieve from synthetic properties.
        // If present, return the value directly.
  if (synthProps.contains(key)) {
            createRendering();
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

    throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
  if (value == null)
    throw new IllegalArgumentException(JaiI18N.getString("Generic0"));

        // Check whether property conflicts with synthetic properties.
  if (synthProps.contains(new CaselessStringKey(name))) {
      throw new RuntimeException(JaiI18N.getString("RenderedOp4"));
        }

        createPropertySource();
        super.setProperty(name, value);
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

    public void removeProperty(String name) {
  if (name == null)
    throw new IllegalArgumentException(JaiI18N.getString("Generic0"));

        // Check whether property conflicts with synthetic properties.
  if (synthProps.contains(new CaselessStringKey(name))) {
      throw new RuntimeException(JaiI18N.getString("RenderedOp4"));
        }

        createPropertySource();
        properties.removeProperty(name);
View Full Code Here

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey

     */
    public synchronized void suppressProperty(String name) {
        if (name == null)
            throw new IllegalArgumentException(JaiI18N.getString("Generic0"));

  if (synthProps.contains(new CaselessStringKey(name))) {
      throw new IllegalArgumentException(JaiI18N.getString("RenderedOp5"));
  }

        nodeSupport.suppressProperty(name);
    }
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.