InkRenderer Class Reference

List of all members.

Public Member Functions

 InkRenderer ()
 InkRenderer (Ink theInk)
void renderToG2D (Graphics2D g2d)
void renderToJPEG (File destJPEGFile, int widthPixels, int heightPixels)
 Usually, the width and height of the region.
void renderToJPEG (File destJPEGFile, Pixels resolutionPixelsPerInch, Units width, Units height)
 Looks very similar to SheetRenderer's.
void renderToJPEGRecentered (File destFile)
void setInk (Ink theInk)
void setRenderingTechnique (RenderingTechnique rt)
void useCatmullRomRendering ()
void useLineRendering ()
void useQuadraticRendering ()
void useInvertedInkColors ()

Detailed Description

Renders Ink to a Graphics2D or PDF.

This software is distributed under the BSD License.

Ron B Yeh (ronyeh(AT)

Definition at line 35 of file

Constructor & Destructor Documentation

InkRenderer ( Ink  theInk  ) 


Definition at line 51 of file

Member Function Documentation

void renderToG2D ( Graphics2D  g2d  ) 


Definition at line 58 of file

References Ink.getColor(), Ink.getStrokes(), and RenderingTechnique.render().

Referenced by InkPanel.paintComponent(), InkRenderer.renderToJPEG(), and InkRenderer.renderToJPEGRecentered().

void renderToJPEG ( File  destJPEGFile,
Pixels  resolutionPixelsPerInch,
Units  width,
Units  height 

Looks very similar to SheetRenderer's.

TODO: Can we integrate this?

Definition at line 103 of file

References Units.getValueIn(), and InkRenderer.renderToG2D().

void renderToJPEG ( File  destJPEGFile,
int  widthPixels,
int  heightPixels 

Usually, the width and height of the region.


TODO: Merge with next method.


Definition at line 85 of file

References InkRenderer.renderToG2D().

Referenced by GestureDatabase.createBestImage(), and GestureDatabase.generateGesture().

void renderToJPEGRecentered ( File  destFile  ) 


Definition at line 133 of file

References Ink.getMaxX(), Ink.getMaxY(), Ink.getMinX(), Ink.getMinY(), and InkRenderer.renderToG2D().

void setInk ( Ink  theInk  ) 


Definition at line 158 of file

Referenced by InkPanel.paintComponent().

The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:44 2007 for R3 Paper Toolkit by  doxygen 1.4.7