| java.lang.Object com.sun.perseus.model.ModelNode com.sun.perseus.model.ElementNodeProxy
All known Subclasses: com.sun.perseus.model.CompositeGraphicsNodeProxy,
ElementNodeProxy | public class ElementNodeProxy extends ModelNode (Code) | | A ElementNodeProxy delegates its rendering to a
proxied ElementNode object. This class is used to
model expanded content. SVG markup defines content that needs to
be expanded before it is rendered. For example, the <use>
element is expanded with ElementNodeProxy children
to represent the expansion expressed by the element.
version: $Id: ElementNodeProxy.java,v 1.14 2006/06/29 10:47:30 ln156897 Exp $ |
expanded | protected boolean expanded(Code) | | Controls whether content is expanded or not
|
firstExpandedChild | protected ModelNode firstExpandedChild(Code) | | The first expanded child, if content has been expanded.
|
lastExpandedChild | protected ModelNode lastExpandedChild(Code) | | The last expanded child, if content has been expanded
|
ElementNodeProxy | protected ElementNodeProxy(ElementNode proxiedNode)(Code) | | Parameters: proxiedNode - ElementNode to proxy |
appendTransform | protected Transform appendTransform(Transform tx, Transform workTx)(Code) | | Appends the proxied node's transform, if there is a proxied node.
Parameters: tx - the Transform to apply additional node transforms to. This may be null. Parameters: workTx - a Transform which can be re-used if a new Transform needs to be created and workTxis not the same instance as tx. a transform with this node's transform added. |
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.
|
computeProxiesChain | protected ElementNodeProxy computeProxiesChain(ElementNode proxiedChild)(Code) | | Implementation helper: computes the set of chained proxies
for the input node and return the head of the chain.
Parameters: proxiedChild - the ElementNode for which the chain of proxies should be computed. the head of the proxies chaing. NOTE that the prevSiblingis set on the head to point to the last element of the chain,creating a circular list for the 'prevSibling' reference. Thiscircular reference should be broken by the code using this method. |
expand | protected void expand()(Code) | | Expand the content. This is done lazilly
|
getFirstChildNode | public ModelNode getFirstChildNode()(Code) | | a reference to the node's first child, or null if thereare no children. |
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. |
getFirstExpandedChild | public ModelNode getFirstExpandedChild()(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. This forces the computation of expandedcontent if needed. |
getLastChildNode | public ModelNode getLastChildNode()(Code) | | a reference to the node's last child, or null if thereare no children. |
getLastExpandedChild | public ModelNode getLastExpandedChild()(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 last expanded child, or null if thereare no expanded children. This forces the computation of expandedcontent if needed. |
hasDescendants | public boolean hasDescendants()(Code) | | true if the ElementNodeProxy has children or if it hasexpanded content. |
modifiedProxied | public void modifiedProxied()(Code) | | Proxied nodes should call this method when they have been modified.
|
modifyingProxied | public void modifyingProxied()(Code) | | Proxied nodes should call this method when they are being modified.
|
nodeHitAt | public ModelNode nodeHitAt(float[] pt)(Code) | | Returns the ModelNode , if any, hit by the
point at coordinate x/y.
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. the ModelNode hit at the given point or nullif none was hit. |
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.
|
proxiedChildAdded | public void proxiedChildAdded(ElementNode child)(Code) | | Proxied nodes should call this method they got a new added child.
This is an optimization of the more generic insertion
case. Appending a child is a recursive process which avoids
recomputing all the proxies recursively (a proxy referencing a proxy
referencing a proxy .... referencing a composite on which nodes are
appended). It might be advantageous to consider doing a generic
optimized insertion into the children list.
Parameters: child - the ElementNode which was just added underthe proxied node. See Also: ElementNodeProxy.proxiedExpandedChildAdded |
setProxied | protected void setProxied(ElementNode newProxied)(Code) | | Modifies the node proxied by this proxy.
Parameters: newProxied - this node's new proxied node |
unhookChildrenQuiet | protected void unhookChildrenQuiet()(Code) | | Does nothing, as there are no children.
|
unhookExpandedQuiet | protected void unhookExpandedQuiet()(Code) | | Utility method. Unhooks the expanded content.
|
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)
|
|
|