visual
Class PlainVisualizationRenderer

java.lang.Object
  extended by visual.PlainVisualizationRenderer
All Implemented Interfaces:
VisualizationRenderer

public class PlainVisualizationRenderer
extends java.lang.Object
implements VisualizationRenderer

A "plain" VisualizationRenderer that simply clears the background and renders the content

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Constructor Summary
PlainVisualizationRenderer()
           
 
Method Summary
 void postRendering(java.awt.Graphics g, Visualization model, VisualizationView view)
          Operations to perform after rendering.
 void preRendering(java.awt.Graphics g, Visualization model, VisualizationView view)
          Operations to perform before rendering.
 void render(java.awt.Graphics g, Visualization model, VisualizationView view)
          Render the content contained in the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainVisualizationRenderer

public PlainVisualizationRenderer()
Method Detail

postRendering

public void postRendering(java.awt.Graphics g,
                          Visualization model,
                          VisualizationView view)
Operations to perform after rendering. This method is called by paint().

Specified by:
postRendering in interface VisualizationRenderer
Parameters:
g - The rendering engine
model - The Visualization containing the content
view - The component presenting the content

preRendering

public void preRendering(java.awt.Graphics g,
                         Visualization model,
                         VisualizationView view)
Operations to perform before rendering. This method is called by paint().

Specified by:
preRendering in interface VisualizationRenderer
Parameters:
g - The rendering engine
model - The Visualization containing the content
view - The component presenting the content

render

public void render(java.awt.Graphics g,
                   Visualization model,
                   VisualizationView view)
Render the content contained in the model. This method is called by paint().

Specified by:
render in interface VisualizationRenderer
Parameters:
g - The rendering engine
model - The Visualization containing the content
view - The component presenting the content


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers