com.approximatrix.charting.render
Interface Renderer

All Known Implementing Classes:
AbstractChart, AbstractChartRenderer, AbstractRenderer, BarChartRenderer, CoordSystem, DefaultChart, ExtendedChart, InterpolationChartRenderer, Legend, LineChartRenderer, MultiScatterChartRenderer, PieChartRenderer, PlotChartRenderer, RadarChartRenderer, ScatterChartRenderer, StackedBarChartRenderer, Title

public interface Renderer

This interface defines the common methods needed for a Renderer class. This contains methods to define specific options, set/get the rendering size and to finally render something.


Method Summary
 java.awt.Rectangle getBounds()
          Gets the bounds for this renderer.
 java.awt.Dimension getPreferredSize()
          Returns the preferred size needed for the renderer.
 void render(java.awt.Graphics2D g)
          Finally renders the Object in the Graphics object.
 void setBounds(java.awt.Rectangle bounds)
          Sets the bounds the layout manager has assigned to this renderer.
 

Method Detail

getPreferredSize

java.awt.Dimension getPreferredSize()
Returns the preferred size needed for the renderer.

Returns:
a non-null Dimension object

setBounds

void setBounds(java.awt.Rectangle bounds)
Sets the bounds the layout manager has assigned to this renderer. Those, of course, have to be considered in the rendering process.

Parameters:
bounds - the new bounds for the renderer.

getBounds

java.awt.Rectangle getBounds()
Gets the bounds for this renderer.

Returns:
the bounds of this renderer. If setBounds has not been called before, the bounds computed from getPreferredSize is returned.

render

void render(java.awt.Graphics2D g)
Finally renders the Object in the Graphics object.

Parameters:
g - the Graphics2D object in which to render