org.freehep.jas.extension.tupleExplorer.project
Class ProjectXY

java.lang.Object
  extended by java.util.Observable
      extended by org.freehep.jas.extension.tupleExplorer.project.AbstractProjection
          extended by org.freehep.jas.extension.tupleExplorer.project.ProjectXY
All Implemented Interfaces:
jas.hist.DataSource, jas.hist.HasStatistics, jas.hist.HasStyle, jas.hist.XYDataSource, ActionListener, EventListener, org.freehep.jas.plugin.plotter.JAS3DataSource

public class ProjectXY
extends AbstractProjection
implements jas.hist.XYDataSource, jas.hist.HasStyle

Author:
The FreeHEP team @ SLAC

Field Summary
protected  int Counter
           
protected  double[][] data
           
protected  double f
           
protected static jas.hist.HistogramUpdate hu
           
protected  double maxx
           
protected  double maxy
           
protected  double minx
           
protected  double miny
           
protected  int nBins
           
protected  double[][] newData
           
protected  jas.hist.JASHist1DHistogramStyle style
           
protected  int typeX
           
protected  org.freehep.util.Value value
           
 
Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
protected ProjectXY()
           
  ProjectXY(MutableTupleColumn x, MutableTupleColumn y)
           
  ProjectXY(MutableTupleColumn x, MutableTupleColumn y, int n)
           
 
Method Summary
 String[] axisLabels()
           
protected  MutableTupleColumn columnX()
           
protected  MutableTupleColumn columnY()
           
 jas.hist.DataSource dataSource()
           
 void end()
           
 void fill(MutableTupleTreeNavigator cursor)
           
 int getAxisType()
           
 org.freehep.jas.plugin.tree.FTreePath getLeadingPath()
           
 double getMinusError(int index)
           
 int getNPoints()
           
 double getPlusError(int index)
           
 jas.hist.JASHistStyle getStyle()
           
 String getTitle()
           
 double getX(int index)
           
 double getY(int index)
           
protected  void initProjection2D()
           
 org.freehep.jas.plugin.tree.FTreePath path()
           
 void setAxisType(int t)
          This method was added to fulfill BaBar's needs to have DataPointSets with Dates on the axis.
protected  void setColumns(MutableTupleColumn colx, MutableTupleColumn coly)
           
 void setNPoints(int n)
           
 void setXAxisFactor(double factor)
           
 void start()
           
 
Methods inherited from class org.freehep.jas.extension.tupleExplorer.project.AbstractProjection
actionPerformed, dataStatistics, destroy, getStatistics, initStatistics, jas3DataSource, modifyPopupMenu, run, setName, setPlot, setRegion, setRunnable
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nBins

protected int nBins

Counter

protected int Counter

minx

protected double minx

maxx

protected double maxx

miny

protected double miny

maxy

protected double maxy

typeX

protected int typeX

f

protected double f

data

protected double[][] data

newData

protected double[][] newData

hu

protected static final jas.hist.HistogramUpdate hu

value

protected org.freehep.util.Value value

style

protected jas.hist.JASHist1DHistogramStyle style
Constructor Detail

ProjectXY

protected ProjectXY()

ProjectXY

public ProjectXY(MutableTupleColumn x,
                 MutableTupleColumn y)

ProjectXY

public ProjectXY(MutableTupleColumn x,
                 MutableTupleColumn y,
                 int n)
Method Detail

initProjection2D

protected void initProjection2D()

setAxisType

public void setAxisType(int t)
Description copied from class: AbstractProjection
This method was added to fulfill BaBar's needs to have DataPointSets with Dates on the axis.

Specified by:
setAxisType in interface org.freehep.jas.plugin.plotter.JAS3DataSource
Overrides:
setAxisType in class AbstractProjection

setNPoints

public void setNPoints(int n)

setXAxisFactor

public void setXAxisFactor(double factor)

getNPoints

public int getNPoints()
Specified by:
getNPoints in interface jas.hist.XYDataSource

getX

public double getX(int index)
Specified by:
getX in interface jas.hist.XYDataSource

getY

public double getY(int index)
Specified by:
getY in interface jas.hist.XYDataSource

getPlusError

public double getPlusError(int index)
Specified by:
getPlusError in interface jas.hist.XYDataSource

getMinusError

public double getMinusError(int index)
Specified by:
getMinusError in interface jas.hist.XYDataSource

getAxisType

public int getAxisType()
Specified by:
getAxisType in interface jas.hist.XYDataSource

getTitle

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

dataSource

public jas.hist.DataSource dataSource()
Specified by:
dataSource in interface org.freehep.jas.plugin.plotter.JAS3DataSource

start

public void start()
Specified by:
start in class AbstractProjection

fill

public void fill(MutableTupleTreeNavigator cursor)
Specified by:
fill in class AbstractProjection

end

public void end()
Specified by:
end in class AbstractProjection

getStyle

public jas.hist.JASHistStyle getStyle()
Specified by:
getStyle in interface jas.hist.HasStyle

setColumns

protected void setColumns(MutableTupleColumn colx,
                          MutableTupleColumn coly)

columnX

protected MutableTupleColumn columnX()

columnY

protected MutableTupleColumn columnY()

getLeadingPath

public org.freehep.jas.plugin.tree.FTreePath getLeadingPath()
Specified by:
getLeadingPath in class AbstractProjection

path

public org.freehep.jas.plugin.tree.FTreePath path()
Specified by:
path in interface org.freehep.jas.plugin.plotter.JAS3DataSource
Specified by:
path in class AbstractProjection

axisLabels

public String[] axisLabels()
Specified by:
axisLabels in interface org.freehep.jas.plugin.plotter.JAS3DataSource
Specified by:
axisLabels in class AbstractProjection


Copyright © 2013. All Rights Reserved.