/** * 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; }
/** * 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 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; }
/** * Gets how percentage values are interpreted by the given attribute * or property. */ public short getPercentageInterpretation(String ns, String an, boolean isCSS) { if (isCSS || ns == null) { if (an.equals(CSSConstants.CSS_BASELINE_SHIFT_PROPERTY) || an.equals(CSSConstants.CSS_FONT_SIZE_PROPERTY)) { return PERCENTAGE_FONT_SIZE; } } if (!isCSS) { DoublyIndexedTable t = getTraitInformationTable(); TraitInformation ti = (TraitInformation) t.get(ns, an); if (ti != null) { return ti.getPercentageInterpretation(); } return PERCENTAGE_VIEWPORT_SIZE; } // Default for properties. return PERCENTAGE_VIEWPORT_SIZE; }
/** * Gets how percentage values are interpreted by the given attribute * or property. */ public short getPercentageInterpretation(String ns, String an, boolean isCSS) { if (isCSS || ns == null) { if (an.equals(CSSConstants.CSS_BASELINE_SHIFT_PROPERTY) || an.equals(CSSConstants.CSS_FONT_SIZE_PROPERTY)) { return PERCENTAGE_FONT_SIZE; } } if (!isCSS) { DoublyIndexedTable t = getTraitInformationTable(); TraitInformation ti = (TraitInformation) t.get(ns, an); if (ti != null) { return ti.getPercentageInterpretation(); } return PERCENTAGE_VIEWPORT_SIZE; } // Default for properties. return PERCENTAGE_VIEWPORT_SIZE; }
/** * Gets how percentage values are interpreted by the given attribute * or property. */ public short getPercentageInterpretation(String ns, String an, boolean isCSS) { if (isCSS || ns == null) { if (an.equals(CSSConstants.CSS_BASELINE_SHIFT_PROPERTY) || an.equals(CSSConstants.CSS_FONT_SIZE_PROPERTY)) { return PERCENTAGE_FONT_SIZE; } } if (!isCSS) { DoublyIndexedTable t = getTraitInformationTable(); TraitInformation ti = (TraitInformation) t.get(ns, an); if (ti != null) { return ti.getPercentageInterpretation(); } return PERCENTAGE_VIEWPORT_SIZE; } // Default for properties. return PERCENTAGE_VIEWPORT_SIZE; }