Package javax.media.jai.util

Examples of javax.media.jai.util.CaselessStringKey


/* 205 */     throw new IllegalArgumentException();
/*     */   }
/*     */
/*     */   public Object remove(String key)
/*     */   {
/* 219 */     return super.remove(new CaselessStringKey(key));
/*     */   }
View Full Code Here


/*  363 */     String[] propertyNames = source.getPropertyNames();
/*      */
/*  365 */     if (propertyNames != null) {
/*  366 */       for (int i = 0; i < propertyNames.length; i++) {
/*  367 */         String propertyName = propertyNames[i];
/*  368 */         this.properties.put(new CaselessStringKey(propertyName), source.getProperty(propertyName));
/*      */       }
/*      */
/*      */     }
/*      */
/*      */     try
View Full Code Here

/*  753 */     return this.minY;
/*      */   }
/*      */
/*      */   public Object getProperty(String name)
/*      */   {
/*  759 */     Object property = this.properties.get(new CaselessStringKey(name));
/*  760 */     return property == null ? Image.UndefinedProperty : property;
/*      */   }
View Full Code Here

/*  766 */       names = new String[this.properties.size()];
/*  767 */       Enumeration keys = this.properties.keys();
/*  768 */       int index = 0;
/*      */
/*  770 */       while (keys.hasMoreElements()) {
/*  771 */         CaselessStringKey key = (CaselessStringKey)keys.nextElement();
/*  772 */         names[(index++)] = key.getName();
/*      */       }
/*      */     }
/*  775 */     return names;
/*      */   }
View Full Code Here

/*     */       }
/*     */     }
/*     */     Enumeration e;
/* 356 */     if (this.sourceForProp != null) {
/* 357 */       for (e = this.sourceForProp.keys(); e.hasMoreElements(); ) {
/* 358 */         CaselessStringKey name = (CaselessStringKey)e.nextElement();
/*     */
/* 360 */         if (!this.suppressed.containsKey(name)) {
/* 361 */           Integer i = (Integer)this.sourceForProp.get(name);
/* 362 */           PropertySource propertySource = (PropertySource)this.sources.elementAt(i.intValue());
/*     */
View Full Code Here

/* 136 */     if (propertyMap != null) {
/* 137 */       Iterator keys = propertyMap.keySet().iterator();
/* 138 */       while (keys.hasNext()) {
/* 139 */         Object key = keys.next();
/* 140 */         if ((key instanceof String)) {
/* 141 */           this.properties.put(new CaselessStringKey((String)key), propertyMap.get(key));
/*     */         }
/* 143 */         else if ((key instanceof CaselessStringKey)) {
/* 144 */           this.properties.put((CaselessStringKey)key, propertyMap.get(key));
/*     */         }
/*     */       }
/*     */
/*     */     }
/*     */
/* 150 */     if (propertySource != null) {
/* 151 */       String[] names = propertySource.getPropertyNames();
/* 152 */       if (names != null) {
/* 153 */         int length = names.length;
/* 154 */         for (int i = 0; i < length; i++)
/* 155 */           this.propertySources.put(new CaselessStringKey(names[i]), propertySource);
/*     */       }
/*     */     }
/*     */   }
View Full Code Here

/* 234 */     if (propertyName == null) {
/* 235 */       throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
/*     */     }
/* 237 */     synchronized (this.properties) {
/* 238 */       Class propertyClass = null;
/* 239 */       Object value = this.properties.get(new CaselessStringKey(propertyName));
/* 240 */       if (value != null) {
/* 241 */         propertyClass = value.getClass();
/*     */       }
/* 243 */       return propertyClass;
/*     */     }
View Full Code Here

/* 270 */     if (propertyName == null) {
/* 271 */       throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
/*     */     }
/*     */
/* 274 */     synchronized (this.properties) {
/* 275 */       CaselessStringKey key = new CaselessStringKey(propertyName);
/*     */
/* 278 */       Object value = this.properties.get(key);
/*     */
/* 280 */       if (value == null)
/*     */       {
View Full Code Here

/*      */   }
/*      */
/*      */   private boolean containsAll(Hashtable thisHash, Hashtable otherHash)
/*      */   {
/*  915 */     for (Enumeration i = thisHash.keys(); i.hasMoreElements(); ) {
/*  916 */       CaselessStringKey thisNameKey = (CaselessStringKey)i.nextElement();
/*  917 */       if (!otherHash.containsKey(thisNameKey)) {
/*  918 */         return false;
/*      */       }
/*      */     }
/*  921 */     return true;
View Full Code Here

/*      */   private Vector removeAll(Hashtable thisHash, Hashtable otherHash)
/*      */   {
/*  927 */     Vector v = new Vector();
/*      */
/*  929 */     for (Enumeration i = thisHash.keys(); i.hasMoreElements(); ) {
/*  930 */       CaselessStringKey thisNameKey = (CaselessStringKey)i.nextElement();
/*  931 */       if (!otherHash.containsKey(thisNameKey))
/*      */       {
/*  934 */         v.add(thisNameKey.toString());
/*      */       }
/*      */     }
/*  937 */     return v;
/*      */   }
View Full Code Here

TOP

Related Classes of javax.media.jai.util.CaselessStringKey

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.