New Controls Work
JDK 1.3 API

gov.fnal.controls.tools.plot
Interface PlotListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
RandomTrace, SequentialTrace, Trace

public interface PlotListener
extends EventListener

The listener interface implemented by a Trace to listen to the PlotPanel, and to other (sibling) PlotListeners.

Version:
$Revision: 1.2 $ $Author: devoy $
Author:
John DeVoy
See Also:
Trace

Method Summary
 void drawAllIntervals(List intervals)
          Tell the PlotListener to draw all of its scaled data that are in any of the specified intervals.
 void drawAllPoints()
          Tell the PlotListener to draw all of its scaled data.
 void drawBead(Graphics2D gc2)
          Tell the PlotListener to draw its bead.
 void drawPointsIncr()
          Tell the PlotListener to draw any new scaled data.
 boolean getPoints(Collection intervals)
          Tell the PlotListener to check for and scale any new data.
 void rescale(BufferedImage image, int overflowWidth)
          Tell the PlotListener to recompute its transform matrix.
 

Method Detail

rescale

public void rescale(BufferedImage image,
                    int overflowWidth)
Tell the PlotListener to recompute its transform matrix.

getPoints

public boolean getPoints(Collection intervals)
Tell the PlotListener to check for and scale any new data. The intervals parameter contains a list of intervals on the X-Axis between which points should be deleted. Any new such intervals should be added to the list. The intervals may overlap, and the order in which they are added is immaterial.
Parameters:
intervals - a list of intervals on the X-Axis between which points should be deleted.
Returns:
true if any new points were found, otherwise false
See Also:
Trace.Interval

drawAllPoints

public void drawAllPoints()
Tell the PlotListener to draw all of its scaled data.

drawAllIntervals

public void drawAllIntervals(List intervals)
Tell the PlotListener to draw all of its scaled data that are in any of the specified intervals.
Parameters:
intervals - the X-Axis intervals that should be plotted
See Also:
Trace.Interval

drawPointsIncr

public void drawPointsIncr()
Tell the PlotListener to draw any new scaled data.

drawBead

public void drawBead(Graphics2D gc2)
Tell the PlotListener to draw its bead.

New Controls Work
JDK 1.3 API

Generated Wed Jul 11 09:44:20 2001 by devoy using alphadoc v1.0

Copyright © 2000-2001, Universities Research Association, Inc. All rights reserved.