visual
Class PartialVisualizationRenderer

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

public class PartialVisualizationRenderer
extends java.lang.Object
implements VisualizationRenderer

A decorator of a VisualizationRenderer that only shows part of the content.

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

Constructor Summary
PartialVisualizationRenderer(VisualizationRenderer decorated, double x, double y)
          Explicit Value Constructor
 
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

PartialVisualizationRenderer

public PartialVisualizationRenderer(VisualizationRenderer decorated,
                                    double x,
                                    double y)
Explicit Value Constructor

Parameters:
decorated - The VisualizatioRenderer to decorate
x - The left-most point to render
y - The upper-most point to render
Method Detail

postRendering

public void postRendering(java.awt.Graphics g,
                          Visualization model,
                          VisualizationView view)
Operations to perform after rendering.

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.

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.

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