FreeHEP API
Version current

hep.aida.ref.plotter.adapter
Class AIDAHistogramAdapter2D

java.lang.Object
  extended byjava.util.Observable
      extended byhep.aida.ref.event.ObserverAdapter
          extended byhep.aida.ref.plotter.adapter.AIDAHistogramAdapter
              extended byhep.aida.ref.plotter.adapter.AIDAHistogramAdapter2D
All Implemented Interfaces:
AIDAListener, jas.hist.DataSource, jas.hist.HasStatistics, jas.hist.Rebinnable2DHistogramData

public class AIDAHistogramAdapter2D
extends hep.aida.ref.plotter.adapter.AIDAHistogramAdapter
implements jas.hist.Rebinnable2DHistogramData, jas.hist.HasStatistics

Version:
$Id: AIDAHistogramAdapter2D.java,v 1.4 2005/08/09 22:46:28 serbo Exp $
Author:
manj
Source Code:
AIDAHistogramAdapter2D.java

Field Summary
protected  int xAxisType
           
protected  int yAxisType
           
 
Fields inherited from class hep.aida.ref.event.ObserverAdapter
histo, update
 
Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Method Summary
static jas.hist.DataSource create(hep.aida.IHistogram h)
          Create a DataSource from a Histogram
 jas.hist.Statistics getStatistics()
           
 String getTitle()
           
 String[] getXAxisLabels()
           
 int getXAxisType()
           
 int getXBins()
           
 double getXMax()
           
 double getXMin()
           
 String[] getYAxisLabels()
           
 int getYAxisType()
           
 int getYBins()
           
 double getYMax()
           
 double getYMin()
           
 boolean isRebinnable()
           
 double[][][] rebin(int xbins, double xmin, double xmax, int ybins, double ymin, double ymax, boolean wantErrors, boolean hurry, boolean overflow)
           
 void setXAxisType(int type)
           
 void setYAxisType(int type)
           
 
Methods inherited from class hep.aida.ref.event.ObserverAdapter
addObserver, clearObservable, deleteObserver, deleteObservers, getObservable, setObservable, setValid, stateChanged
 
Methods inherited from class java.util.Observable
clearChanged, countObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xAxisType

protected int xAxisType

yAxisType

protected int yAxisType
Method Detail

rebin

public double[][][] rebin(int xbins,
                          double xmin,
                          double xmax,
                          int ybins,
                          double ymin,
                          double ymax,
                          boolean wantErrors,
                          boolean hurry,
                          boolean overflow)
Specified by:
rebin in interface jas.hist.Rebinnable2DHistogramData

getXMin

public double getXMin()
Specified by:
getXMin in interface jas.hist.Rebinnable2DHistogramData

getXMax

public double getXMax()
Specified by:
getXMax in interface jas.hist.Rebinnable2DHistogramData

getYMin

public double getYMin()
Specified by:
getYMin in interface jas.hist.Rebinnable2DHistogramData

getYMax

public double getYMax()
Specified by:
getYMax in interface jas.hist.Rebinnable2DHistogramData

getXBins

public int getXBins()
Specified by:
getXBins in interface jas.hist.Rebinnable2DHistogramData

getYBins

public int getYBins()
Specified by:
getYBins in interface jas.hist.Rebinnable2DHistogramData

isRebinnable

public boolean isRebinnable()
Specified by:
isRebinnable in interface jas.hist.Rebinnable2DHistogramData

getXAxisType

public int getXAxisType()
Specified by:
getXAxisType in interface jas.hist.Rebinnable2DHistogramData

getYAxisType

public int getYAxisType()
Specified by:
getYAxisType in interface jas.hist.Rebinnable2DHistogramData

setXAxisType

public void setXAxisType(int type)

setYAxisType

public void setYAxisType(int type)

getXAxisLabels

public String[] getXAxisLabels()
Specified by:
getXAxisLabels in interface jas.hist.Rebinnable2DHistogramData

getYAxisLabels

public String[] getYAxisLabels()
Specified by:
getYAxisLabels in interface jas.hist.Rebinnable2DHistogramData

getTitle

public String getTitle()
Specified by:
getTitle in interface jas.hist.DataSource

getStatistics

public jas.hist.Statistics getStatistics()
Specified by:
getStatistics in interface jas.hist.HasStatistics

create

public static jas.hist.DataSource create(hep.aida.IHistogram h)
Create a DataSource from a Histogram


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.