| java.lang.Object com.sun.perseus.model.ModelNode com.sun.perseus.model.CompositeNode com.sun.perseus.model.ElementNode
All known Subclasses: com.sun.perseus.model.TimedElementNode, com.sun.perseus.model.StrictElement, com.sun.perseus.model.Glyph, com.sun.perseus.model.PaintElement, com.sun.perseus.model.CompositeGraphicsNode, com.sun.perseus.model.Font, com.sun.perseus.model.HKern, com.sun.perseus.model.GenericElementNode, com.sun.perseus.model.FontFace,
ElementNode | abstract public class ElementNode extends CompositeNode implements SVGElement(Code) | | ElementNode models ModelNodes A ElementNode can have either ElementNode
children and text content children
(see the
ElementNode.appendTextChild appendTextChild} method).
In addition, Element s can have proxies (see
com.sun.perseus.model.ElementNodeProxy ElementNodeProxy ).
The proxies are used for implementing the behavior of the
<use> element and the <text>
element. The buildProxy and removeProxy
methods are used to add or remove proxies from a node.
Finally, the ElementNode class provides support
for the common XML attributes supported by elements, such as
the id , uriBase and conditional attributes.
version: $Id: ElementNode.java,v 1.27 2006/06/29 10:47:30 ln156897 Exp $ |
Method Summary | |
public void | add(ElementNode element) | protected void | addProxy(ElementNodeProxy proxy) Adds a proxy to this node. | protected static String | alignToStringTrait(int align) Converts an align value to a preserveAspectRatio string trait
value. | protected DOMException | animationError(String targetId, String traitNamespace, String traitName, String targetNamespace, String targetName, String animationId, String animationNamespace, String animationLocalName, String errorDescription) | public void | appendTextChild(String text) By default, appending a text child does not do anything. | protected ElementNodeProxy | buildExpandedProxy() | ElementNodeProxy | buildProxy() | final void | checkNCName(String name) Checks if the input trait name is valid and throws a DOMException
with error code NOT_SUPPORTED_ERR if not. | protected void | checkPositive(String name, float value) Throws a DOMException if the input float trait value is
strictly negative. | protected void | checkWriteLoading(String name) Throws a DOMException if the element is not loading, i.e., if
its loaded field is set to true. | final boolean | conditionEquals(int index, String[] conditionValue) Returns true if the condition at the given index is equal to the input
value. | TraitAnim | createTraitAnimImpl(String traitName) To be overridden by derived classes. | TraitAnim | createTraitAnimNS(String traitNamespace, String traitName) Implementation method.
Creates a TraitAnim for the requested trait. | TraitAnim | createTraitAnimNSImpl(String traitNamespace, String traitName) To be overridden by derived classes. | public static boolean | equal(Object objA, Object objB) Parameters: objA - first object to compare. Parameters: objB - second object to compare. | public static boolean | equal(float[] faa, float[] fab) | public static boolean | equal(String[] saa, String[] sab) | public static boolean | equal(int[][] iaa, int[][] iab) | public static boolean | equal(float[][] faa, float[][] fab) | protected String | fontStylesToStringTrait(int styles) Converts a FontFace's font-styles to a String trait. | protected String | fontWeightsToStringTrait(int weight) Converts an FontFace's font-weights to a String trait. | final public String | getAttribute(String name) Returns the requested attribute. | final public String | getAttributeNS(String namespaceURI, String name) Returns the requested attribute in the specified namespace.
Parameters: namespaceURI - - the namespace URI of the attribute to create or alter. Parameters: name - - the local name of the attribute to create or alter. | String[] | getConditionalAttribute(int index) Returns the value of the conditional attribute with the given
index.
Parameters: index - the conditional attribute index. | public String[][] | getDefaultTraits() an array of trait default values, used if this elementrequires that the default trait value be explicitly set through a setTrait call. | public ModelNode | getFirstComputedExpandedChild() Some node types (such as ElementNodeProxy ) have
expanded children that they compute in some specific
way depending on the implementation. | public Element | getFirstElementChild() the first child element node of this element. | ModelNode | getFirstExpandedChild() By default, an ElementNode has no expanded content, so this
returns null. | final public float | getFloatTrait(String name) Parameters: name - the requested trait's name. | float | getFloatTraitImpl(String name) Parameters: name - the requested trait's name. | public String | getId() | public Element | getLastElementChild() the last child element node of this element. | ModelNode | getLastExpandedChild() By default, an ElementNode has no expanded content, so this
returns null. | final public SVGMatrix | getMatrixTrait(String name) Returns the trait value as
org.w3c.dom.svg.SVGMatrix SVGMatrix .
The returned object is a copy of the actual trait value and will not
change ifthe corresponding trait changes.
Parameters: name - matrix trait name. | SVGMatrix | getMatrixTraitImpl(String name) Returns the trait value as
org.w3c.dom.svg.SVGMatrix SVGMatrix .
The returned object is a copy of the actual trait value and will not
change ifthe corresponding trait changes.
Parameters: name - matrix trait name. | public String | getNamespaceURI() the namespace URI of the Node. | public Element | getNextElementSibling() the next sibling element node of this element. | public boolean | getPaintNeedsLoad() | public Node | getParentNode() Returns the parent Node of this Node .
the parent node or null if there is no parent (i.e. | final public SVGPath | getPathTrait(String name) Returns the trait value as
org.w3c.dom.svg.SVGPath SVGPath . | SVGPath | getPathTraitImpl(String name) Returns the trait value as
org.w3c.dom.svg.SVGPath SVGPath . | public Element | getPreviousElementSibling() the previous sibling element node of this element. | final public SVGRGBColor | getRGBColorTrait(String name) Returns the trait value as
org.w3c.dom.svg.SVGRGBColorSVGRGBColor . | SVGRGBColor | getRGBColorTraitImpl(String name) Returns the trait value as
org.w3c.dom.svg.SVGRGBColorSVGRGBColor . | final public SVGRect | getRectTrait(String name) Parameters: name - the trait's name. | SVGRect | getRectTraitImpl(String name) Parameters: name - the trait's name. | public String[] | getRequiredExtensions() The node will only render if the required extension is supported
by Perseus. | public String[] | getRequiredFeatures() The node will only render if the required feature is
supported by Perseus. | public String[] | getRequiredTraits() | public String[][] | getRequiredTraitsNS() | TraitAnim | getSafeTraitAnimNS(String traitNamespace, String traitName) Parameters: traitNamespace - the namespace of the trait for which a TraitAnimis requested. Parameters: traitName - the trait for which there may be a TraitAnimation. | String | getSpecifiedTraitImpl(String traitName) Returns the specified trait value as String. | String | getSpecifiedTraitNSImpl(String traitNamespace, String traitName) Returns the specified trait value as String. | public String[] | getSystemLanguage() The node will only render if the Perseus user language matches
one of the values in this comma separated list. | final public String | getTrait(String traitName) The traits supported by default are: externalResourcesRequired,
xml:base, xml:space, requiredFeatures, requiredExtensions and
systemLanguage.
Returns the trait value as String. | public String[][] | getTraitAliases() an array of trait aliases. | TraitAnim | getTraitAnimNS(String traitNamespace, String traitName) Parameters: traitNamespace - the namespace of the trait for which a TraitAnimis requested. Parameters: traitName - the trait for which there may be a TraitAnimation. | public String | getTraitImpl(String name) The traits supported by default are: externalResourcesRequired,
xml:base, xml:space, requiredFeatures, requiredExtensions and
systemLanguage.
Returns the trait value as String. | final public String | getTraitNS(String namespaceURI, String name) Same as
org.w3c.dom.svg.SVGElement.getTrait getTrait , but for
namespaced traits. | String | getTraitNSImpl(String namespaceURI, String name) Same as
org.w3c.dom.svg.SVGElement.getTrait getTrait , but for
namespaced traits. | public String | getURIBase() The node's URI base to use to resolve URI references
If a URI base value was set on this node, then that value
is returned. | public int | getXMLSpace() Defines how the node handles white spaces. | DOMException | illegalTraitValue(String name, String value) Parameters: name - the name of the trait Parameters: value - the illegal value. | protected DOMException | illegalTraitValue(String name, String namespaceURI, String value) Parameters: name - the name of the trait Parameters: namespaceURI - the trait's namespace URI. Parameters: value - the illegal value. | public static String | intern(String str) Utility method.
Parameters: str - the String object to intern. | protected void | modifiedNode() | protected void | modifyingNode() | abstract public ElementNode | newInstance(DocumentNode doc) Used by DocumentNode to create a new instance from
a prototype ElementNode .
Parameters: doc - the DocumentNode for which a new node isshould be created. | void | nodeHookedInDocumentTree() When an Element is hooked into the document tree, it needs
to register as an identified node if it does have an id. | DOMException | notAnimatable(String traitNamespace, String traitName) Parameters: name - the name of the trait Parameters: value - the illegal value. | final protected Time | parseClockTrait(String traitName, String value) Parses the input value and converts it to a Time value.
Parameters: traitName - the name of the clock trait being parsed. Parameters: value - the value to convert to a Time instance. | final protected RGB | parseColorTrait(String traitName, String value) | final public float[] | parseFloatArrayTrait(String traitName, String value) Utility method. | final public float[] | parseFloatArrayTrait(String traitName, String value, char sep) Utility method. | final protected float | parseFloatTrait(String name, String value) Parses the input value and converts it to a float value.
Parameters: name - the name of the trait to convert to a float. Parameters: value - the value to convert to a float. | public String[] | parseFontFamilyTrait(String name, String value) Parses the input value assuming it has the folloing syntax:
Value: [ | ] [, [ |
]]*
Parameters: name - the name of the trait being parsed. Parameters: value - the font family value to be parsed. | final public int | parseFontStylesTrait(String name, String value) | final protected int | parseFontWeightsTrait(String name, String value) CSS 2 specification ((section 15.3.2) and SVG 1.1 specification
(20.8.3):
all | [normal | bold |100 | 200 | 300 | 400 | 500 | 600 |
700 | 800 | 900] [, [normal | bold |100 | 200 | 300 |
400 | 500 | 600 | 700 | 800 | 900]]*
Parameters: name - the name of the trait to parse Parameters: value - the trait value. | final protected float | parseLengthTrait(String name, String value, boolean isHorizontal) Parses the input value and converts it to a float.
Parameters: name - the trait name. Parameters: value - the value to convert to a float. Parameters: isHorizontal - controls whether this is a horizontal length or not. | final protected Time | parseMinMaxClock(String traitName, String value, boolean isMin) Parses the input value and converts it to a Time value. | final protected PaintServer | parsePaintTrait(String traitName, PaintTarget paintTarget, String value) | final protected Path | parsePathTrait(String name, String value) Parses the input value and converts it to a Path value. | final protected Path | parsePointsTrait(String name, String value) Parses the input points value and converts it to a Path value. | final protected float[] | parsePositiveFloatArrayTrait(String name, String value) Parses the input value and converts it to a float array value.
Parameters: name - the name of the trait to convert to a float array. Parameters: value - the value to convert to a float. | final protected float | parsePositiveFloatTrait(String name, String value) Parses the input value and converts it to a positive float value.
Parameters: name - the trait name. Parameters: value - the value to convert to a float. | final protected float | parsePositiveLengthTrait(String name, String value, boolean isHorizontal) Parses the input value and converts it to a float.
Parameters: name - the trait name. Parameters: value - the value to convert to a float. Parameters: isHorizontal - controls whether this is a horizontal length or not. | final protected String[] | parseStringArrayTrait(String name, String value, String seperators) Parses the input value and converts it to a String array. | final protected Transform | parseTransformTrait(String name, String value) Parses the input value and converts it to an Transform value.
Parameters: name - the trait's name. Parameters: value - the value to convert to a transform. | final protected int[][] | parseUnicodeRangeTrait(String name, String value) Parses the input value, assuming a unicode range syntax, as for the
<hkern> element's u1 and u2 attributes.
Parameters: name - the trait name. Parameters: value - the trait value. | protected void | preValidate() Invoked before an element is added to the document tree, to let the
element perform any validation it needs. | ModelNode | proxyNodeHitAt(float[] pt, ElementNodeProxy proxy) Returns the ModelNode , if any, hit by the
point at coordinate x/y in the proxy tree starting at
proxy.
Parameters: pt - the x/y coordinate. | protected DOMException | readOnlyTraitError(String name) Parameters: name - the trait name. | protected void | recomputeProxyTransformState() Recomputes the transform cache on proxy nodes. | void | removeProxy(ElementNodeProxy proxy) Removes a proxy from this node. | final public void | setAttribute(String name, String value) Adds a new attribute. | final public void | setAttributeNS(String namespaceURI, String name, String value) Adds a new attribute. | void | setConditionalAttribute(int index, String[] newValue) Sets the new value for the given conditional attribute. | void | setFloatArrayTrait(String name, float[][] value) Set the trait value as float. | final public void | setFloatTrait(String name, float value) Set the trait value as float. | void | setFloatTraitImpl(String name, float value) Set the trait value as a float. | public void | setId(String newId) Parameters: newId - the node's identifier throws: DOMException - - with error code NO_MODIFICATION_ALLOWED_ERR israised if an attempt is made to change an existing Id. throws: DOMException - - with error code INVALID_ACCESS_ERR is raised ifthe Id is not unique i.e. | final public void | setMatrixTrait(String name, SVGMatrix matrix) Set the trait value as
org.w3c.dom.svg.SVGMatrix SVGMatrix . | void | setMatrixTraitImpl(String name, Transform matrix) Set the trait value as
org.w3c.dom.svg.SVGMatrix SVGMatrix . | final public void | setPathTrait(String name, SVGPath path) Set the trait value as
org.w3c.dom.svg.SVGPath SVGPath . | void | setPathTraitImpl(String name, SVGPath path) Set the trait value as
org.w3c.dom.svg.SVGPath SVGPath . | public void | setPreferedPaintNeedsLoad(boolean paintNeedsLoad) Parameters: paintNeedsLoad - if true, the node can only be painted after itschildren have been loaded. | final public void | setRGBColorTrait(String name, SVGRGBColor color) Set the trait value as
org.w3c.dom.svg.SVGRGBColor SVGRGBColor . | void | setRGBColorTraitImpl(String name, SVGRGBColor color) Set the trait value as
org.w3c.dom.svg.SVGRGBColor SVGRGBColor . | final public void | setRectTrait(String name, SVGRect rect) Set the trait value as
org.w3c.dom.svg.SVGRect SVGRect . | public void | setRectTraitImpl(String name, SVGRect rect) Set the trait value as
org.w3c.dom.svg.SVGRect SVGRect . | public void | setRequiredExtensions(String[] newRequiredExtensions) The node will only render if the requiredExtensions string
evaluates to true. | public void | setRequiredFeatures(String[] newRequiredFeatures) The node will only render if the requiredFeatures string
evaluates to true. | public void | setSystemLanguage(String[] newSystemLanguage) The node will only render if the Perseus user language matches
one of the values in this comma separated list. | final public void | setTrait(String name, String value) The traits supported by default are: externalResourcesRequired,
xml:base, xml:space, requiredFeatures, requiredExtensions and
systemLanguage. | public void | setTraitImpl(String name, String value) The traits supported by default are: externalResourcesRequired,
xml:base, xml:space, requiredFeatures, requiredExtensions and
systemLanguage. | final public void | setTraitNS(String namespaceURI, String name, String value) | public void | setTraitNSImpl(String namespaceURI, String name, String value) Same as
org.w3c.dom.svg.SVGElement.setTrait setTrait , but for
namespaced traits. | public void | setURIBase(String newUriBase) Parameters: newUriBase - the node's new URI base. | public void | setXMLSpace(int newXmlSpace) Controls how the node handles white spaces
Parameters: newXmlSpace - should be one of XML_SPACE_DEFAULT, XML_SPACE_PRESERVE, or XML_SPACE_INHERIT. | boolean | supportsTrait(String traitName) Parameters: traitName - the name of the trait which the element may support. | boolean | supportsTraitNS(String namespaceURI, String traitName) Parameters: namespaceURI - the trait's namespace URI. Parameters: traitName - the name of the trait which the element may support. | float[][] | toAnimatedFloatArray(float v) Converts the input float value to an animated float array trait.
Parameters: v - the float value to wrap in a float[][] array. | float[][] | toAnimatedFloatArray(float[] a) Converts the input float[] array to an animated float array trait.
Parameters: a - the float array to wrap in a float[][] array. | float[][] | toAnimatedFloatArray(Path path) Utility method to convert a Path to an animatable float array. | protected RGB | toRGB(String name, float[][] v) Converts an animated float[][] value into an AWT color value.
Parameters: name - the trait's name. Parameters: value - the float[][] to convert. | protected String | toRGBString(String name, float[][] v) Converts an animated float[][] value into an String rgb value.
Parameters: name - the trait's name. Parameters: value - the float[][] to convert. | protected SVGMatrix | toSVGMatrixTrait(Transform transform) Helper method. | protected SVGRGBColor | toSVGRGBColor(String traitName, PaintServer paint) Converts an J2D RGB to an SVG DOM RGBColor
Parameters: traitName - the name of the trait whose value is convereted. Parameters: paint - the PaintServer to convert. | protected SVGRect | toSVGRect(float[][] viewBox) Converts a viewBox array to an SVGRect value. | String | toString(PaintServer paintServer) Conversts the input PaintServer value to a String trait value. | public String | toString() | String | toStringTrait(String traitName, float[][] value) Converts the input float array value to a String value. | protected String | toStringTrait(String[] array) Converts a Java String array to a trait string array with the format:
"str1, str2, .., strN"
Parameters: array - the string array to be converted. | protected String | toStringTrait(String[] array, String sep) Converts a Java String array to a trait string array with the format:
"str1, str2, .., strN"
Parameters: array - the string array to be converted. Parameters: sep - seperator to use in the output string array. | protected String | toStringTrait(float[] array) Helper method. | protected String | toStringTrait(float[] array, char sep) Helper method. | protected String | toStringTrait(float[][] array) Helper method. | protected static String | toStringTrait(Transform transform) Helper method. | protected String | toStringTraitQuote(String[] array) Converts a Java String array to a trait string array with the format:
"str1, str2, .., strN". | float[] | toTraitFloatArray(float[][] value) Converts an animated float array to a trait float array value.
This is used for multi-component trait values, such as
stroke-dasharray, or the text's x, y or rotate values.
Parameters: value - the animated value to convert. | protected float[][] | toViewBox(String name, String value) Converts an comma seperated list of floats to a viewBox array
Parameters: name - the trait name Parameters: value - the trait value to be converted to an SVGRect. | protected void | unhookChildrenQuiet() Utility method. | protected void | unhookExpandedQuiet() Utility method. | protected String | unicodeRangeToStringTrait(int[][] u) Helper method. | protected DOMException | unsupportedTrait(String name) | protected DOMException | unsupportedTraitNS(String name, String namespaceURI) Parameters: name - the trait name Parameters: namespaceURI - the trait's namespace URI. | protected DOMException | unsupportedTraitType(String name, String type) Parameters: name - the trait name. | protected DOMException | unsupportedTraitTypeNS(String name, String namespaceURI, String type) Parameters: name - the trait name. | float[][] | validateFloatArrayTrait(String traitName, String value, String reqNamespaceURI, String reqLocalName, String reqTraitNamespace, String reqTraitName) Validates the input trait value. | String | validateTraitNS(String namespaceURI, String traitName, String value, String reqNamespaceURI, String reqLocalName, String reqTraitNamespace, String reqTraitName) Validates the input trait value.
Parameters: namespaceURI - the trait's namespace URI. Parameters: traitName - the name of the trait to be validated. Parameters: value - the value to be validated Parameters: reqNamespaceURI - the namespace of the element requesting validation. Parameters: reqLocalName - the local name of the element requesting validation. Parameters: reqTraitNamespace - the namespace of the trait which has the valuesvalue on the requesting element. Parameters: reqTraitName - the name of the trait which has the values value on the requesting element. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is incompatible with the given trait. |
CONDITIONAl_ATTRIBUTES_LENGTH | final public static int CONDITIONAl_ATTRIBUTES_LENGTH(Code) | | Number of conditional attributes.
|
NULL_NS | final static String NULL_NS(Code) | | Constant used to identify the per-element partition
(sometimes called anonymous) namespace.
|
REQUIRED_EXTENSIONS_INDEX | final public static int REQUIRED_EXTENSIONS_INDEX(Code) | | Index for requiredExtensions in conditionalAttributes
|
REQUIRED_FEATURES_INDEX | final public static int REQUIRED_FEATURES_INDEX(Code) | | Index for requiredFeatures in conditionalAttributes.
|
SYSTEM_LANGUAGE_INDEX | final public static int SYSTEM_LANGUAGE_INDEX(Code) | | Index for systemLanguage in conditionalAttributes
|
TRAIT_TYPE_FLOAT | final static String TRAIT_TYPE_FLOAT(Code) | | Float trait type.
|
TRAIT_TYPE_STRING | final static String TRAIT_TYPE_STRING(Code) | | String trait type.
|
TRAIT_TYPE_SVG_MATRIX | final static String TRAIT_TYPE_SVG_MATRIX(Code) | | SVGMatrix trait type.
|
TRAIT_TYPE_SVG_PATH | final static String TRAIT_TYPE_SVG_PATH(Code) | | SVGPath trait type.
|
TRAIT_TYPE_SVG_RECT | final static String TRAIT_TYPE_SVG_RECT(Code) | | SVGRect trait type
|
TRAIT_TYPE_SVG_RGB_COLOR | final static String TRAIT_TYPE_SVG_RGB_COLOR(Code) | | SVGRGBColor trait type.
|
XML_SPACE_DEFAULT | final public static int XML_SPACE_DEFAULT(Code) | | See the SVG 1.1 specification
|
XML_SPACE_INHERIT | final public static int XML_SPACE_INHERIT(Code) | | Use the parent node's xml:space setting
|
XML_SPACE_PRESERVE | final public static int XML_SPACE_PRESERVE(Code) | | See the SVG 1.1 specification
|
buildingProxy | protected boolean buildingProxy(Code) | | Used to detect circular references when building
proxy chains.
|
conditionalAttributes | protected String[][] conditionalAttributes(Code) | | This node's conditional attributes.
|
paintNeedsLoad | protected boolean paintNeedsLoad(Code) | | Controls whether or not the node needs to be fully loaded
before it can be painted.
|
traitAnimsNS | protected Hashtable traitAnimsNS(Code) | | Maps namespaces to a map of (localName, TraitAnim)
|
xmlSpace | protected int xmlSpace(Code) | | The node's text white space handling policy
|
ElementNode | public ElementNode(DocumentNode ownerDocument)(Code) | | Only constructor.
Parameters: ownerDocument - the document this node belongs to. throws: IllegalArgumentException - if the input ownerDocument is null |
add | public void add(ElementNode element)(Code) | | Appends an element at the end of the list
Parameters: element - the node to add to this CompositeNode throws: NullPointerException - if the input argument is null. |
alignToStringTrait | protected static String alignToStringTrait(int align)(Code) | | Converts an align value to a preserveAspectRatio string trait
value.
Parameters: align - one of StructureNode.ALIGN_NONE, StructureNode.ALIGN_XMIDYMID |
animationError | protected DOMException animationError(String targetId, String traitNamespace, String traitName, String targetNamespace, String targetName, String animationId, String animationNamespace, String animationLocalName, String errorDescription)(Code) | | Parameters: targetId - the target element's id (may be null) Parameters: traitNamespace - the animated trait's namespace. Parameters: traitName - the animated trait's name. Parameters: targetNamespace - the target element's namespace. Parameters: targetName - the target element's name Parameters: animationId - the animation id (may be null) Parameters: animationNamespace - the animation's namespace Parameters: animationLocalName - the animation's local name. Parameters: errorDescription - the animation error's description. |
appendTextChild | public void appendTextChild(String text)(Code) | | By default, appending a text child does not do anything.
Parameters: text - the text child to append to this node. |
buildExpandedProxy | protected ElementNodeProxy buildExpandedProxy()(Code) | | an adequate ElementNodeProxy for this node andmakes sure the content is expanded before returning. |
checkNCName | final void checkNCName(String name) throws DOMException(Code) | | Checks if the input trait name is valid and throws a DOMException
with error code NOT_SUPPORTED_ERR if not.
Parameters: name - the name whose syntax should be checked. throws: DOMException - with error code NOT_SUPPORTED_ERR if the trait name is syntactically incorrect (e.g., null or containingcharacters not conforming to the Namespaces in XML specification. See Also: http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName |
checkPositive | protected void checkPositive(String name, float value)(Code) | | Throws a DOMException if the input float trait value is
strictly negative.
Parameters: name - the trait name. Parameters: value - the trait float value. |
checkWriteLoading | protected void checkWriteLoading(String name) throws DOMException(Code) | | Throws a DOMException if the element is not loading, i.e., if
its loaded field is set to true.
Parameters: name - the name of the trait that is accessed. |
conditionEquals | final boolean conditionEquals(int index, String[] conditionValue)(Code) | | Returns true if the condition at the given index is equal to the input
value.
|
createTraitAnimImpl | TraitAnim createTraitAnimImpl(String traitName)(Code) | | To be overridden by derived classes. Should create the proper
TraitAnim type for the given trait in the anonymous namespace.
Parameters: traitName - the trait name. |
createTraitAnimNS | TraitAnim createTraitAnimNS(String traitNamespace, String traitName)(Code) | | Implementation method.
Creates a TraitAnim for the requested trait. This method does not
check whether or not there is an existing TraitAnim for the trait.
Instead, it creates a new TraitAnim and associates it with the
given trait. After this call, any call to getSafeTraitAnimNS or
getTraitAnimNS will return this new object.
Parameters: traitName - the trait name. Parameters: traitNamespace - the trait's namespace. Should not be null. |
createTraitAnimNSImpl | TraitAnim createTraitAnimNSImpl(String traitNamespace, String traitName)(Code) | | To be overridden by derived classes. Should create the proper
TraitAnim type for the given trait in the desired namespace.
Parameters: traitName - the trait name. |
equal | public static boolean equal(Object objA, Object objB)(Code) | | Parameters: objA - first object to compare. Parameters: objB - second object to compare. true if the objects are both null or if they are Object.equals() |
equal | public static boolean equal(float[] faa, float[] fab)(Code) | | Parameters: faa - first float array to compare Parameters: faab - second float array to compare true if the objects are both null or if they are equal |
equal | public static boolean equal(String[] saa, String[] sab)(Code) | | Parameters: saa - first string array to compare Parameters: sab - second string array to compare true if the objects are both null or if they are equal |
equal | public static boolean equal(int[][] iaa, int[][] iab)(Code) | | Parameters: iaa - first int array to compare Parameters: iab - second int array to compare true if the objects are both null or if they are equal |
equal | public static boolean equal(float[][] faa, float[][] fab)(Code) | | Parameters: faa - first float array to compare Parameters: fab - second float array to compare true if the objects are both null or if they are equal |
fontStylesToStringTrait | protected String fontStylesToStringTrait(int styles)(Code) | | Converts a FontFace's font-styles to a String trait.
Parameters: styles - the FontFace type styles value. |
fontWeightsToStringTrait | protected String fontWeightsToStringTrait(int weight)(Code) | | Converts an FontFace's font-weights to a String trait.
Parameters: weight - the FontFace type' weights value. |
getAttribute | final public String getAttribute(String name) throws DOMException(Code) | | Returns the requested attribute.
Parameters: name - - the name of the attribute to add. the attribute value or empty string if the attribute is not specified. throws: DOMException - INVALID_CHARACTER_ERR: Raised if the specified namecontains an illegal character. |
getAttributeNS | final public String getAttributeNS(String namespaceURI, String name) throws DOMException(Code) | | Returns the requested attribute in the specified namespace.
Parameters: namespaceURI - - the namespace URI of the attribute to create or alter. Parameters: name - - the local name of the attribute to create or alter. the attribute value as a string, or the empty string if the attribute was not specified. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. |
getConditionalAttribute | String[] getConditionalAttribute(int index)(Code) | | Returns the value of the conditional attribute with the given
index.
Parameters: index - the conditional attribute index. the conditional attribute value. |
getDefaultTraits | public String[][] getDefaultTraits()(Code) | | an array of trait default values, used if this elementrequires that the default trait value be explicitly set through a setTrait call. This happens, for example,with the begin trait value on animation elements. |
getFirstComputedExpandedChild | public ModelNode getFirstComputedExpandedChild()(Code) | | Some node types (such as ElementNodeProxy ) have
expanded children that they compute in some specific
way depending on the implementation.
a reference to the node's first expanded child, or null if thereare no expanded children. |
getFirstElementChild | public Element getFirstElementChild()(Code) | | the first child element node of this element. null if this element has no child elements. |
getFirstExpandedChild | ModelNode getFirstExpandedChild()(Code) | | By default, an ElementNode has no expanded content, so this
returns null.
a reference to the node's first expanded child, or null if thereare no expanded children. This forces the computation of expandedcontent if needed. |
getFloatTrait | final public float getFloatTrait(String name) throws DOMException(Code) | | Parameters: name - the requested trait's name. the trait value as float. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to a float |
getFloatTraitImpl | float getFloatTraitImpl(String name)(Code) | | Parameters: name - the requested trait's name. the trait value as float. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to a float |
getLastElementChild | public Element getLastElementChild()(Code) | | the last child element node of this element. null if this elementhas no child elements. |
getLastExpandedChild | ModelNode getLastExpandedChild()(Code) | | By default, an ElementNode has no expanded content, so this
returns null.
a reference to the node's last expanded child, or null if thereare no expanded children. This forces the computation of expandedcontent if needed. |
getMatrixTrait | final public SVGMatrix getMatrixTrait(String name) throws DOMException(Code) | | Returns the trait value as
org.w3c.dom.svg.SVGMatrix SVGMatrix .
The returned object is a copy of the actual trait value and will not
change ifthe corresponding trait changes.
Parameters: name - matrix trait name. the trait value corresponding to name as SVGMatrix. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to org.w3c.dom.svg.SVGMatrix SVGMatrix |
getMatrixTraitImpl | SVGMatrix getMatrixTraitImpl(String name) throws DOMException(Code) | | Returns the trait value as
org.w3c.dom.svg.SVGMatrix SVGMatrix .
The returned object is a copy of the actual trait value and will not
change ifthe corresponding trait changes.
Parameters: name - matrix trait name. the trait value corresponding to name as SVGMatrix. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to org.w3c.dom.svg.SVGMatrix SVGMatrix |
getNamespaceURI | public String getNamespaceURI()(Code) | | the namespace URI of the Node. By default, this returnsSVGConstants.SVG_NAMESPACE_URI. |
getNextElementSibling | public Element getNextElementSibling()(Code) | | the next sibling element node of this element. null if this element has no element sibling nodes that come after this one inthe document tree. |
getPaintNeedsLoad | public boolean getPaintNeedsLoad()(Code) | | true if the node needs to be fully loaded before itcan be painted |
getParentNode | public Node getParentNode()(Code) | | Returns the parent Node of this Node .
the parent node or null if there is no parent (i.e. if a node hasjust been created and not yet added to the tree, or if it has beenremoved from the tree, this is null). throws: SecurityException - if the application does not have the necessaryprivilege rights to access this (SVG) content. |
getPathTrait | final public SVGPath getPathTrait(String name) throws DOMException(Code) | | Returns the trait value as
org.w3c.dom.svg.SVGPath SVGPath . The
returned object is a copy of the actual trait value and will not change
if the corresponding trait changes.
Parameters: name - the trait's name. the trait's value, as an SVGPath object. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to org.w3c.dom.svg.SVGPath SVGPath |
getPathTraitImpl | SVGPath getPathTraitImpl(String name) throws DOMException(Code) | | Returns the trait value as
org.w3c.dom.svg.SVGPath SVGPath . The
returned object is a copy of the actual trait value and will not change
if the corresponding trait changes.
Parameters: name - the trait's name. the trait's value, as an SVGPath object. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to org.w3c.dom.svg.SVGPath SVGPath |
getPreviousElementSibling | public Element getPreviousElementSibling()(Code) | | the previous sibling element node of this element. null if thiselement has no element sibling nodes that come before this one in thedocument tree. |
getRGBColorTrait | final public SVGRGBColor getRGBColorTrait(String name) throws DOMException(Code) | | Returns the trait value as
org.w3c.dom.svg.SVGRGBColorSVGRGBColor . The returned object is a copy of the trait value and will
not change if the corresponding trait changes. If the actual trait value
is not an RGBColor (i.e. "none"), this method will return null.
Parameters: name - the requested trait name. the trait value, as an SVGRGBColor object. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to org.w3c.dom.svg.SVGRGBColor SVGRGBColor |
getRGBColorTraitImpl | SVGRGBColor getRGBColorTraitImpl(String name) throws DOMException(Code) | | Returns the trait value as
org.w3c.dom.svg.SVGRGBColorSVGRGBColor . The returned object is a copy of the trait value and will
not change if the corresponding trait changes. If the actual trait value
is not an RGBColor (i.e. "none"), this method will return null.
Parameters: name - the requested trait name. the trait value, as an SVGRGBColor object. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to org.w3c.dom.svg.SVGRGBColor SVGRGBColor |
getRectTrait | final public SVGRect getRectTrait(String name) throws DOMException(Code) | | Parameters: name - the trait's name. the trait value as org.w3c.dom.svg.SVGRect SVGRect. Thereturned object is a copy of the actual trait value and will not changeif the corresponding trait changes. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to org.w3c.dom.svg.SVGRect SVGRect |
getRectTraitImpl | SVGRect getRectTraitImpl(String name) throws DOMException(Code) | | Parameters: name - the trait's name. the trait value as org.w3c.dom.svg.SVGRect SVGRect. Thereturned object is a copy of the actual trait value and will not changeif the corresponding trait changes. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to org.w3c.dom.svg.SVGRect SVGRect |
getRequiredExtensions | public String[] getRequiredExtensions()(Code) | | The node will only render if the required extension is supported
by Perseus.
the extensions required to render this node See Also: ElementNode.setRequiredExtensions |
getRequiredFeatures | public String[] getRequiredFeatures()(Code) | | The node will only render if the required feature is
supported by Perseus.
the array of features required for this node to render. See Also: ElementNode.setRequiredFeatures |
getRequiredTraits | public String[] getRequiredTraits()(Code) | | an array of traits that are required by this element. |
getRequiredTraitsNS | public String[][] getRequiredTraitsNS()(Code) | | an array of namespaceURI, localName trait pairs required bythis element. |
getSafeTraitAnimNS | TraitAnim getSafeTraitAnimNS(String traitNamespace, String traitName)(Code) | | Parameters: traitNamespace - the namespace of the trait for which a TraitAnimis requested. Parameters: traitName - the trait for which there may be a TraitAnimation. the TraitAnim for the requested trait name. |
getSpecifiedTraitImpl | String getSpecifiedTraitImpl(String traitName) throws DOMException(Code) | | Returns the specified trait value as String. In SVG Tiny only certain
traits can be obtained as a String value. Syntax of the returned String
matches the syntax of the corresponding attribute. This element is
exactly equivalent to
org.w3c.dom.svg.SVGElement.getTraitNSgetTraitNS with namespaceURI set to null.
The method is meant to be overridden by derived classes. The
implementation pattern is that derived classes will override the method
and call their super class' implementation. If the ElementNode
implementation is called, it means that the trait is either not supported
or that it cannot be seen as a String.
Parameters: traitName - the requested trait name. the trait value. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to a String (SVG Tiny only). |
getSpecifiedTraitNSImpl | String getSpecifiedTraitNSImpl(String traitNamespace, String traitName) throws DOMException(Code) | | Returns the specified trait value as String. In SVG Tiny only certain
traits can be obtained as a String value. Syntax of the returned String
matches the syntax of the corresponding attribute. This element is
exactly equivalent to
org.w3c.dom.svg.SVGElement.getTraitNSgetTraitNS with namespaceURI set to null.
The method is meant to be overridden by derived classes. The
implementation pattern is that derived classes will override the method
and call their super class' implementation. If the ElementNode
implementation is called, it means that the trait is either not supported
or that it cannot be seen as a String.
Parameters: traitNamespace - the requested trait's namespace. Parameters: traitName - the requested trait name. the trait value. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to a String (SVG Tiny only). |
getSystemLanguage | public String[] getSystemLanguage()(Code) | | The node will only render if the Perseus user language matches
one of the values in this comma separated list. A null value is a
match.
the set of system languages. See Also: ElementNode.setSystemLanguage |
getTrait | final public String getTrait(String traitName) throws DOMException(Code) | | The traits supported by default are: externalResourcesRequired,
xml:base, xml:space, requiredFeatures, requiredExtensions and
systemLanguage.
Returns the trait value as String. In SVG Tiny only certain traits can be
obtained as a String value. Syntax of the returned String matches the
syntax of the corresponding attribute. This element is exactly equivalent
to
org.w3c.dom.svg.SVGElement.getTraitNS getTraitNS with
namespaceURI set to null.
The method is meant to be overridden by derived classes. The
implementation pattern is that derived classes will override the method
and call their super class' implementation. If the ElementNode
implementation is called, it means that the trait is either not supported
or that it cannot be seen as a String.
Parameters: name - the requested trait name. the trait value. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to a String (SVG Tiny only). |
getTraitAliases | public String[][] getTraitAliases()(Code) | | an array of trait aliases. These are used when the value of a trait can be used to set the value of another trait.For example, on a , if the rx trait is not specified in the original XML document, the value fot eh ry trait should be used. |
getTraitAnimNS | TraitAnim getTraitAnimNS(String traitNamespace, String traitName)(Code) | | Parameters: traitNamespace - the namespace of the trait for which a TraitAnimis requested. Parameters: traitName - the trait for which there may be a TraitAnimation. the TraitAnim for the requested trait name. |
getTraitImpl | public String getTraitImpl(String name) throws DOMException(Code) | | The traits supported by default are: externalResourcesRequired,
xml:base, xml:space, requiredFeatures, requiredExtensions and
systemLanguage.
Returns the trait value as String. In SVG Tiny only certain traits can be
obtained as a String value. Syntax of the returned String matches the
syntax of the corresponding attribute. This element is exactly equivalent
to
org.w3c.dom.svg.SVGElement.getTraitNS getTraitNS with
namespaceURI set to null.
The method is meant to be overridden by derived classes. The
implementation pattern is that derived classes will override the method
and call their super class' implementation. If the ElementNode
implementation is called, it means that the trait is either not supported
or that it cannot be seen as a String.
Parameters: name - the requested trait name. the trait value. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to a String (SVG Tiny only). |
getTraitNS | final public String getTraitNS(String namespaceURI, String name) throws DOMException(Code) | | Same as
org.w3c.dom.svg.SVGElement.getTrait getTrait , but for
namespaced traits. Parameter name must be a non-qualified trait name,
i.e. without prefix.
Parameters: namespaceURI - the requested trait's namespace. Parameters: name - the requested trait's local name (un-prefixed, e.g, 'href') throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to a String (SVG Tiny only). throws: SecurityException - if the application does not have the necessaryprivilege rights to access this (SVG) content. |
getTraitNSImpl | String getTraitNSImpl(String namespaceURI, String name)(Code) | | Same as
org.w3c.dom.svg.SVGElement.getTrait getTrait , but for
namespaced traits. Parameter name must be a non-qualified trait name,
i.e. without prefix.
Parameters: namespaceURI - the requested trait's namespace. Parameters: name - the requested trait's local name (un-prefixed, e.g, 'href') throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if requestedtrait's computed value cannot be converted to a String (SVG Tiny only). throws: SecurityException - if the application does not have the necessaryprivilege rights to access this (SVG) content. |
getURIBase | public String getURIBase()(Code) | | The node's URI base to use to resolve URI references
If a URI base value was set on this node, then that value
is returned. Otherwise, this method returns the parent's
URI base.
the node's URI base to use to resolve relative URI references. |
getXMLSpace | public int getXMLSpace()(Code) | | Defines how the node handles white spaces. Note that
if the value is set to null, the node should return
the value of its parent, as the xml:space attribute is
inherited.
one of XML_SPACE_DEFAULT, XML_SPACE_PRESERVE |
illegalTraitValue | DOMException illegalTraitValue(String name, String value)(Code) | | Parameters: name - the name of the trait Parameters: value - the illegal value. a DOMException describing an illegal trait value |
illegalTraitValue | protected DOMException illegalTraitValue(String name, String namespaceURI, String value)(Code) | | Parameters: name - the name of the trait Parameters: namespaceURI - the trait's namespace URI. Parameters: value - the illegal value. a DOMException describing an illegal trait value |
intern | public static String intern(String str)(Code) | | Utility method.
Parameters: str - the String object to intern. null if the input string is null. The interned string otherwise. |
modifiedNode | protected void modifiedNode()(Code) | | Used to notify the UpdateListener , if any, of
a completed node modification
|
modifyingNode | protected void modifyingNode()(Code) | | Used to notify the UpdateListener , if any, of
an upcoming node modification
|
newInstance | abstract public ElementNode newInstance(DocumentNode doc)(Code) | | Used by DocumentNode to create a new instance from
a prototype ElementNode .
Parameters: doc - the DocumentNode for which a new node isshould be created. a new ElementNode for the requested document. |
nodeHookedInDocumentTree | void nodeHookedInDocumentTree()(Code) | | When an Element is hooked into the document tree, it needs
to register as an identified node if it does have an id.
|
notAnimatable | DOMException notAnimatable(String traitNamespace, String traitName)(Code) | | Parameters: name - the name of the trait Parameters: value - the illegal value. a DOMException describing an illegal trait value |
parseClockTrait | final protected Time parseClockTrait(String traitName, String value) throws DOMException(Code) | | Parses the input value and converts it to a Time value.
Parameters: traitName - the name of the clock trait being parsed. Parameters: value - the value to convert to a Time instance. the value converted to a Time object. throws: DOMException - if the input value is invalid. |
parseColorTrait | final protected RGB parseColorTrait(String traitName, String value) throws DOMException(Code) | | Parses the input value and converts it to an RGB value
Parameters: traitName - the name of the color trait being parsed. Parameters: value - the value to convert to an RGB the value converted to a RGB object throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid color trait value. |
parseFloatArrayTrait | final public float[] parseFloatArrayTrait(String traitName, String value) throws DOMException(Code) | | Utility method. This should be used for XML attribute values converted
to float arrays.
Parameters: traitName - the name of the trait to parse Parameters: ctx - the build context the attribute value, converted to float throws: DOMException - if the value represents an invalid floating point array value. |
parseFloatArrayTrait | final public float[] parseFloatArrayTrait(String traitName, String value, char sep) throws DOMException(Code) | | Utility method. This should be used for XML attribute values converted
to float arrays.
Parameters: traitName - the name of the trait to parse Parameters: value - the value to parse Parameters: sep - the number separator in the input value list of numbers. the attribute value, converted to float throws: DOMException - if the value represents an invalid floating point array value. |
parseFloatTrait | final protected float parseFloatTrait(String name, String value) throws DOMException(Code) | | Parses the input value and converts it to a float value.
Parameters: name - the name of the trait to convert to a float. Parameters: value - the value to convert to a float. the value converted to a float value. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid float value or null. |
parseFontFamilyTrait | public String[] parseFontFamilyTrait(String name, String value)(Code) | | Parses the input value assuming it has the folloing syntax:
Value: [ | ] [, [ |
]]*
Parameters: name - the name of the trait being parsed. Parameters: value - the font family value to be parsed. Should not be null. an array of font-family strings |
parseFontStylesTrait | final public int parseFontStylesTrait(String name, String value)(Code) | | CSS 2 Specification (section 15.3.2) and SVG 1.1 specification
(20.8.3):
all | [ normal | italic | oblique ] [, [normal | italic | oblique] ]*
Parameters: name - the name of the trait to parse Parameters: value - the trait value the font style in the FontFace.FONT_STYLE_XXX value set. throws: DOMException - if the value is not a legal one for this trait. |
parseFontWeightsTrait | final protected int parseFontWeightsTrait(String name, String value)(Code) | | CSS 2 specification ((section 15.3.2) and SVG 1.1 specification
(20.8.3):
all | [normal | bold |100 | 200 | 300 | 400 | 500 | 600 |
700 | 800 | 900] [, [normal | bold |100 | 200 | 300 |
400 | 500 | 600 | 700 | 800 | 900]]*
Parameters: name - the name of the trait to parse Parameters: value - the trait value. the font weight as an int value in the FontFace.FONT_WEIGHT_XXX set. throws: DOMException - if the value is not a legal one for this trait. |
parseLengthTrait | final protected float parseLengthTrait(String name, String value, boolean isHorizontal) throws DOMException(Code) | | Parses the input value and converts it to a float.
Parameters: name - the trait name. Parameters: value - the value to convert to a float. Parameters: isHorizontal - controls whether this is a horizontal length or not. the value converted to a float. throws: DOMException - if the trait value is invalid. |
parseMinMaxClock | final protected Time parseMinMaxClock(String traitName, String value, boolean isMin) throws DOMException(Code) | | Parses the input value and converts it to a Time value. If there
is a syntax error or if the value is invalid for the given usage
(has to be [0, infinite[ for min, and ]0, infinite[ for max,
then the default is used. For min, the default is 0. For max, the
default is 'indefinite'
Parameters: traitName - the name of the clock trait being parsed. Parameters: value - the value to convert to a Time instance. Parameters: isMin - should the value converted to a Time object. throws: DOMException - if the input value is invalid. |
parsePaintTrait | final protected PaintServer parsePaintTrait(String traitName, PaintTarget paintTarget, String value) throws DOMException(Code) | | Parses the input value and converts it to a Paint value
Parameters: traitName - the name of the color trait being parsed. Parameters: paintTarget - the PaintTarget requesting the PaintServer. Parameters: value - the value to convert to a Paint the value converted to a Paint object throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid color trait value. |
parsePathTrait | final protected Path parsePathTrait(String name, String value) throws DOMException(Code) | | Parses the input value and converts it to a Path value.
Parameters: name - the trait name. Parameters: value - the value to convert. throws: DOMException - if the input value is invalid. |
parsePointsTrait | final protected Path parsePointsTrait(String name, String value) throws DOMException(Code) | | Parses the input points value and converts it to a Path value.
Parameters: name - the trait name. Parameters: value - the value to convert. throws: DOMException - if the input value is invalid. |
parsePositiveFloatArrayTrait | final protected float[] parsePositiveFloatArrayTrait(String name, String value) throws DOMException(Code) | | Parses the input value and converts it to a float array value.
Parameters: name - the name of the trait to convert to a float array. Parameters: value - the value to convert to a float. the value converted to a float array value. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid float value or null. |
parsePositiveFloatTrait | final protected float parsePositiveFloatTrait(String name, String value) throws DOMException(Code) | | Parses the input value and converts it to a positive float value.
Parameters: name - the trait name. Parameters: value - the value to convert to a float. the value converted to a float value. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid positive float value or null. |
parsePositiveLengthTrait | final protected float parsePositiveLengthTrait(String name, String value, boolean isHorizontal) throws DOMException(Code) | | Parses the input value and converts it to a float.
Parameters: name - the trait name. Parameters: value - the value to convert to a float. Parameters: isHorizontal - controls whether this is a horizontal length or not. the value converted to a float. throws: DOMException - if the trait value is invalid. |
parseStringArrayTrait | final protected String[] parseStringArrayTrait(String name, String value, String seperators) throws DOMException(Code) | | Parses the input value and converts it to a String array.
Parameters: value - the value to convert to a String array Parameters: name - the name of the trait being converted. Parameters: seperators - the string of characters which are seperators between array values. |
parseTransformTrait | final protected Transform parseTransformTrait(String name, String value) throws DOMException(Code) | | Parses the input value and converts it to an Transform value.
Parameters: name - the trait's name. Parameters: value - the value to convert to a transform. the value converted to an Transform object. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid transform trait value. |
parseUnicodeRangeTrait | final protected int[][] parseUnicodeRangeTrait(String name, String value) throws DOMException(Code) | | Parses the input value, assuming a unicode range syntax, as for the
<hkern> element's u1 and u2 attributes.
Parameters: name - the trait name. Parameters: value - the trait value. an array of unicode range pairs, as integer pairs. throws: DOMException - if the input trait value is invalid. |
preValidate | protected void preValidate()(Code) | | Invoked before an element is added to the document tree, to let the
element perform any validation it needs. For example, the use element
overrides this method to check that its reference is resolved.
Note that the validate() method defined in some element implementations
is meant to perform validation after the nodes has been inserted into the
document tree.
|
proxyNodeHitAt | ModelNode proxyNodeHitAt(float[] pt, ElementNodeProxy proxy)(Code) | | Returns the ModelNode , if any, hit by the
point at coordinate x/y in the proxy tree starting at
proxy.
Parameters: pt - the x/y coordinate. Should never be null and beof size two. If not, the behavior is unspecified.The coordinates are in viewport space. Parameters: proxy - the root of the proxy tree to test. the ModelNode hit at the given point or nullif none was hit. |
readOnlyTraitError | protected DOMException readOnlyTraitError(String name)(Code) | | Parameters: name - the trait name. DOMException describing the write error on a read-only attribute. |
recomputeProxyTransformState | protected void recomputeProxyTransformState()(Code) | | Recomputes the transform cache on proxy nodes.
|
removeProxy | void removeProxy(ElementNodeProxy proxy)(Code) | | Removes a proxy from this node. If the input proxy is null,
or is not an existing proxy, this does nothing.
Parameters: proxy - the ElementNodeProxy to remove. See Also: ElementNode.addProxy |
setAttribute | final public void setAttribute(String name, String value) throws DOMException(Code) | | Adds a new attribute.
Parameters: name - - the name of the attribute to add. Parameters: value - - the value to set. throws: DOMException - INVALID_CHARACTER_ERR: Raised if the specified namecontains an illegal character. NO_MODIFICATION_ALLOWED_ERR: Raised ifthis node is readonly. |
setAttributeNS | final public void setAttributeNS(String namespaceURI, String name, String value) throws DOMException(Code) | | Adds a new attribute.
Parameters: namespaceURI - - the namespace URI of the attribute to create or alter. Parameters: name - - the local name of the attribute to create or alter. Parameters: value - - the value to set in string form. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. throws: DOMException - with error code NO_MODIFICATION_ALLOWED_ERR: ifattempt is made to change readonly trait. |
setConditionalAttribute | void setConditionalAttribute(int index, String[] newValue)(Code) | | Sets the new value for the given conditional attribute.
Parameters: index - the conditional attribute index. Parameters: value - the new conditional attribute value. |
setFloatArrayTrait | void setFloatArrayTrait(String name, float[][] value) throws DOMException(Code) | | Set the trait value as float.
Parameters: name - the trait's name. Parameters: value - the trait's value. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as a float throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait. |
setFloatTrait | final public void setFloatTrait(String name, float value) throws DOMException(Code) | | Set the trait value as float.
Parameters: name - the trait's name. Parameters: value - the trait's value. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as a float throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait. |
setFloatTraitImpl | void setFloatTraitImpl(String name, float value)(Code) | | Set the trait value as a float.
Parameters: name - the trait's name. Parameters: value - the trait's value. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as a float throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait. |
setId | public void setId(String newId)(Code) | | Parameters: newId - the node's identifier throws: DOMException - - with error code NO_MODIFICATION_ALLOWED_ERR israised if an attempt is made to change an existing Id. throws: DOMException - - with error code INVALID_ACCESS_ERR is raised ifthe Id is not unique i.e. if this Id already exists in the document. throws: java.lang.NullPointerException - - if Id is null. |
setMatrixTrait | final public void setMatrixTrait(String name, SVGMatrix matrix) throws DOMException(Code) | | Set the trait value as
org.w3c.dom.svg.SVGMatrix SVGMatrix .
Values in SVGMarix are copied in the trait so subsequent changes to the
givenSVGMatrix have no effect on the value of the trait.
Parameters: name - name of trait to set Parameters: matrix - SVGMatrix value of trait throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as an org.w3c.dom.svg.SVGMatrixSVGMatrix throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. throws: DOMException - with error code NO_MODIFICATION_ALLOWED_ERR: ifattempt is made to change readonly trait. |
setMatrixTraitImpl | void setMatrixTraitImpl(String name, Transform matrix) throws DOMException(Code) | | Set the trait value as
org.w3c.dom.svg.SVGMatrix SVGMatrix .
Values in SVGMarix are copied in the trait so subsequent changes to the
givenSVGMatrix have no effect on the value of the trait.
Parameters: name - name of trait to set Parameters: matrix - Transform value of trait throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as an org.w3c.dom.svg.SVGMatrixSVGMatrix throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. throws: DOMException - with error code NO_MODIFICATION_ALLOWED_ERR: ifattempt is made to change readonly trait. |
setPathTrait | final public void setPathTrait(String name, SVGPath path) throws DOMException(Code) | | Set the trait value as
org.w3c.dom.svg.SVGPath SVGPath . Values in
SVGPath are copied in the trait so subsequent changes to the given
SVGPath have no effect on the value of the trait.
Parameters: name - the trait name. Parameters: path - the trait value, as an SVGPath object. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as an org.w3c.dom.svg.SVGPathSVGPath throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. SVGPath isinvalid if it does not begin with a MOVE_TO segment. |
setPathTraitImpl | void setPathTraitImpl(String name, SVGPath path) throws DOMException(Code) | | Set the trait value as
org.w3c.dom.svg.SVGPath SVGPath . Values in
SVGPath are copied in the trait so subsequent changes to the given
SVGPath have no effect on the value of the trait.
Parameters: name - the trait name. Parameters: path - the trait value, as an SVGPath object. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as an org.w3c.dom.svg.SVGPathSVGPath throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. SVGPath isinvalid if it does not begin with a MOVE_TO segment. |
setPreferedPaintNeedsLoad | public void setPreferedPaintNeedsLoad(boolean paintNeedsLoad)(Code) | | Parameters: paintNeedsLoad - if true, the node can only be painted after itschildren have been loaded. This can be used by a rendererimplementing progressive rendering of an SVG document. |
setRectTrait | final public void setRectTrait(String name, SVGRect rect) throws DOMException(Code) | | Set the trait value as
org.w3c.dom.svg.SVGRect SVGRect . Values in
SVGRect are copied in the trait so subsequent changes to the given
SVGRect have no effect on the value of the trait.
Parameters: name - the trait name. Parameters: rect - the trait value, as an SVGRect object. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as an org.w3c.dom.svg.SVGRectSVGRect throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. SVGRect isinvalid if the width or height values are set to negative. |
setRectTraitImpl | public void setRectTraitImpl(String name, SVGRect rect) throws DOMException(Code) | | Set the trait value as
org.w3c.dom.svg.SVGRect SVGRect . Values in
SVGRect are copied in the trait so subsequent changes to the given
SVGRect have no effect on the value of the trait.
Parameters: name - the trait name. Parameters: rect - the trait value, as an SVGRect object. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as an org.w3c.dom.svg.SVGRectSVGRect throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. SVGRect isinvalid if the width or height values are set to negative. |
setRequiredExtensions | public void setRequiredExtensions(String[] newRequiredExtensions)(Code) | | The node will only render if the requiredExtensions string
evaluates to true. A null value evaluates to true.
Parameters: newRequiredExtensions - the extensions which will be considereda match for any document required extension. See Also: ElementNode.getRequiredExtensions |
setRequiredFeatures | public void setRequiredFeatures(String[] newRequiredFeatures)(Code) | | The node will only render if the requiredFeatures string
evaluates to true. A null value will evaluate to true.
Parameters: newRequiredFeatures - the set of features required for renderingthis node. |
setSystemLanguage | public void setSystemLanguage(String[] newSystemLanguage)(Code) | | The node will only render if the Perseus user language matches
one of the values in this comma separated list. A null value is
a match.
Parameters: newSystemLanguage - an array of languages which will be matchedagainst any document system language value |
setTrait | final public void setTrait(String name, String value) throws DOMException(Code) | | The traits supported by default are: externalResourcesRequired,
xml:base, xml:space, requiredFeatures, requiredExtensions and
systemLanguage.
Parameters: name - the trait's name. Parameters: value - the trait's value. throws: DOMException - with error code NOT_SUPPORTED_ERR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as a String throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. throws: DOMException - with error code NO_MODIFICATION_ALLOWED_ERR: ifattempt is made to change readonly trait. |
setTraitImpl | public void setTraitImpl(String name, String value) throws DOMException(Code) | | The traits supported by default are: externalResourcesRequired,
xml:base, xml:space, requiredFeatures, requiredExtensions and
systemLanguage.
Parameters: name - the trait's name. Parameters: value - the trait's value. throws: DOMException - with error code NOT_SUPPORTED_ERR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as a String throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. throws: DOMException - with error code NO_MODIFICATION_ALLOWED_ERR: ifattempt is made to change readonly trait. |
setTraitNSImpl | public void setTraitNSImpl(String namespaceURI, String name, String value) throws DOMException(Code) | | Same as
org.w3c.dom.svg.SVGElement.setTrait setTrait , but for
namespaced traits. Parameter name must be a non-qualified trait name,
i.e. without prefix.
Parameters: namespaceURI - the trait's namespace. Parameters: name - the trait's local name (un-prefixed). Parameters: value - the trait's value. throws: DOMException - with error code NOT_SUPPORTED_ERROR if the requestedtrait is not supported on this element or null. throws: DOMException - with error code TYPE_MISMATCH_ERR if the requestedtrait's value cannot be specified as a String throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. throws: DOMException - with error code NO_MODIFICATION_ALLOWED_ERR: ifattempt is made to change readonly trait. |
setURIBase | public void setURIBase(String newUriBase)(Code) | | Parameters: newUriBase - the node's new URI base. The uriBase is usedto resolve relative URIs |
setXMLSpace | public void setXMLSpace(int newXmlSpace)(Code) | | Controls how the node handles white spaces
Parameters: newXmlSpace - should be one of XML_SPACE_DEFAULT, XML_SPACE_PRESERVE, or XML_SPACE_INHERIT. Otherwise, an IllegalArgumentException is thrown. |
supportsTrait | boolean supportsTrait(String traitName)(Code) | | Parameters: traitName - the name of the trait which the element may support. true if this element supports the given trait in one of thetrait accessor methods (such as getTrait or setFloatTrait . |
supportsTraitNS | boolean supportsTraitNS(String namespaceURI, String traitName)(Code) | | Parameters: namespaceURI - the trait's namespace URI. Parameters: traitName - the name of the trait which the element may support. true if this element supports the given trait in one of thetrait accessor methods. |
toAnimatedFloatArray | float[][] toAnimatedFloatArray(float v)(Code) | | Converts the input float value to an animated float array trait.
Parameters: v - the float value to wrap in a float[][] array. the wrapped value. |
toAnimatedFloatArray | float[][] toAnimatedFloatArray(float[] a)(Code) | | Converts the input float[] array to an animated float array trait.
Parameters: a - the float array to wrap in a float[][] array. Should notbe null. the wrapped value. |
toAnimatedFloatArray | float[][] toAnimatedFloatArray(Path path)(Code) | | Utility method to convert a Path to an animatable float array.
Parameters: p - the path to convert the converted value. |
toRGB | protected RGB toRGB(String name, float[][] v) throws DOMException(Code) | | Converts an animated float[][] value into an AWT color value.
Parameters: name - the trait's name. Parameters: value - the float[][] to convert. the color converted to an AWT Color object. |
toRGBString | protected String toRGBString(String name, float[][] v) throws DOMException(Code) | | Converts an animated float[][] value into an String rgb value.
Parameters: name - the trait's name. Parameters: value - the float[][] to convert. the color converted to a string. |
toSVGMatrixTrait | protected SVGMatrix toSVGMatrixTrait(Transform transform)(Code) | | Helper method. Converts the input Transform
to an SVGMatrix trait value.
Parameters: transform - the transform to convert. the SVGMatrix equivalent value. |
toSVGRGBColor | protected SVGRGBColor toSVGRGBColor(String traitName, PaintServer paint)(Code) | | Converts an J2D RGB to an SVG DOM RGBColor
Parameters: traitName - the name of the trait whose value is convereted. Parameters: paint - the PaintServer to convert. Should not be null. the color, converted to an SVGRGBColor instance. throws: DOMException - with error code TYPE_MISMATCH_ERR if the paint is not an instance of Colorl |
toSVGRect | protected SVGRect toSVGRect(float[][] viewBox)(Code) | | Converts a viewBox array to an SVGRect value.
Parameters: name - the name of the trait. Parameters: viewBox - the viewbox value to convet. |
toString | String toString(PaintServer paintServer)(Code) | | Conversts the input PaintServer value to a String trait value.
Parameters: value - the PaintServer value to convert. |
toString | public String toString()(Code) | | a text description of this node including the nodeID if one was set. |
toStringTrait | String toStringTrait(String traitName, float[][] value)(Code) | | Converts the input float array value to a String value.
Parameters: traitName - the name of the trait to convert. Parameters: value - the float trait value to convert. |
toStringTrait | protected String toStringTrait(String[] array)(Code) | | Converts a Java String array to a trait string array with the format:
"str1, str2, .., strN"
Parameters: array - the string array to be converted. a string with the value "" if the array is null or "float1,float2,..,floatN" |
toStringTrait | protected String toStringTrait(String[] array, String sep)(Code) | | Converts a Java String array to a trait string array with the format:
"str1, str2, .., strN"
Parameters: array - the string array to be converted. Parameters: sep - seperator to use in the output string array. a string with the value "" if the array is null or "float1,float2,..,floatN" |
toStringTrait | protected String toStringTrait(float[] array)(Code) | | Helper method. Converts the input array value to a string trait value.
Parameters: array - the float array to be converted. a string with the value "none" if the array is null or "float1,float2,..,floatN" |
toStringTrait | protected String toStringTrait(float[] array, char sep)(Code) | | Helper method. Converts the input array value to a string trait value.
Parameters: array - the float array to be converted. a string with the value "none" if the array is null or "float1,float2,..,floatN" |
toStringTrait | protected String toStringTrait(float[][] array)(Code) | | Helper method. Convertst the input array of float arrays into a
string trait value.
Parameters: array - the array of float arrays to convert. a string the the value "" if the array is null or "f01 f02 f03 f04; f11 f12 f13 f14; ...;fn1 fn2 fn3 fn4" throws: NullPointerException - if one of the array values is null throws: ArrayIndexOutOfBoundsException - if one of the array values is oflength 0. |
toStringTrait | protected static String toStringTrait(Transform transform)(Code) | | Helper method. Converts the input Transform
to a string trait value.
Parameters: transform - the transform to convert. the string trait value. |
toStringTraitQuote | protected String toStringTraitQuote(String[] array)(Code) | | Converts a Java String array to a trait string array with the format:
"str1, str2, .., strN". In addition, the string values are put inside
single quotes if there are spaces in the string values. This is needed
for values such as the CSS 2 font-family attribute.
Parameters: array - the string array to be converted. a string with the value "" if the array is null or "float1,float2,..,floatN" |
toTraitFloatArray | float[] toTraitFloatArray(float[][] value)(Code) | | Converts an animated float array to a trait float array value.
This is used for multi-component trait values, such as
stroke-dasharray, or the text's x, y or rotate values.
Parameters: value - the animated value to convert. an float array trait value. |
toViewBox | protected float[][] toViewBox(String name, String value) throws DOMException(Code) | | Converts an comma seperated list of floats to a viewBox array
Parameters: name - the trait name Parameters: value - the trait value to be converted to an SVGRect. The expected syntax is "float comma-wsp float comma-wsp float comma-wsp float comma-wsp" an array of four floats. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is an invalid value for the given trait or null. |
unhookChildrenQuiet | protected void unhookChildrenQuiet()(Code) | | Utility method. Unhooks the children.
|
unhookExpandedQuiet | protected void unhookExpandedQuiet()(Code) | | Utility method. Unhooks the expanded content.
|
unicodeRangeToStringTrait | protected String unicodeRangeToStringTrait(int[][] u)(Code) | | Helper method. Converts the input unicode range into a String
trait, with the following syntax:
"U+b1-e1,U+b2-e2,...,U+bn-en"
Parameters: u - the unicode range to convert. the string value with the unicode range syntax. |
unsupportedTrait | protected DOMException unsupportedTrait(String name)(Code) | | Parameters: name - the trait name a DOMException describing the unsupported trait error. |
unsupportedTraitNS | protected DOMException unsupportedTraitNS(String name, String namespaceURI)(Code) | | Parameters: name - the trait name Parameters: namespaceURI - the trait's namespace URI. a DOMException describing the unsupported trait error. |
unsupportedTraitType | protected DOMException unsupportedTraitType(String name, String type)(Code) | | Parameters: name - the trait name. a DOMException describing the type mismatch error. |
unsupportedTraitTypeNS | protected DOMException unsupportedTraitTypeNS(String name, String namespaceURI, String type)(Code) | | Parameters: name - the trait name. a DOMException describing the type mismatch error. |
validateFloatArrayTrait | float[][] validateFloatArrayTrait(String traitName, String value, String reqNamespaceURI, String reqLocalName, String reqTraitNamespace, String reqTraitName) throws DOMException(Code) | | Validates the input trait value.
Parameters: traitName - the name of the trait to be validated. Parameters: value - the value to be validated Parameters: reqNamespaceURI - the namespace of the element requesting validation. Parameters: reqLocalName - the local name of the element requesting validation. Parameters: reqTraitNamespace - the namespace of the trait which has the valuesvalue on the requesting element. Parameters: reqTraitName - the name of the trait which has the values value on the requesting element. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is incompatible with the given trait. |
validateTraitNS | String validateTraitNS(String namespaceURI, String traitName, String value, String reqNamespaceURI, String reqLocalName, String reqTraitNamespace, String reqTraitName) throws DOMException(Code) | | Validates the input trait value.
Parameters: namespaceURI - the trait's namespace URI. Parameters: traitName - the name of the trait to be validated. Parameters: value - the value to be validated Parameters: reqNamespaceURI - the namespace of the element requesting validation. Parameters: reqLocalName - the local name of the element requesting validation. Parameters: reqTraitNamespace - the namespace of the trait which has the valuesvalue on the requesting element. Parameters: reqTraitName - the name of the trait which has the values value on the requesting element. throws: DOMException - with error code INVALID_ACCESS_ERR if the inputvalue is incompatible with the given trait. the computed trait value. |
Methods inherited from com.sun.perseus.model.ModelNode | Box addBBox(Box bbox, Transform t)(Code)(Java Doc) static Box addBBox(Box bbox, float x, float y, float width, float height)(Code)(Java Doc) public void addEventListener(String type, EventListener listener, boolean useCapture) throws DOMException(Code)(Java Doc) Box addNodeBBox(Box bbox, Transform t)(Code)(Java Doc) static Box addShapeBBox(Box bbox, Path path, Transform t)(Code)(Java Doc) static Box addTransformedBBox(Box bbox, float x, float y, float width, float height, Transform m)(Code)(Java Doc) protected Transform appendTransform(Transform tx, Transform workTx)(Code)(Java Doc) protected void clearLastRenderedTile()(Code)(Java Doc) abstract protected void clearLayouts()(Code)(Java Doc) void clearLayouts(ModelNode node)(Code)(Java Doc) final void computeCanRenderDisplayBit(boolean display)(Code)(Java Doc) final void computeCanRenderEmptyPathBit(Path path)(Code)(Java Doc) final void computeCanRenderEmptyViewBoxBit(float[][] viewBox)(Code)(Java Doc) final void computeCanRenderFontSizeBit(float fontSize)(Code)(Java Doc) final void computeCanRenderHeightBit(float height)(Code)(Java Doc) final void computeCanRenderRequiredExtensionsBit(String[] requiredExtensions)(Code)(Java Doc) final void computeCanRenderRequiredFeaturesBit(String[] requiredFeatures)(Code)(Java Doc) final void computeCanRenderSystemLanguageBit(String[] systemLanguage)(Code)(Java Doc) final void computeCanRenderTransformBit(Transform transform)(Code)(Java Doc) final void computeCanRenderWidthBit(float width)(Code)(Java Doc) protected void computeRenderingTile(Tile tile)(Code)(Java Doc) protected boolean contributeBBox()(Code)(Java Doc) public void dispatchEvent(ModelEvent evt)(Code)(Java Doc) abstract public ModelNode getFirstChildNode()(Code)(Java Doc) abstract ModelNode getFirstComputedExpandedChild()(Code)(Java Doc) abstract ModelNode getFirstExpandedChild()(Code)(Java Doc) protected float getFloatPropertyState(int propertyIndex)(Code)(Java Doc) final protected float getInheritedFloatPropertyState(int propertyIndex)(Code)(Java Doc) final protected int getInheritedPackedPropertyState(int propertyIndex)(Code)(Java Doc) final protected Object getInheritedPropertyState(int propertyIndex)(Code)(Java Doc) Transform getInverseTransformState()(Code)(Java Doc) abstract public ModelNode getLastChildNode()(Code)(Java Doc) abstract ModelNode getLastExpandedChild()(Code)(Java Doc) protected Tile getLastRenderedTile()(Code)(Java Doc) public ModelNode getNextSiblingNode()(Code)(Java Doc) public DocumentNode getOwnerDocument()(Code)(Java Doc) protected int getPackedPropertyState(int propertyIndex)(Code)(Java Doc) boolean getPaintNeedsLoad()(Code)(Java Doc) public ModelNode getParent()(Code)(Java Doc) public ModelNode getPreviousSiblingNode()(Code)(Java Doc) protected Object getPropertyState(int propertyIndex)(Code)(Java Doc) protected Tile getRenderingTile()(Code)(Java Doc) public SVGMatrix getScreenCTM()(Code)(Java Doc) public Transform getTransformState()(Code)(Java Doc) protected String getURIBase()(Code)(Java Doc) protected UpdateListener getUpdateListener()(Code)(Java Doc) public boolean hasDescendants()(Code)(Java Doc) protected boolean hasNodeRendering()(Code)(Java Doc) boolean inDocumentTree()(Code)(Java Doc) protected boolean isFloatPropertyState(int propertyIndex, float propertyValue)(Code)(Java Doc) protected boolean isInDocumentTree()(Code)(Java Doc) final public boolean isLoaded()(Code)(Java Doc) protected boolean isPackedPropertyState(int propertyIndex, int propertyValue)(Code)(Java Doc) protected boolean isPropertyState(int propertyIndex, Object propertyValue)(Code)(Java Doc) protected void modifiedNode()(Code)(Java Doc) protected void modifyingNode()(Code)(Java Doc) protected void modifyingNodeRendering()(Code)(Java Doc) public ModelNode nodeHitAt(float[] pt)(Code)(Java Doc) final protected ModelNode nodeHitAt(ModelNode node, float[] pt)(Code)(Java Doc) protected static void nodeInserted(ModelNode node)(Code)(Java Doc) protected void nodeRendered()(Code)(Java Doc) void onHookedInDocumentTree()(Code)(Java Doc) void onUnhookedFromDocumentTree()(Code)(Java Doc) static void paint(ModelNode node, RenderGraphics rg)(Code)(Java Doc) public void paint(RenderGraphics rg)(Code)(Java Doc) protected void propagateCanRenderState(int oldCanRenderState, int newCanRenderState)(Code)(Java Doc) protected void propagateFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code)(Java Doc) protected void propagatePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code)(Java Doc) protected void propagatePropertyState(int propertyIndex, Object parentPropertyValue)(Code)(Java Doc) protected void recomputeFloatPropertyState(int propertyIndex, float parentPropertyValue)(Code)(Java Doc) void recomputeInheritedProperties()(Code)(Java Doc) protected void recomputePackedPropertyState(int propertyIndex, int parentPropertyValue)(Code)(Java Doc) protected void recomputePropertyState(int propertyIndex, Object parentPropertyValue)(Code)(Java Doc) protected void recomputeTransformState()(Code)(Java Doc) protected void recomputeTransformState(Transform parentTransform)(Code)(Java Doc) void recomputeTransformState(Transform parentTransform, ModelNode node)(Code)(Java Doc) final protected Transform recycleTransform(Transform tx, Transform workTx)(Code)(Java Doc) public void removeEventListener(String type, EventListener listener, boolean useCapture) throws DOMException(Code)(Java Doc) protected void setFloatPropertyState(int propertyIndex, float propertyValue)(Code)(Java Doc) public void setLoaded(boolean isLoaded)(Code)(Java Doc) protected void setPackedPropertyState(int propertyIndex, int propertyValue)(Code)(Java Doc) protected void setParent(ModelNode newParent)(Code)(Java Doc) protected void setParentQuiet(ModelNode newParent)(Code)(Java Doc) protected void setPropertyState(int propertyIndex, Object propertyValue)(Code)(Java Doc) abstract protected void unhookChildrenQuiet()(Code)(Java Doc) abstract protected void unhookExpandedQuiet()(Code)(Java Doc) final protected void unhookQuiet(ModelNode node)(Code)(Java Doc)
|
|
|