Package ptolemy.vergil.basic
Class BasicGraphPane
- java.lang.Object
-
- diva.canvas.CanvasPane
-
- diva.canvas.GraphicsPane
-
- diva.graph.GraphPane
-
- ptolemy.vergil.basic.BasicGraphPane
-
- All Implemented Interfaces:
CanvasComponent
,EventAcceptor
public class BasicGraphPane extends GraphPane
A simple graph pane that has an associated Ptolemy model and handles getting the background color from the preferences.- Since:
- Ptolemy II 8.0
- Version:
- $Id$
- Author:
- Edward A. Lee
- Pt.AcceptedRating:
- Red (eal)
- Pt.ProposedRating:
- Yellow (eal)
-
-
Field Summary
-
Fields inherited from class diva.canvas.GraphicsPane
_backgroundEventLayer, _backgroundLayer, _foregroundEventLayer, _foregroundLayer, _layers, _overlayLayer
-
-
Constructor Summary
Constructors Constructor Description BasicGraphPane(GraphController controller, GraphModel model, NamedObj entity)
Create a pane that updates the background color on each repaint if there is a preference attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
repaint()
Override the base class to set the background.void
repaint(DamageRegion damage)
Override the base class to set the background.-
Methods inherited from class diva.graph.GraphPane
getGraphController, getGraphModel
-
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, scale, setAntialiasing, setCanvas, setEnabled, setParent, setSize, setSize, setTransform, translate
-
-
-
-
Constructor Detail
-
BasicGraphPane
public BasicGraphPane(GraphController controller, GraphModel model, NamedObj entity)
Create a pane that updates the background color on each repaint if there is a preference attribute.- Parameters:
controller
- The controller.model
- The graph model.entity
- The Ptolemy II model being displayed.
-
-
Method Detail
-
repaint
public void repaint()
Override the base class to set the background.- Specified by:
repaint
in interfaceCanvasComponent
- Overrides:
repaint
in classCanvasPane
-
repaint
public void repaint(DamageRegion damage)
Override the base class to set the background.- Specified by:
repaint
in interfaceCanvasComponent
- Overrides:
repaint
in classCanvasPane
- Parameters:
damage
- The damage region.
-
-