diva.sketch
Class SketchPane
java.lang.Object
diva.canvas.CanvasPane
diva.canvas.GraphicsPane
diva.sketch.SketchPane
- All Implemented Interfaces:
- CanvasComponent, EventAcceptor
public class SketchPane
- extends GraphicsPane
SketchPane is a sketching surface which can be customized to
perform recognition for a particular application. It relies on a
SketchController to give it smarts. It also optimizes the
drawing of strokes so that it is not necessary to perform
a redraw of the canvas for every mouse event.
- Version:
- $Revision: 1.15 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu), Heloise Hse (hwawen@eecs.berkeley.edu)
Constructor Summary |
SketchPane()
Create a new sketch pane with a SketchController to
process the input sketch. |
SketchPane(SketchController controller)
Create a new sketch pane with the given controller
that controls the behavior of this pane. |
Methods inherited from class diva.canvas.GraphicsPane |
getBackgroundEventLayer, getBackgroundLayer, getForegroundEventLayer, getForegroundLayer, getOverlayLayer, layersFromBack, layersFromFront, setBackgroundEventLayer, setBackgroundLayer, setForegroundEventLayer, setForegroundLayer, setOverlayLayer |
Methods inherited from class diva.canvas.CanvasPane |
_initNewLayer, _nullifyLayer, dispatchEvent, getCanvas, getParent, getSize, getToolTipText, getTransformContext, isAntialiasing, isEnabled, layers, paint, paint, processLayerEvent, repaint, repaint, scale, setAntialiasing, setCanvas, setEnabled, setParent, setSize, setSize, setTransform, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SketchPane
public SketchPane()
- Create a new sketch pane with a SketchController to
process the input sketch.
SketchPane
public SketchPane(SketchController controller)
- Create a new sketch pane with the given controller
that controls the behavior of this pane.
getSketchController
public SketchController getSketchController()
- Get the sketch controller that controls
the behavior of this pane.
_rebuildLayerArray
protected void _rebuildLayerArray()
- Rebuild the array of layers for use by iterators.
Override superclass to include sketch layer.
- Overrides:
_rebuildLayerArray
in class GraphicsPane
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.