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

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

public abstract class AbstractCutWithVariables
extends AbstractCut
implements CutWithVariables

AbstractCutWithVariables abstract implementation of CutWithVariables

Version:
$Id: AbstractCutWithVariables.java 13893 2011-09-28 23:42:34Z tonyj $
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
 
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
AbstractCutWithVariables(String cutName)
          The default constructor
 
Method Summary
 void addCutVariable(CutVariable cutVariable)
          Add a CutVariable to the AbstractCutWithVariables
 void cutVarRangeChanged(CutChangedEvent cutChangedEvent)
          Invoked when the CutVariable range has changed
 void cutVarStateChanged(CutChangedEvent cutChangedEvent)
          Invoked when the CutVariable state has changed
 void cutVarValueChanged(CutChangedEvent cutChangedEvent)
          Invoked when the CutVariable has changed the current value
 CutVariable getCutVariable(int nCutVar)
          Get the nth CutVariable
 ArrayList getCutVariables()
          Get the list of CutVariables
 int getNCutVariables()
          Get the number of CutVariables
 void removeCutVariable(CutVariable cutVariable)
          Remove a CutVariable from the AbstractCutWithVariables
 
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, setState
 
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
accept, addCutListener, getCutDataSet, getCutGUIListener, getCutListeners, getName, getState, invert, isEnabled, isInverted, removeCutListener, setCutDataSet, setDisabled, setName, setState
 

Constructor Detail

AbstractCutWithVariables

public AbstractCutWithVariables(String cutName)
The default constructor

Parameters:
cutName - the name of the cut
Method Detail

addCutVariable

public void addCutVariable(CutVariable cutVariable)
Add a CutVariable to the AbstractCutWithVariables

Specified by:
addCutVariable in interface CutWithVariables
Parameters:
cutVariable - the CutVariable to add

removeCutVariable

public void removeCutVariable(CutVariable cutVariable)
Remove a CutVariable from the AbstractCutWithVariables

Specified by:
removeCutVariable in interface CutWithVariables
Parameters:
cutVariable - the CutVariable to remove

getCutVariables

public ArrayList getCutVariables()
Get the list of CutVariables

Specified by:
getCutVariables in interface CutWithVariables
Returns:
the list of CutVariables

getCutVariable

public CutVariable getCutVariable(int nCutVar)
Get the nth CutVariable

Specified by:
getCutVariable in interface CutWithVariables
Parameters:
nCutVar - the index of the desired CutVariable
Returns:
the nth CutVariables

getNCutVariables

public int getNCutVariables()
Get the number of CutVariables

Specified by:
getNCutVariables in interface CutWithVariables
Returns:
the number of CutVariables

cutVarValueChanged

public void cutVarValueChanged(CutChangedEvent cutChangedEvent)
Invoked when the CutVariable has changed the current value

Specified by:
cutVarValueChanged in interface CutVariableListener
Parameters:
cutChangedEvent - the event describing the change
See Also:
cutVariableListener#cutVarValueChanged( CutChangedEvent )

cutVarRangeChanged

public void cutVarRangeChanged(CutChangedEvent cutChangedEvent)
Invoked when the CutVariable range has changed

Specified by:
cutVarRangeChanged in interface CutVariableListener
Parameters:
cutChangedEvent - the event describing the change
See Also:
cutVariableListener#cutVarRangeChanged( CutChangedEvent )

cutVarStateChanged

public void cutVarStateChanged(CutChangedEvent cutChangedEvent)
Invoked when the CutVariable state has changed

Specified by:
cutVarStateChanged in interface CutVariableListener
Parameters:
cutChangedEvent - the event describing the change
See Also:
cutVariableListener#cutVarStateChanged( CutChangedEvent )


Copyright © 2013. All Rights Reserved.