multigraph
Class FilledRenderer
java.lang.Object
multigraph.TimeSeriesMFFunction.Renderer
multigraph.FilledRenderer
- public class FilledRenderer
- extends TimeSeriesMFFunction.Renderer
Render the graph of a function using the "FILLED" style: points
connected by line segments with the region between these line
segments and the horizontal axis filled with a solid color.
Works for functions whose getFieldCount()
is 1.
- Version:
- $Id: FilledRenderer.java,v 1.1.1.1 2004/11/30 22:30:41 mphillips Exp $
- Author:
- Mark Phillips
Method Summary |
void |
begin(java.awt.Graphics g,
java.util.Date date)
Prepare to plot beginning at a given date. |
java.lang.String |
getName()
Return the name of this renderer: "FILLED" |
void |
renderLegend(java.awt.Graphics g,
PlotPoint p)
Render a legend icon for this renderer. |
void |
renderValue(java.awt.Graphics g,
java.util.Date date,
MFDatum datum)
Plot a function value at a given time point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilledRenderer
public FilledRenderer(VerticalScale verticalScale,
MultiPlotter multiPlotter,
java.awt.Color color,
java.awt.Color flaggedColor,
int missingYTop,
int missingYBottom)
getName
public java.lang.String getName()
- Return the name of this renderer: "FILLED"
- Specified by:
getName
in class TimeSeriesMFFunction.Renderer
begin
public void begin(java.awt.Graphics g,
java.util.Date date)
- Prepare to plot beginning at a given date.
- Overrides:
begin
in class TimeSeriesMFFunction.Renderer
- Parameters:
g
- the Graphics
object to draw indate
- the date where plotting will begin
renderValue
public void renderValue(java.awt.Graphics g,
java.util.Date date,
MFDatum datum)
- Plot a function value at a given time point.
- Overrides:
renderValue
in class TimeSeriesMFFunction.Renderer
- Parameters:
g
- the Graphics
object to draw indate
- the date value of the sample to renderdatum
- the function value of the sample to render; must
have field count 1.
renderLegend
public void renderLegend(java.awt.Graphics g,
PlotPoint p)
- Render a legend icon for this renderer.
- Overrides:
renderLegend
in class TimeSeriesMFFunction.Renderer
- Parameters:
g
- the Graphics
object to draw inp
- the location to draw the icon at