edu.stanford.hci.r3.render.regions
Class ImageRenderer

java.lang.Object
  extended by edu.stanford.hci.r3.render.RegionRenderer
      extended by edu.stanford.hci.r3.render.regions.ImageRenderer

public class ImageRenderer
extends RegionRenderer

Renders an ImageRegion to a graphics context or PDF file.

This software is distributed under the BSD License.


Field Summary
 
Fields inherited from class edu.stanford.hci.r3.render.RegionRenderer
CONFIG_FILE_KEY, CONFIG_FILE_VALUE, DEBUG_REGIONS, region
 
Constructor Summary
ImageRenderer(ImageRegion region)
           
 
Method Summary
 void renderToG2D(java.awt.Graphics2D g2d)
          Render the image to a graphics context, given the pixels per inch scaling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageRenderer

public ImageRenderer(ImageRegion region)
Parameters:
region -
Method Detail

renderToG2D

public void renderToG2D(java.awt.Graphics2D g2d)
Render the image to a graphics context, given the pixels per inch scaling.

Overrides:
renderToG2D in class RegionRenderer
Parameters:
g2d - Draw some boxes to the Graphics context to show where the regions lie. Normally, a subclass would want to override this and NOT call the super.renderToG2D(...)
See Also:
RegionRenderer.renderToG2D(java.awt.Graphics2D)

Copyright 2006 Stanford University