Java Doc for Viewport.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.CompositeNode
         com.sun.perseus.model.Viewport

All known Subclasses:   com.sun.perseus.model.DocumentNode,
Viewport
abstract public class Viewport extends CompositeNode implements Transformable(Code)
A Viewport describes a ModelNode into which rendering may happen.

A ViewportNode has a width and height which a child SVG uses to compute the viewbox to viewport transform.

In addition, a Viewport has a user transform limited to its scale and translation components.

The Viewport is the root of any SVG fragment hierarchy.


version:
   $Id: Viewport.java,v 1.9 2006/06/29 10:47:36 ln156897 Exp $


Field Summary
final public static  intDEFAULT_VIEWPORT_HEIGHT
    
final public static  intDEFAULT_VIEWPORT_WIDTH
     Default width for viewports.
final public static  intZOOM_PAN_DISABLE
    
final public static  intZOOM_PAN_MAGNIFY
    
final public static  intZOOM_PAN_UNKNOWN
    
protected  intheight
    
protected  TransforminverseTxf
     The inverse of the Transform applied to this node.
protected  Transformtransform
     The Transform applied to this node.
protected  intwidth
    
protected  intzoomAndPan
    

Constructor Summary
public  Viewport()
    

Method Summary
protected  TransformappendTransform(Transform tx, Transform workTx)
     Appends this node's transform, if it is not null.
Parameters:
  tx - the Transform to apply additional node transforms to.
public  intgetHeight()
    
public  TransformgetInverseTransformState()
     this node's cached inverse transform.
public  TransformgetTransform()
    
public  TransformgetTransformState()
     this node's cached transform.
public  intgetWidth()
    
public  intgetZoomAndPan()
    
public  ModelNodenodeHitAt(float[] pt)
     Returns the ModelNode, if any, hit by the point at coordinate x/y.
protected  voidrecomputeTransformState(Transform parentTransform)
     Recomputes the transform cache, if one exists.
public  voidsetSize(int newWidth, int newHeight)
     Sets the viewport size
Parameters:
  newWidth - the new viewport width.
public  voidsetTransform(Transform newTransform)
    
public  voidsetZoomAndPan(int newZoomAndPan)
    

Field Detail
DEFAULT_VIEWPORT_HEIGHT
final public static int DEFAULT_VIEWPORT_HEIGHT(Code)
Default height for viewports



DEFAULT_VIEWPORT_WIDTH
final public static int DEFAULT_VIEWPORT_WIDTH(Code)
Default width for viewports.



ZOOM_PAN_DISABLE
final public static int ZOOM_PAN_DISABLE(Code)
As in the SVG 1.1 specification



ZOOM_PAN_MAGNIFY
final public static int ZOOM_PAN_MAGNIFY(Code)
As in the SVG 1.1 specification



ZOOM_PAN_UNKNOWN
final public static int ZOOM_PAN_UNKNOWN(Code)
As in the SVG 1.1 specification



height
protected int height(Code)
Viewport height



inverseTxf
protected Transform inverseTxf(Code)
The inverse of the Transform applied to this node.



transform
protected Transform transform(Code)
The Transform applied to this node.



width
protected int width(Code)
Viewport width



zoomAndPan
protected int zoomAndPan(Code)
The zoomAndPan setting




Constructor Detail
Viewport
public Viewport()(Code)
Default constructor




Method Detail
appendTransform
protected Transform appendTransform(Transform tx, Transform workTx)(Code)
Appends this node's transform, if it is not null.
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.



getHeight
public int getHeight()(Code)
the viewport height



getInverseTransformState
public Transform getInverseTransformState()(Code)
this node's cached inverse transform.



getTransform
public Transform getTransform()(Code)
This Transformable's transform.



getTransformState
public Transform getTransformState()(Code)
this node's cached transform.



getWidth
public int getWidth()(Code)
the viewport width



getZoomAndPan
public int getZoomAndPan()(Code)
The zoomAndPan setting for this viewport (read-only)



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.



recomputeTransformState
protected void recomputeTransformState(Transform parentTransform)(Code)
Recomputes the transform cache, if one exists. This should recursively call recomputeTransformState on children node or expanded content, if any. By default, because a ModelNode has no transform and no cached transform, this only does a pass down.
Parameters:
  parentTransform - the Transform applied to this node's parent.



setSize
public void setSize(int newWidth, int newHeight)(Code)
Sets the viewport size
Parameters:
  newWidth - the new viewport width. Should be greater than 0
Parameters:
  newHeight - the new viewport height. Should be greater than 0.



setTransform
public void setTransform(Transform newTransform)(Code)

Parameters:
  newTransform - The new Transformable's transform.



setZoomAndPan
public void setZoomAndPan(int newZoomAndPan)(Code)

Parameters:
  newZoomAndPan - the new value for the zoom and pan setting



Fields inherited from com.sun.perseus.model.CompositeNode
protected ElementNode firstChild(Code)(Java Doc)
protected ElementNode lastChild(Code)(Java Doc)

Methods inherited from com.sun.perseus.model.CompositeNode
public void add(ElementNode element)(Code)(Java Doc)
public Node appendChild(Node newChild) throws DOMException(Code)(Java Doc)
protected void clearLayouts()(Code)(Java Doc)
public ModelNode getFirstChildNode()(Code)(Java Doc)
public ModelNode getLastChildNode()(Code)(Java Doc)
abstract public String getLocalName()(Code)(Java Doc)
abstract public String getNamespaceURI()(Code)(Java Doc)
abstract public Node getParentNode()(Code)(Java Doc)
public Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)(Java Doc)
protected boolean isAllowedChild(ElementNode node)(Code)(Java Doc)
final boolean isAncestor(ElementNode node)(Code)(Java Doc)
final boolean isChild(Node node)(Code)(Java Doc)
protected static boolean isIdBranch(ElementNode node)(Code)(Java Doc)
protected boolean isRemoveChildSupported()(Code)(Java Doc)
void nodeHookedInDocumentTree()(Code)(Java Doc)
void nodeUnhookedFromDocumentTree()(Code)(Java Doc)
final void onHookedInDocumentTree()(Code)(Java Doc)
final void onUnhookedFromDocumentTree()(Code)(Java Doc)
public Node removeChild(Node oldChild) throws DOMException(Code)(Java Doc)
protected void unhookChildrenQuiet()(Code)(Java Doc)

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.