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

java.lang.Object
  extended by org.freehep.jas.extension.tupleExplorer.cut.AbstractCut
      extended by org.freehep.jas.extension.tupleExplorer.cut.CutSet
All Implemented Interfaces:
Cut
Direct Known Subclasses:
MutableTupleTreeCutSet

public class CutSet
extends AbstractCut

Version:
$Id: CutSet.java 13893 2011-09-28 23:42:34Z tonyj $
Author:
tonyj

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
CutSet(String name)
          Creates a new CutSet
 
Method Summary
 boolean accept(hep.aida.ref.tuple.FTupleCursor cutDataCursor)
          Apply the cut to the CutData.
 void addCut(Cut cut)
          Add a new cut to this CutSet
 void addListDataListener(ListDataListener listDataListener)
          Add a ListDataListener
 Cut getCut(int index)
          Get the i-th cut belonging to the CutSet
 int getCutState(Cut cut)
          Get the state of one of the cuts belonging to the CutSet
 int getNCuts()
          Get the number of cuts belonging to the CutSet
 void removeCut(Cut cut)
          Remove a cut from this CutSet
 void removeListDataListener(ListDataListener listDataListener)
          Remove a ListDataListener
 void setCutState(Cut cut, int state)
          Change the state of one of the cuts belonging to the CutSet
 
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
 

Constructor Detail

CutSet

public CutSet(String name)
Creates a new CutSet

Parameters:
name - the name of the CutSet
Method Detail

accept

public boolean accept(hep.aida.ref.tuple.FTupleCursor cutDataCursor)
Apply the cut to the CutData.

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

addCut

public void addCut(Cut cut)
Add a new cut to this CutSet

Parameters:
cut - the cut to add

removeCut

public void removeCut(Cut cut)
Remove a cut from this CutSet

Parameters:
cut - the cut to be removed

setCutState

public void setCutState(Cut cut,
                        int state)
Change the state of one of the cuts belonging to the CutSet

Parameters:
cut - the cut whose state has to be changed
state - the new cut state

getCutState

public int getCutState(Cut cut)
Get the state of one of the cuts belonging to the CutSet

Parameters:
cut - the cut whose state is returned
Returns:
the cut's state

getNCuts

public int getNCuts()
Get the number of cuts belonging to the CutSet

Returns:
the number of cuts

getCut

public Cut getCut(int index)
Get the i-th cut belonging to the CutSet

Parameters:
index - the cut's index in the CutSet
Returns:
the i-th cut

addListDataListener

public void addListDataListener(ListDataListener listDataListener)
Add a ListDataListener

Parameters:
listDataListener - the ListDataListener to add

removeListDataListener

public void removeListDataListener(ListDataListener listDataListener)
Remove a ListDataListener

Parameters:
listDataListener - the ListDataListener to remove


Copyright © 2013. All Rights Reserved.