diva.compat.trace
Class TracePane

java.lang.Object
  extended by diva.canvas.CanvasPane
      extended by diva.canvas.GraphicsPane
          extended by diva.compat.trace.TracePane
All Implemented Interfaces:
CanvasComponent, EventAcceptor

public class TracePane
extends GraphicsPane

A pane that displays a trace diagram.

Version:
$Revision: 1.5 $
Author:
John Reekie (johnr@eecs.berkeley.edu)

Field Summary
 
Fields inherited from class diva.canvas.GraphicsPane
_backgroundEventLayer, _backgroundLayer, _foregroundEventLayer, _foregroundLayer, _layers, _overlayLayer
 
Constructor Summary
TracePane()
          Create a new trace pane with a default view, model, and controller.
TracePane(TraceModel model)
          Create a new trace pane with the given model, and a default view and controller.
TracePane(TraceModel model, TraceController controller)
          Create a new trace pane with the given model and controller.
TracePane(TraceModel model, TraceView view, TraceController controller)
          Create a new trace pane with the given model, view and controller.
 
Method Summary
 TraceController getTraceController()
          Get the trace controller
 TraceModel getTraceModel()
          Get the trace model
 TraceView getTraceView()
          Get the trace view
 void setTraceModel(TraceModel model)
          Set the trace model.
 
Methods inherited from class diva.canvas.GraphicsPane
_rebuildLayerArray, 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
 

Constructor Detail

TracePane

public TracePane()
Create a new trace pane with a default view, model, and controller.


TracePane

public TracePane(TraceModel model)
Create a new trace pane with the given model, and a default view and controller.


TracePane

public TracePane(TraceModel model,
                 TraceController controller)
Create a new trace pane with the given model and controller.


TracePane

public TracePane(TraceModel model,
                 TraceView view,
                 TraceController controller)
Create a new trace pane with the given model, view and controller.

Method Detail

getTraceController

public TraceController getTraceController()
Get the trace controller


getTraceModel

public TraceModel getTraceModel()
Get the trace model


getTraceView

public TraceView getTraceView()
Get the trace view


setTraceModel

public void setTraceModel(TraceModel model)
Set the trace model. Any existing data in the view will be removed, and the new data loaded into the model.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.