/** * Returns whether the given keys are in the set. */ public boolean contains(Object o1, Object o2) { return table.get(o1, o2) != null; }
/** * Returns the live attribute value associated with given * attribute, if any. * @param ns The attribute's namespace. * @param ln The attribute's local name. */ public LiveAttributeValue getLiveAttributeValue(String ns, String ln) { // if (liveAttributeValues == null) { // return null; // } return (LiveAttributeValue)liveAttributeValues.get(ns, ln); }
/** * Returns whether the given keys are in the set. */ public boolean contains(Object o1, Object o2) { return table.get(o1, o2) != null; }
/** * Returns the live attribute value associated with given * attribute, if any. * @param ns The attribute's namespace. * @param ln The attribute's local name. */ public LiveAttributeValue getLiveAttributeValue(String ns, String ln) { // if (liveAttributeValues == null) { // return null; // } return (LiveAttributeValue)liveAttributeValues.get(ns, ln); }
/** * Returns whether the given keys are in the set. */ public boolean contains(Object o1, Object o2) { return table.get(o1, o2) != null; }
public int getLength() { Set defs = (TreeSet) definitionLists.get(namespaceURI, localName); return defs != null && defs.size() != 0 ? 1 : 0; } };
/** * Removes a listener for changes to the given attribute value. */ public void removeTargetListener(String ns, String an, boolean isCSS, AnimationTargetListener l) { if (!isCSS) { LinkedList ll = (LinkedList) targetListeners.get(ns, an); ll.remove(l); } }
public int getLength() { Set defs = (TreeSet) definitionLists.get(namespaceURI, localName); return defs != null && defs.size() != 0 ? 1 : 0; } };
public Node item(int i) { TreeSet defs = (TreeSet) definitionLists.get(namespaceURI, localName); if (defs != null && defs.size() != 0 && i == 0) { DefinitionRecord defRec = (DefinitionRecord) defs.first(); return defRec.definition; } return null; } public int getLength() {
public Node item(int i) { TreeSet defs = (TreeSet) definitionLists.get(namespaceURI, localName); if (defs != null && defs.size() != 0 && i == 0) { DefinitionRecord defRec = (DefinitionRecord) defs.first(); return defRec.definition; } return null; } public int getLength() {
public Node item(int i) { TreeSet defs = (TreeSet) definitionLists.get(namespaceURI, localName); if (defs != null && defs.size() != 0 && i == 0) { DefinitionRecord defRec = (DefinitionRecord) defs.first(); return defRec.definition; } return null; } public int getLength() {
/** * Returns the definition record of the active definition for namespace * URI/local name pair. */ protected DefinitionRecord getActiveDefinition(String namespaceURI, String localName) { TreeSet defs = (TreeSet) definitionLists.get(namespaceURI, localName); if (defs == null || defs.size() == 0) { return null; } return (DefinitionRecord) defs.first(); }
/** * Returns the definition record of the active definition for namespace * URI/local name pair. */ protected DefinitionRecord getActiveDefinition(String namespaceURI, String localName) { TreeSet defs = (TreeSet) definitionLists.get(namespaceURI, localName); if (defs == null || defs.size() == 0) { return null; } return (DefinitionRecord) defs.first(); }
/** * Fires the listeners registered for changes to the base value of the * given attribute. */ void fireBaseAttributeListeners(String ns, String ln) { if (targetListeners != null) { LinkedList ll = (LinkedList) targetListeners.get(ns, ln); for (Object aLl : ll) { AnimationTargetListener l = (AnimationTargetListener) aLl; l.baseValueChanged(this, ns, ln, false); } } }
/** * Returns whether the given definition element is the active one * for its element name. */ protected boolean isActiveDefinition(XBLOMDefinitionElement def, Element imp) { DefinitionRecord defRec = (DefinitionRecord) definitions.get(def, imp); if (defRec == null) { return false; } return defRec == getActiveDefinition(defRec.namespaceURI, defRec.localName); }
/** * Fires the listeners registered for changes to the base value of the * given attribute. */ void fireBaseAttributeListeners(String ns, String ln) { if (targetListeners != null) { LinkedList ll = (LinkedList) targetListeners.get(ns, ln); for (Object aLl : ll) { AnimationTargetListener l = (AnimationTargetListener) aLl; l.baseValueChanged(this, ns, ln, false); } } }
/** * Returns the type of the given attribute. */ public final int getAttributeType(String ns, String ln) { DoublyIndexedTable t = getTraitInformationTable(); TraitInformation ti = (TraitInformation) t.get(ns, ln); if (ti != null) { return ti.getType(); } return SVGTypes.TYPE_UNKNOWN; }
/** * Returns whether the given XML attribute is animatable. */ public final boolean isAttributeAnimatable(String ns, String ln) { DoublyIndexedTable t = getTraitInformationTable(); TraitInformation ti = (TraitInformation) t.get(ns, ln); if (ti != null) { return ti.isAnimatable(); } return false; }
/** * Returns the type of the given attribute. */ public final int getAttributeType(String ns, String ln) { DoublyIndexedTable t = getTraitInformationTable(); TraitInformation ti = (TraitInformation) t.get(ns, ln); if (ti != null) { return ti.getType(); } return SVGTypes.TYPE_UNKNOWN; }
/** * Returns the type of the given attribute. */ public final int getAttributeType(String ns, String ln) { DoublyIndexedTable t = getTraitInformationTable(); TraitInformation ti = (TraitInformation) t.get(ns, ln); if (ti != null) { return ti.getType(); } return SVGTypes.TYPE_UNKNOWN; }