dano8406 / java-axp

Automatically exported from code.google.com/p/java-axp
0 stars 0 forks source link

Support parsing and rendering of arbirary page elements #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Current only a full page or an IVisual element may be rendered. It should
be possible to start rendering at any point in a page's element tree.

It should also be possible to parse fragments of a page into their model
objects.

Eg. Should parse to a pair of IPath elements

<!-- Draw background diamond to show where fill affects background -->
<Path Fill="#CCCC66" Data="M 150,0 L 300,150 L 150,300 L 0,150 Z" />
<Path Data="M 150,0 L 300,150 L 150,300 L 0,150 Z">
<Path.Fill>
<VisualBrush Viewbox="0.25,0.25,0.75,0.75" Viewport="150,75,50,50"
ViewboxUnits="Absolute" ViewportUnits="Absolute" TileMode="Tile">
<VisualBrush.Visual>    
<Canvas>      
<Path Fill="#333399" Data="M 0.1,0.1 L 0.9,0.1 L 0.9,0.9 L 0.1,0.9 Z" />
<Path Fill="#FFFF00" Data="M 0.1,0.35 L 0.35,0.1 L 0.6,0.35 L 0.35,0.6 Z"/>  
</Canvas>
</VisualBrush.Visual>
</VisualBrush> 
</Path.Fill>
</Path>

Original issue reported on code.google.com by chrisp...@gmail.com on 21 Jul 2007 at 4:37

GoogleCodeExporter commented 8 years ago
To conform to the spec's schema, all visual elements must be contained in a 
FixedPage
element.

This has been implemented within the viewer-test source package.

Original comment by chrisp...@gmail.com on 21 Jul 2007 at 5:34