| java.lang.Object com.sun.perseus.model.ModelNode com.sun.perseus.model.CompositeNode
All known Subclasses: com.sun.perseus.model.ElementNode, com.sun.perseus.model.Viewport,
CompositeNode | abstract public class CompositeNode extends ModelNode (Code) | | CompositeNode models ModelNodes ElementNode ElementNodes .
A CompositeNode can have either ModelNode
children and text content children (see the
CompositeNode.appendTextChild appendTextChild method).
version: $Id: CompositeNode.java,v 1.9 2006/06/29 10:47:30 ln156897 Exp $ |
Method Summary | |
public void | add(ElementNode element) | public Node | appendChild(Node newChild) | protected void | clearLayouts() Clears the text layouts, if any exist. | public ModelNode | getFirstChildNode() | public ModelNode | getLastChildNode() | abstract public String | getLocalName() unprefixed node name. | abstract public String | getNamespaceURI() | abstract public Node | getParentNode() Returns the parent Node of this Node .
the parent node or null if there is no parent (i.e. | public Node | insertBefore(Node newChild, Node refChild) | protected boolean | isAllowedChild(ElementNode node) Implementation helper. | final boolean | isAncestor(ElementNode node) Implementation helper.
Parameters: node - the node which may be an ancestor of this CompositeNode. | final boolean | isChild(Node node) Implementation helper.
Parameters: node - the node which may be a child of this composite node. | protected static boolean | isIdBranch(ElementNode node) Parameters: node - the root of the branch to check for ids. | protected boolean | isRemoveChildSupported() true if this node supports removing children. | void | nodeHookedInDocumentTree() To be overriddent by derived classes, such as TimedElementNode,
if they need to do special operations when hooked into the
document tree. | void | nodeUnhookedFromDocumentTree() To be overriddent by derived classes, such as TimedElementNode,
if they need to do special operations when unhooked from the
document tree. | final void | onHookedInDocumentTree() When a CompositeNode is hooked into the document tree, by default,
it notifies its children and calls its own nodeHookedInDocumentTree
method. | final void | onUnhookedFromDocumentTree() When a CompositeNode is hooked into the document tree, by default,
it notifies its children and calls its own nodeUnhookedFromDocumentTree
method. | public Node | removeChild(Node oldChild) | protected void | unhookChildrenQuiet() Utility method. |
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. |
clearLayouts | protected void clearLayouts()(Code) | | Clears the text layouts, if any exist. This is typically
called when the font selection has changed and nodes such
as Text should recompute their layouts.
This should recursively call clearLayouts on children
node or expanded content, if any.
|
getFirstChildNode | public ModelNode getFirstChildNode()(Code) | | this node's first child. |
getLastChildNode | public ModelNode getLastChildNode()(Code) | | this node's last child. |
getLocalName | abstract public String getLocalName()(Code) | | unprefixed node name. For an SVGElement, this returns the tagname without a prefix. In case of the Document node, string#document is returned. throws: SecurityException - if the application does not have the necessaryprivilege rights to access this (SVG) content. |
getNamespaceURI | abstract public String getNamespaceURI()(Code) | | the namespace URI of the Node. throws: SecurityException - if the application does not have the necessaryprivilege rights to access this (SVG) content. |
getParentNode | abstract 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. |
isAllowedChild | protected boolean isAllowedChild(ElementNode node)(Code) | | Implementation helper. By default, we only disallow SVG nodes under
all nodes except DocumentNode.
Parameters: node - the candidate child node. true if the input node can be inserted under this CompositeNode |
isAncestor | final boolean isAncestor(ElementNode node)(Code) | | Implementation helper.
Parameters: node - the node which may be an ancestor of this CompositeNode. true if the input node is this node or if it is one of its ancestors. |
isChild | final boolean isChild(Node node)(Code) | | Implementation helper.
Parameters: node - the node which may be a child of this composite node. true if the input node is one of this composite's children. |
isIdBranch | protected static boolean isIdBranch(ElementNode node)(Code) | | Parameters: node - the root of the branch to check for ids. Should not be null. true if the input node, or any of its descendant, has an id. |
isRemoveChildSupported | protected boolean isRemoveChildSupported()(Code) | | true if this node supports removing children. By default, thisreturns true. |
nodeHookedInDocumentTree | void nodeHookedInDocumentTree()(Code) | | To be overriddent by derived classes, such as TimedElementNode,
if they need to do special operations when hooked into the
document tree.
|
nodeUnhookedFromDocumentTree | void nodeUnhookedFromDocumentTree()(Code) | | To be overriddent by derived classes, such as TimedElementNode,
if they need to do special operations when unhooked from the
document tree.
|
onHookedInDocumentTree | final void onHookedInDocumentTree()(Code) | | When a CompositeNode is hooked into the document tree, by default,
it notifies its children and calls its own nodeHookedInDocumentTree
method.
|
onUnhookedFromDocumentTree | final void onUnhookedFromDocumentTree()(Code) | | When a CompositeNode is hooked into the document tree, by default,
it notifies its children and calls its own nodeUnhookedFromDocumentTree
method.
|
unhookChildrenQuiet | protected void unhookChildrenQuiet()(Code) | | Utility method. Unhooks the children.
|
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)
|
|
|