org.freehep.jas.extension.tupleExplorer.cut
Class Numeric1DCut

java.lang.Object
  extended by org.freehep.jas.extension.tupleExplorer.cut.AbstractCut
      extended by org.freehep.jas.extension.tupleExplorer.cut.AbstractCutWithVariables
          extended by org.freehep.jas.extension.tupleExplorer.cut.Numeric1DCut
All Implemented Interfaces:
EventListener, Cut, CutVariableListener, CutWithVariables

public class Numeric1DCut
extends AbstractCutWithVariables

Version:
Author:
The FreeHEP team @ SLAC.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.freehep.jas.extension.tupleExplorer.cut.Cut
Cut.CutGUIListener
 
Field Summary
static int NUMERIC1DCUT_EXCLUSIVE
           
static int NUMERIC1DCUT_GREATER_THAN
          The four kind of Numeric1DCut.
static int NUMERIC1DCUT_INCLUSIVE
           
static int NUMERIC1DCUT_LESS_THAN
           
 
Fields inherited from class org.freehep.jas.extension.tupleExplorer.cut.AbstractCut
cutListeners
 
Fields inherited from interface org.freehep.jas.extension.tupleExplorer.cut.Cut
CUT_DISABLED, CUT_DISABLED_INVERTED, CUT_ENABLED, CUT_INVERTED
 
Constructor Summary
Numeric1DCut(String cutName)
          Create a new Numeric1DCut object
Numeric1DCut(String cutName, CutDataSet cutDataSet, int cutType)
          Create a new Numeric1DCut object
Numeric1DCut(String cutName, CutDataSet cutDataSet, int cutType, Numeric1DCutVariable numeric1DCutVariable)
          Create a new Numeric1DCut object
Numeric1DCut(String cutName, CutDataSet cutDataSet, int cutType, Numeric1DCutVariable minNumeric1DCutVariable, Numeric1DCutVariable maxNumeric1DCutVariable)
          Create a new Numeric1DCut object
 
Method Summary
 boolean accept(hep.aida.ref.tuple.FTupleCursor cutDataCursor)
          Apply the cut to the current value of CutDataSet
 int getCutType()
          Get the type of the Numeric1DCut
protected  CutVariableSynchronization getCutVariableSynchronization()
           
protected  int getOriginalCutType()
           
protected  boolean isSynchronized()
           
protected  void resetSynchronization()
           
 void setCutType(int cutType)
          Set the type of the Numeric1DCut
protected  void setCutVariableSynchronization(CutVariableSynchronization cutVarSync)
           
protected  void setOriginalCutType(int origCutType)
           
 void setState(int cutState)
          Set the state of the Numeric1DCut.
protected  void synchronizeSliders()
           
 
Methods inherited from class org.freehep.jas.extension.tupleExplorer.cut.AbstractCutWithVariables
addCutVariable, cutVarRangeChanged, cutVarStateChanged, cutVarValueChanged, getCutVariable, getCutVariables, getNCutVariables, removeCutVariable
 
Methods inherited from class org.freehep.jas.extension.tupleExplorer.cut.AbstractCut
addCutListener, fireCutChanged, getCutDataSet, getCutGUIListener, getCutListeners, getName, getState, invert, isEnabled, isInverted, removeCutListener, setCutDataSet, setDisabled, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.freehep.jas.extension.tupleExplorer.cut.Cut
addCutListener, getCutDataSet, getCutGUIListener, getCutListeners, getName, getState, invert, isEnabled, isInverted, removeCutListener, setCutDataSet, setDisabled, setName
 

Field Detail

NUMERIC1DCUT_GREATER_THAN

public static final int NUMERIC1DCUT_GREATER_THAN
The four kind of Numeric1DCut.

See Also:
Constant Field Values

NUMERIC1DCUT_LESS_THAN

public static final int NUMERIC1DCUT_LESS_THAN
See Also:
Constant Field Values

NUMERIC1DCUT_INCLUSIVE

public static final int NUMERIC1DCUT_INCLUSIVE
See Also:
Constant Field Values

NUMERIC1DCUT_EXCLUSIVE

public static final int NUMERIC1DCUT_EXCLUSIVE
See Also:
Constant Field Values
Constructor Detail

Numeric1DCut

public Numeric1DCut(String cutName)
Create a new Numeric1DCut object

Parameters:
cutName - the name of the cut

Numeric1DCut

public Numeric1DCut(String cutName,
                    CutDataSet cutDataSet,
                    int cutType)
Create a new Numeric1DCut object

Parameters:
cutName - the name of the cut
cutDataSet - the CutDataSet on which the cut is applied
cutType - the type of cut

Numeric1DCut

public Numeric1DCut(String cutName,
                    CutDataSet cutDataSet,
                    int cutType,
                    Numeric1DCutVariable numeric1DCutVariable)
Create a new Numeric1DCut object

Parameters:
cutName - the name of the cut
cutDataSet - the CutDataSet on which the cut is applied
cutType - the type of cut
numeric1DCutVariable - the Numeric1DCutVariable for this Numeric1DCut

Numeric1DCut

public Numeric1DCut(String cutName,
                    CutDataSet cutDataSet,
                    int cutType,
                    Numeric1DCutVariable minNumeric1DCutVariable,
                    Numeric1DCutVariable maxNumeric1DCutVariable)
Create a new Numeric1DCut object

Parameters:
cutName - the name of the cut
cutDataSet - the CutDataSet on which the cut is applied
cutType - the type of cut
minNumeric1DCutVariable - the lower Numeric1DCutVariable for this Numeric1DCut
maxNumeric1DCutVariable - the upper Numeric1DCutVariable for this Numeric1DCut
Method Detail

accept

public boolean accept(hep.aida.ref.tuple.FTupleCursor cutDataCursor)
Apply the cut to the current value of CutDataSet

Parameters:
cutDataCursor - the CutDataCursor to access the CutDataSet current value
Returns:
true<\code> if the current value of the CutDataSet is accepted by the cut false<\code> otherwise

getCutType

public int getCutType()
Get the type of the Numeric1DCut

Returns:
the cut type

setCutType

public void setCutType(int cutType)
Set the type of the Numeric1DCut

Parameters:
cutType - the cut type

getOriginalCutType

protected int getOriginalCutType()

setOriginalCutType

protected void setOriginalCutType(int origCutType)

setState

public void setState(int cutState)
Set the state of the Numeric1DCut.

Specified by:
setState in interface Cut
Overrides:
setState in class AbstractCut
Parameters:
cutState - the state of the Numeric1DCut

resetSynchronization

protected void resetSynchronization()

synchronizeSliders

protected void synchronizeSliders()

isSynchronized

protected boolean isSynchronized()

getCutVariableSynchronization

protected CutVariableSynchronization getCutVariableSynchronization()

setCutVariableSynchronization

protected void setCutVariableSynchronization(CutVariableSynchronization cutVarSync)


Copyright © 2013. All Rights Reserved.