FreeHEP API
Version current

hep.aida.ref.plotter.adapter
Class TimeHistoryOverlay

java.lang.Object
  extended byhep.aida.ref.plotter.adapter.TimeHistoryOverlay
All Implemented Interfaces:
CanSetData, jas.hist.CustomOverlay, jas.plot.LegendEntry, jas.plot.MutableLegendEntry, jas.plot.Overlay

public class TimeHistoryOverlay
extends Object
implements CanSetData, jas.hist.CustomOverlay, jas.plot.MutableLegendEntry

Overlay that can be used with XYDataSource to represent time histories It draws straight horizontal line after the point and vertical just before the next point: *----- *----|

Source Code:
TimeHistoryOverlay.java

Constructor Summary
TimeHistoryOverlay()
           
 
Method Summary
 void containerNotify(jas.plot.OverlayContainer c)
           
 jas.hist.JASHist1DHistogramStyle getStyle()
           
 String getTitle()
           
 void paint(jas.plot.PlotGraphics g, boolean isPrinting)
           
 void paintIcon(jas.plot.PlotGraphics g, int width, int height)
           
 void setData(jas.hist.JASHistData data)
           
 void setDataSource(jas.hist.DataSource sr)
           
 void setStyle(jas.hist.JASHistStyle s)
           
 void setTitle(String newTitle)
           
 boolean titleIsChanged()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeHistoryOverlay

public TimeHistoryOverlay()
Method Detail

setData

public void setData(jas.hist.JASHistData data)
Specified by:
setData in interface CanSetData

setStyle

public void setStyle(jas.hist.JASHistStyle s)

getStyle

public jas.hist.JASHist1DHistogramStyle getStyle()

getTitle

public String getTitle()
Specified by:
getTitle in interface jas.plot.LegendEntry

paintIcon

public void paintIcon(jas.plot.PlotGraphics g,
                      int width,
                      int height)
Specified by:
paintIcon in interface jas.plot.LegendEntry

setTitle

public void setTitle(String newTitle)
Specified by:
setTitle in interface jas.plot.MutableLegendEntry

titleIsChanged

public boolean titleIsChanged()
Specified by:
titleIsChanged in interface jas.plot.MutableLegendEntry

setDataSource

public void setDataSource(jas.hist.DataSource sr)
Specified by:
setDataSource in interface jas.hist.CustomOverlay

containerNotify

public void containerNotify(jas.plot.OverlayContainer c)
Specified by:
containerNotify in interface jas.plot.Overlay

paint

public void paint(jas.plot.PlotGraphics g,
                  boolean isPrinting)
Specified by:
paint in interface jas.plot.Overlay

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.