org.freehep.jas.extension.tupleExplorer.mutableTuple
Class MutableTupleTreeCut

java.lang.Object
  extended by org.freehep.jas.extension.tupleExplorer.cut.AbstractCut
      extended by org.freehep.jas.extension.tupleExplorer.mutableTuple.MutableTupleTreeCut
All Implemented Interfaces:
Cut

public class MutableTupleTreeCut
extends AbstractCut

Author:
The FreeHEP team @ SLAC.

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
MutableTupleTreeCut()
           
MutableTupleTreeCut(Cut cut, org.freehep.jas.plugin.tree.FTreePath path)
           
 
Method Summary
 boolean accept(hep.aida.ref.tuple.FTupleCursor cutDataCursor)
          Apply the cut to the CutDataSet.
 void addCutListener(CutListener cutListener)
          Add a CutListener to the AbstractCut
 Cut cut()
           
 org.freehep.jas.plugin.tree.FTreePath cutDeepestPath()
          Get the cut's deepest path.
 CutDataSet getCutDataSet()
          Get the CutDataSet on which the cut is applied
 CutListener getCutGUIListener()
          Get the CutListener internal component of this Cut.
 EventListenerList getCutListeners()
          Get the list of CutListeners listening to this Cut
 String getName()
          Get the name of the AbstractCut
 int getState()
          Get the state of the AbstractCut.
 void invert()
          Invert the cut.
 boolean isEnabled()
          Check if the Cut is enabled
 boolean isInverted()
          Check if the Cut is inverted
 void removeCutListener(CutListener cutListener)
          Remove a CutListener from the AbstractCut
 void setCut(Cut cut)
           
 void setCutDataSet(CutDataSet cutDataSet)
          Set the CutDataSet on which the cut is applied
 void setDeepestPath(org.freehep.jas.plugin.tree.FTreePath deepestPath)
           
 void setDisabled(boolean isDisabled)
          Disable the cut.
 void setName(String cutName)
          Set the name of the AbstractCut
 void setState(int cutState)
          Set the state of the AbstractCut.
 
Methods inherited from class org.freehep.jas.extension.tupleExplorer.cut.AbstractCut
fireCutChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableTupleTreeCut

public MutableTupleTreeCut()

MutableTupleTreeCut

public MutableTupleTreeCut(Cut cut,
                           org.freehep.jas.plugin.tree.FTreePath path)
Method Detail

setDeepestPath

public void setDeepestPath(org.freehep.jas.plugin.tree.FTreePath deepestPath)

setCut

public void setCut(Cut cut)

cut

public Cut cut()

accept

public boolean accept(hep.aida.ref.tuple.FTupleCursor cutDataCursor)
Description copied from interface: Cut
Apply the cut to the 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

cutDeepestPath

public org.freehep.jas.plugin.tree.FTreePath cutDeepestPath()
Get the cut's deepest path.


getName

public String getName()
Description copied from class: AbstractCut
Get the name of the AbstractCut

Specified by:
getName in interface Cut
Overrides:
getName in class AbstractCut
Returns:
the name of the AbstractCut

setName

public void setName(String cutName)
Description copied from class: AbstractCut
Set the name of the AbstractCut

Specified by:
setName in interface Cut
Overrides:
setName in class AbstractCut
Parameters:
cutName - the name of the AbstractCut

invert

public void invert()
Description copied from class: AbstractCut
Invert the cut.

Specified by:
invert in interface Cut
Overrides:
invert in class AbstractCut

setDisabled

public void setDisabled(boolean isDisabled)
Description copied from class: AbstractCut
Disable the cut.

Specified by:
setDisabled in interface Cut
Overrides:
setDisabled in class AbstractCut

getState

public int getState()
Description copied from class: AbstractCut
Get the state of the AbstractCut.

Specified by:
getState in interface Cut
Overrides:
getState in class AbstractCut
Returns:
the state of the AbstractCut

setState

public void setState(int cutState)
Description copied from class: AbstractCut
Set the state of the AbstractCut.

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

isEnabled

public boolean isEnabled()
Description copied from class: AbstractCut
Check if the Cut is enabled

Specified by:
isEnabled in interface Cut
Overrides:
isEnabled in class AbstractCut
Returns:
true<\code> if the cut is enabled false<\code> otherwise

isInverted

public boolean isInverted()
Description copied from class: AbstractCut
Check if the Cut is inverted

Specified by:
isInverted in interface Cut
Overrides:
isInverted in class AbstractCut
Returns:
true<\code> if the cut is inverted false<\code> otherwise

getCutDataSet

public CutDataSet getCutDataSet()
Description copied from class: AbstractCut
Get the CutDataSet on which the cut is applied

Specified by:
getCutDataSet in interface Cut
Overrides:
getCutDataSet in class AbstractCut
Returns:
the CutDataSet.

setCutDataSet

public void setCutDataSet(CutDataSet cutDataSet)
Description copied from class: AbstractCut
Set the CutDataSet on which the cut is applied

Specified by:
setCutDataSet in interface Cut
Overrides:
setCutDataSet in class AbstractCut
Parameters:
cutDataSet - the CutDataSet.

addCutListener

public void addCutListener(CutListener cutListener)
Description copied from class: AbstractCut
Add a CutListener to the AbstractCut

Specified by:
addCutListener in interface Cut
Overrides:
addCutListener in class AbstractCut
Parameters:
cutListener - the Listenere to add

removeCutListener

public void removeCutListener(CutListener cutListener)
Description copied from class: AbstractCut
Remove a CutListener from the AbstractCut

Specified by:
removeCutListener in interface Cut
Overrides:
removeCutListener in class AbstractCut
Parameters:
cutListener - the CutListener to remove

getCutListeners

public EventListenerList getCutListeners()
Description copied from class: AbstractCut
Get the list of CutListeners listening to this Cut

Specified by:
getCutListeners in interface Cut
Overrides:
getCutListeners in class AbstractCut
Returns:
the list of CutListeners

getCutGUIListener

public CutListener getCutGUIListener()
Description copied from class: AbstractCut
Get the CutListener internal component of this Cut.

Specified by:
getCutGUIListener in interface Cut
Overrides:
getCutGUIListener in class AbstractCut
Returns:
the CutListener


Copyright © 2013. All Rights Reserved.