edu.mit.sketch.system
Class GeometricRenderer

java.lang.Object
  |
  +--edu.mit.sketch.system.SquiggleRenderer
        |
        +--edu.mit.sketch.system.GeometricRenderer

public class GeometricRenderer
extends SquiggleRenderer

This renders the geometric objects as nice neat lines and circles, etc... To print a geometric item we simply call it's paint method with the given context. Everything else is passed up to the SquiggleRenderer.

Created: Thu Nov 29 16:45:13 2001
Copyright: Copyright (C) 2001 by MIT. All rights reserved.


Constructor Summary
GeometricRenderer()
           
 
Method Summary
protected  void paintGeometricWidget(Graphics g, GeometricObject geo)
          To print a geometric item we simply call it's paint method with the given context.
 boolean render(Graphics g, BBSketchItem item)
          If the item is a GeometricWidget then render it otherwise defer to our parent class.
 
Methods inherited from class edu.mit.sketch.system.SquiggleRenderer
paintStroke, paintStrokes, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometricRenderer

public GeometricRenderer()
Method Detail

render

public boolean render(Graphics g,
                      BBSketchItem item)
If the item is a GeometricWidget then render it otherwise defer to our parent class.
Overrides:
render in class SquiggleRenderer
Following copied from class: edu.mit.sketch.system.SquiggleRenderer
Returns:
True if the item is rendered. False otherwise.

paintGeometricWidget

protected void paintGeometricWidget(Graphics g,
                                    GeometricObject geo)
To print a geometric item we simply call it's paint method with the given context. Everything else is done the same as it is in the squiggle renderer.