com.sun.perseus.model

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 
com.sun.perseus.model
Perseus Model Package

The Perseus Model package (com.sun.perseus.model) contains interfaces and classes used to describe an SVG Tiny document as a tree of ModelNodes objects with properties. Note that this is different from the DOM (Document Object Model) in a number of ways (e.g, there are not Attr nodes). The Perseus model is not generic like the DOM is. Instead, the Perseus model is very specific to the needs of SVG Tiny and contains all that is needed for SVG Tiny and no more.

The key interfaces in the model package are:

  • ModelNode. All classes that represent an SVG Tiny element implement that interface. It contains methods for child navigation and supports getting and setting of common XML attributes (such as the 'id' attribute.
  • DecoratedNode. All nodes that have properties (e.g., graphical properties or text properties) implement this interface.
  • GraphicsNode. All nodes that have graphical properties (such as 'fill', 'stroke' or 'stroke-width') implement that interface to allow getting and setting of the properties as well as management of their inheritance and relative value (e.g. for handling the 'currentColor' value on 'fill').
  • TextNode. All nodes that have text properties (such as 'font-size', 'text-anchor' or 'font-weight) must implement that interface to allow getting and setting of the properties as well as management of their inheritance.
  • Transformable. All nodes which have a an attribute mapping to an AffineTransform implement that interface.

The classes in the model package are:

  • AbstractShapeNode. All nodes which represent shapes (basic or arbitrary shapes) are represented by descendants of this class.
  • CompositeGraphicsNode. All nodes wich can have children and can have graphical properties are represented by descendant of this class.
  • CompositeNode. All node that may have a children is represented by a descendant of this class. It provides methods for managing children.
  • ConditionalProcessing. This is a helper class used to compute conditional processing on model nodes.
  • Defs. Represents an SVG Tiny <defs> element.
  • Ellipse. Represents an SVG Tiny <ellipse> element.
  • Font. Represents an SVG Tiny <font> element.
  • FontFace. Represents an SVG Tiny <font-face> element.
  • Glyph. Represents an SVG Tiny <glyph> and <missing-glyph> elements.
  • Group. Represents an SVG Tiny <g> element.
  • ImageNode. Represents an SVG Tiny <image> element.
  • Line. Represents an SVG Tiny <line> element.
  • ModelNodeProxy. Used to model expanded content in Use and Glyph. A ModelNodeProxy manages the RenderContext but delegates rendering to the node it proxies.
  • Rect. Represents an SVG Tiny <rect> element.
  • ShapeNode. Represents an SVG Tiny <path>, <polygon> and <polylines> elements.
  • StructureNode. Base class for all the nodes representing structure in SVG Tiny, such as images, defs, use or svg.
  • SVG. Represents an SVG Tiny <svg> element.
  • Switch. Represents an SVG Tiny <switch> element.
  • Text. Represents an SVG Tiny <text> element.
  • Use. Represents an SVG Tiny <use> element.
  • Viewport. Represents an SVT Tiny's <svg> element's viewport.
Java Source File NameTypeComment
AbstractAnimate.javaClass AbstractAnimate is used as a base class for various animation classes (see Animate and AnimateMotion).
AbstractRenderingNode.javaClass Typical base class for nodes which render something (shapes and images).
AbstractRenderingNodeProxy.javaClass An AbstractRenderingNodeProxy delegates its rendering to a proxied AbstractRenderingNode and also has its own rendering manager.
AbstractShapeNode.javaClass All nodes which represent geometry (complex or simple shapes) are represented by descendants of this class.
AbstractShapeNodeProxy.javaClass An AbstractShapeNodeProxy delegates its rendering to a proxied AbstractShapeNode and has the same policy for handling computed value changes.
AccessKeyCondition.javaClass A AccessKeyCondition generates a TimeInstance everytime the associated key event occurs with the expected accessKey value.
Anchor.javaClass Represents an SVG Tiny <a> element.
Animate.javaClass Animate represents an SVG Tiny <animate> element.
AnimateMotion.javaClass AnimateMotion represents an SVG Tiny <animateMotion> element.
AnimateTransform.javaClass Animate represents an SVG Tiny <animateTransform> element.
Animation.javaClass The Animation class is the base class for all the SVG animation elements.
BaseValue.javaInterface The BaseValue interface is used to abstract either the original value of a trait (like 'x' on a <rect>) or a pseudo-trait (like '#text' on a <text> or '#motion' on SVGLocatable).
CanvasManager.javaClass
CanvasUpdateListener.javaInterface

The CanvasUpdateListener should be implemented by classes which want to listen to updates done by the CanvasManager on a RenderGraphics.

CompositeGraphicsNode.javaClass CompositeGraphicsNode is the base class for all nodes which are both composites (i.e., they can have children) and have graphic properties (such as fill or stroke).
CompositeGraphicsNodeProxy.javaClass A CompositeGraphicsNodeProxy delegates its rendering to a proxied CompositeGraphics object and also keeps a cached transform and inverse transform.
CompositeMotionSegment.javaClass A composite implementation of the Segment interface.
CompositeNode.javaClass CompositeNode models ModelNodesElementNode ElementNodes .
ConditionalProcessing.javaClass ConditionalProcessing is a helper class which handles the conditional processing decisions for Perseus classes.
DecoratedNode.javaInterface DecoratedNode is the base interface for handling properties with inheritance.
DefaultImageLoader.javaClass Default implementation of the ImageLoader interface.
Defs.javaClass Defs are used as placeholders where proxied ModelNode can be stored for reference by ElementNodeProxy instances.
Note that according to the SVG 1.1 DTD, <defs> should be StructureNode. However, we should not apply GraphicsNode and TextNode properties on <defs> as it is useless: <defs> content is never rendered directly, so properties set on defs are _never_ inherited by <defs> children.
DirtyAreaManager.javaClass

The DirtyAreaManager abstraction is responsible for tracking areas of the document tree which need to be repainted.

DocumentNode.javaClass A DocumentNode represents the root of an SVG document model.
ElementNode.javaClass ElementNode models ModelNodesA ElementNode can have either ElementNode children and text content children (see the ElementNode.appendTextChild appendTextChild} method).

In addition, Elements 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.

ElementNodeProxy.javaClass A ElementNodeProxy delegates its rendering to a proxied ElementNode object.
Ellipse.javaClass An Ellipse node models an SVG <ellipse> or an <circle> element.
A negative radius along the x or y axis is illegal.
EventBaseCondition.javaClass An EventBaseCondition generates a TimeInstance everytime the associated event happens.
EventSupport.javaClass EventSupport assumes two functions.
FloatRefValues.javaClass
FloatSegment.javaClass Represents float segment in an animation.
FloatTraitAnim.javaClass
Font.javaClass A Font node models an SVG <code> element.
FontFace.javaClass A FontFace node corresponds to an SVG <font-face> element.
GenericElementNode.javaClass A GenericElementNode is used to model elements which are either unknown to Perseus or have no special behavior or attributes. Note that GenericElementNode is needed because we want to avoid storing a namespaceURI and localName references for nodes which always return constants for these values.
Glyph.javaClass A Glyph node corresponds to an SVG <glyph> and <missing-glyph> elements.
GlyphLayout.javaClass GlyphLayout is used to represent successing text 'chunks' in a Text layout of glyphs.
GlyphProxy.javaClass A GlyphNodeProxy delegates its rendering to a proxied Glyph object.
GradientElement.javaClass GradientElement abstract class is a helper base class for LinearGradient and RadialGradient.
GraphicsNode.javaInterface GraphicsNode is the interface that all ModelNode (see com.sun.perseus.model.ModelNode ModelNode ) which correspond to graphical content implement.
GraphicsNodes have a notion of visibility and display.
Group.javaClass A Group corresponds to an SVT Tiny <g> element.
HKern.javaClass A HKern corresponds to an SVG <hkern> element.
IDRef.javaInterface Interface which users of id references to ElementNodes should implement.
ImageLoader.javaInterface Interface for handling RasterImage resources loading.
ImageNode.javaClass This class models the SVG Tiny <image>. A value of 0 on the width and height attributes disables the rendering of the Image object.
IntervalTimeInstance.javaClass This specialized TimeInstance is created by SyncBaseCondition time conditions.
LeafMotionSegment.javaClass Represents a time interval in an animation.
Line.javaClass A Line node models an SVG <line> element.
LinearGradient.javaClass LienarGraident represents an SVG Tiny 1.2 <linearGradient> element.
Messages.javaClass
ModelEvent.javaClass Events happen on a specific target and have a specific type.
ModelNode.javaClass The central structure manipulated in Perseus is called the Model.
MotionRefValues.javaClass
MotionSegment.javaInterface Represents a time interval in an animation.
MotionTraitAnim.javaClass
OffsetCondition.javaClass An OffsetCondition generates a single TimeInstance on initialization.
PaintElement.javaClass Abstract base class for all elements which are paint server implementations.
PaintServerReference.javaClass The PaintServerReference object is used to handle references from a GraphicsNode to an actual Paint implementation.
RadialGradient.javaClass LienarGraident represents an SVG Tiny 1.2 <radialGradient> element.
RasterImageConsumer.javaInterface
Rect.javaClass Rect represents and SVG Tiny <rect> element.
Negative width, height, rx or ry value is illegal.
RefValues.javaInterface
RenderingManager.javaClass The RenderingManager class provides support for efficiently managing rendered areas in ModelNode implementations, such as AbstractShapeNode.
RepeatCondition.javaClass A RepeatCondition generates a TimeInstance everytime the associated repeat event occurs with the expected repeatCount value.
Segment.javaInterface Represents a time interval in an animation.
Set.javaClass Set represents an SVG Tiny <set> element.
ShapeNode.javaClass A ShapesNode is an AbstractShapeNode which draws a java.awt.geom.GeneralPath.
SimpleCanvasManager.javaClass
SMILSample.javaClass SMILSample is the root of the SMIL Timing engine operation.
SolidColor.javaClass SolidColor represents an SVG Tiny 1.2 <solidColor> element.
Stop.javaClass Stop class represents the <stop> SVG Tiny 1.2 element.
StrictElement.javaClass The purpose of the StrictElement class is to have a way to create elements with a list of required attributes but no specific rendering behavior.
StringRefValues.javaClass
StringSegment.javaClass Represents String segment in an animation.
StringTraitAnim.javaClass
StructureNode.javaClass StructureNode is the base class for all nodes that represent structure content, such as images, defs or svg elements.
StructureNodeProxy.javaClass A TextProxy proxies a Text node and computes its expanded content from the proxied text's data content.
SVG.javaClass An SVG node represents an <code> element.
SVGImageImpl.javaClass
SVGImageLoader.javaClass JSR 226 implementation of the ImageLoader interface.
Switch.javaClass The Switch class is a simple extension of the Group class which stops rendering its children after one as rendered (i.e., the child's canRender method returns true).
Symbol.javaClass Represents an SVG Tiny <a> element.
SyncBaseCondition.javaClass An SyncBaseCondition generates a TimeInstance everytime the SyncBase TimedElementSupport generates a new interval (i.e., each time its newInterval method is called by the TypedElement.
Text.javaClass Models text content.
TextNode.javaInterface TextNode is the interface that all ModelNode (see com.sun.perseus.model.ModelNode ModelNode ) which support the definition of text properties (such as text-anchor or font-size) implement.
TextProxy.javaClass A TextProxy proxies a Text node and computes its expanded content from the proxied text's data content.
Time.javaClass This simple class represents the concept of time in the context of SMIL timing.
TimeCondition.javaClass A TimeCondition represents a value in a TimedElementSupport begin or end conditions list.
TimeContainerNode.javaClass TimedElementNode models ModelNodes
TimeContainerRootSupport.javaClass
TimeContainerSupport.javaClass
TimedElementNode.javaClass TimedElementNode models ModelNodes
TimedElementSupport.javaClass The TimedElementSupport class is the main abstraction of the SMIL timing model implementation.

It is responsible for computing the animation's state (inactive, active, post-acitve, frozen) and, when the application is active, what the current simple time is.

TimeDependent.javaInterface
TimeInstance.javaClass Base class for representing time instances in a TimedElementSupport's begin and end instance times lists.
TimeInterval.javaClass A TimeInterval models a specific 'run' of a TimedElement.
TraitAnim.javaClass The TraitAnim class is the link between animation targets (i.e., traits on elements) and animation elements.

When an animation becomes active on a target (i.e., on a trait or pseudo trait for an element), it invokes getAnimTrait(traitName) on the corresponding element to get the trait's TraitAnim.

Transformable.javaInterface Transformable is the interface that all nodes which have an Transform (such as the transform attribute on <rect>) implement.
TransformRefValues.javaClass
TransformSegment.javaClass Represents a segment in an animateTransform.
TransformTraitAnim.javaClass
UpdateAdapter.javaClass A simple UpdateListener implementation which can check whether or not the document loading succeeded.
UpdateListener.javaInterface An UpdateListener implementation is responsible for handling updates to a ModelNode tree and to take appropriate actions, like collecting dirty state, dirty area or triggering repaint events.
Use.javaClass Represents an SVG Tiny <use> element.
UseProxy.javaClass A UseProxy proxies a Use node and computes the expanded content from the proxied use's children and its proxy expanded child.

A UseProxy has a first expanded child corresponding to the proxied Use's proxy content.

Viewport.javaClass A Viewport describes a ModelNode into which rendering may happen.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.