Marc Hughes


Home
Blog
Twitter
LinkedIn
GitHub
about
I am a developer from a bit west of Boston.

Degrafa + ObjectHandles

14 Mar 2008

Here's a neat little experiment I did with combining Degrafa  and ObjectHandles.  (View-source is enabled for the example.)
http://rogue-development.com/objectHandles/degrafaExample/OHDegrafa.html 
<img src="http://docs.google.com/File?id=dfxczdkr12gtnhrbgq" style="width: 619px; height: 372px;" />

It lets you move and resize shapes drawn with Degrafa by using the ObjectHandles stuff.  It was amazingly simple to make this work, essentially just something like:


<oh:ObjectHandle id="myHandle">
  <degrafa:Surface left="0" top="0">                                  
  <degrafa:fills>             
    <degrafa:SolidFill id="aqua" colorKey="aqua"/>                     
  </degrafa:fills>                  
  <degrafa:GeometryGroup>             
    <degrafa:Elipse width="{myHandle.width}" height="{myHandle.height}}" fill="{aqua}" radius="20"/>                    
  </degrafa:GeometryGroup>              
</degrafa:Surface>
</oh:ObjectHandle>


I bet it'd be amazingly simple to make some sort of impressive drawing or charting application with this.