Java Doc for ElementNodeProxy.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.perseus.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $


Field Summary
protected  booleanexpanded
    
protected  ModelNodefirstExpandedChild
     The first expanded child, if content has been expanded.
protected  ModelNodelastExpandedChild
    
protected  ElementNodeProxynextProxy
     The next proxy, if any.
protected  ElementNodeProxyprevProxy
     The previous proxy, if any.
protected  ElementNodeproxied
    

Constructor Summary
protected  ElementNodeProxy(ElementNode proxiedNode)
    

Method Summary
protected  TransformappendTransform(Transform tx, Transform workTx)
     Appends the proxied node's transform, if there is a proxied node.
Parameters:
  tx - the Transform to apply additional node transforms to.
protected  voidclearLayouts()
     Clears the text layouts, if any exist.
protected  ElementNodeProxycomputeProxiesChain(ElementNode proxiedChild)
     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.
protected  voidexpand()
     Expand the content.
public  ModelNodegetFirstChildNode()
    
public  ModelNodegetFirstComputedExpandedChild()
     Some node types (such as ElementNodeProxy) have expanded children that they compute in some specific way depending on the implementation.
public  ModelNodegetFirstExpandedChild()
     Some node types (such as ElementNodeProxy) have expanded children that they compute in some specific way depending on the implementation.
public  ModelNodegetLastChildNode()
    
public  ModelNodegetLastExpandedChild()
     Some node types (such as ElementNodeProxy) have expanded children that they compute in some specific way depending on the implementation.
public  ElementNodegetProxied()
    
public  booleanhasDescendants()
    
public  voidmodifiedProxied()
     Proxied nodes should call this method when they have been modified.
public  voidmodifyingProxied()
     Proxied nodes should call this method when they are being modified.
public  ModelNodenodeHitAt(float[] pt)
     Returns the ModelNode, if any, hit by the point at coordinate x/y.
final  voidonHookedInDocumentTree()
     When a CompositeNode is hooked into the document tree, by default, it notifies its children and calls its own nodeHookedInDocumentTree method.
public  voidproxiedChildAdded(ElementNode child)
     Proxied nodes should call this method they got a new added child. This is an optimization of the more generic insertion case.
protected  voidsetProxied(ElementNode newProxied)
     Modifies the node proxied by this proxy.
protected  voidunhookChildrenQuiet()
     Does nothing, as there are no children.
protected  voidunhookExpandedQuiet()
     Utility method.

Field Detail
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



nextProxy
protected ElementNodeProxy nextProxy(Code)
The next proxy, if any.



prevProxy
protected ElementNodeProxy prevProxy(Code)
The previous proxy, if any.



proxied
protected ElementNode proxied(Code)
The proxied ModelNode




Constructor Detail
ElementNodeProxy
protected ElementNodeProxy(ElementNode proxiedNode)(Code)

Parameters:
  proxiedNode - ElementNode to proxy




Method Detail
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.



getProxied
public ElementNode getProxied()(Code)
a reference to the proxied ModelNode



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.



Fields inherited from com.sun.perseus.model.ModelNode
final public static int CAN_RENDER_CONDITIONS_MET_BITS(Code)(Java Doc)
final public static int CAN_RENDER_CONDITIONS_MET_MASK(Code)(Java Doc)
final public static int CAN_RENDER_DISPLAY_BIT(Code)(Java Doc)
final public static int CAN_RENDER_DISPLAY_MASK(Code)(Java Doc)
final public static int CAN_RENDER_EMPTY_PATH_BIT(Code)(Java Doc)
final public static int CAN_RENDER_EMPTY_PATH_MASK(Code)(Java Doc)
final public static int CAN_RENDER_EMPTY_VIEWBOX_BIT(Code)(Java Doc)
final public static int CAN_RENDER_EMPTY_VIEWBOX_MASK(Code)(Java Doc)
final public static int CAN_RENDER_IN_DOCUMENT_TREE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_IN_DOCUMENT_TREE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_NON_INVERTIBLE_TXF_BIT(Code)(Java Doc)
final public static int CAN_RENDER_NON_INVERTIBLE_TXF_MASK(Code)(Java Doc)
final public static int CAN_RENDER_PARENT_STATE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_PARENT_STATE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_PROXY_BITS_MASK(Code)(Java Doc)
final public static int CAN_RENDER_RENDERABLE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_RENDERABLE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_REQUIRED_EXTENSIONS_BIT(Code)(Java Doc)
final public static int CAN_RENDER_REQUIRED_EXTENSIONS_MASK(Code)(Java Doc)
final public static int CAN_RENDER_REQUIRED_FEATURES_BIT(Code)(Java Doc)
final public static int CAN_RENDER_REQUIRED_FEATURES_MASK(Code)(Java Doc)
final public static int CAN_RENDER_SYSTEM_LANGUAGE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_SYSTEM_LANGUAGE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_FONT_SIZE_BIT(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_FONT_SIZE_MASK(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_HEIGHT_BIT(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_HEIGHT_MASK(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_WIDTH_BIT(Code)(Java Doc)
final public static int CAN_RENDER_ZERO_WIDTH_MASK(Code)(Java Doc)
final protected Transform IDENTITY(Code)(Java Doc)
protected int canRenderState(Code)(Java Doc)
protected boolean loaded(Code)(Java Doc)
protected ModelNode nextSibling(Code)(Java Doc)
protected DocumentNode ownerDocument(Code)(Java Doc)
protected ModelNode parent(Code)(Java Doc)
protected ModelNode prevSibling(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.