Monday, May 9, 2011

SketchPad Progress

A (sort of) truss diagram drawn in SketchPad.

A lot of work has been completed on the SketchPad project. Here is a quick summary:

Porting Paleo to Android
  1. Ported basic classes by removing external dependencies on most of java.awt.* . This involved moving source code from OpenJDK in to replace most of the geometry classes, such as Shape, and all of java.awt.geom.* .
  2. Ported shape drawing code to android. This means drawing java.awt.Shape subclasses in an android.graphics.Canvas context. Turned out all you need is to get the PathIterator of the Shape. This code is now in edu.tamu.awt.ShapePainter.
  3. Downgraded base java requirements by adding array copy features to the java.util.Arrays class. This allows for downgrading the required level of the android api below 2.2.
  4. Removed unneeded classes in dependencies and all Ecology Lab simpl serialization dependencies.
  5. Added new serialization code for the core.sketch classes based on Simple XML (simple.sourceforge.net)
Created Android Sketch Application
  1. Supports one finger drawing with a color picker.
  2. Allows saving files to srlweb for storage and analysis
  3. Allows loading files from srlweb

Screen Shots

Shape recognition and beautification at work. Currently it is on by default


A drawing!


No comments:

Post a Comment