PDEGraphics2D
Output Processing script from Java AWT/Swing paint call
...=PDEGraphics2D.paint(Component c);
PDEGraphics2D g=PDEGraphics2D.paint(JComponent c);
PDEGraphics2D g=PDEGraphics2D.paint(Window c);
PDEGraphics2D g=PDEGraphics2D.paint(JApplet c);
The getCode(..) and write(....) methods can then be used to access the generated script and create HTML documents.