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

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

public abstract class AbstractCut
extends Object
implements Cut

AbstractCut abstract implementation of Cut

Version:
$Id: AbstractCut.java 13893 2011-09-28 23:42:34Z tonyj $
Author:
The FreeHEP team @ SLAC.

Field Summary
protected  EventListenerList cutListeners
           
 
Fields inherited from interface org.freehep.jas.extension.tupleExplorer.cut.Cut
CUT_DISABLED, CUT_DISABLED_INVERTED, CUT_ENABLED, CUT_INVERTED
 
Constructor Summary
AbstractCut(String cutName)
          The default constructor
 
Method Summary
 void addCutListener(CutListener cutListener)
          Add a CutListener to the AbstractCut
protected  void fireCutChanged()
          Fire a CutChangedEvent when the cut's accept<\code> condition is changed.
 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 setCutDataSet(CutDataSet cutDataSet)
          Set the CutDataSet on which the cut is applied
 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 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
 

Field Detail

cutListeners

protected EventListenerList cutListeners
Constructor Detail

AbstractCut

public AbstractCut(String cutName)
The default constructor

Parameters:
cutName - the name of the cut
Method Detail

getName

public String getName()
Get the name of the AbstractCut

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

setName

public void setName(String cutName)
Set the name of the AbstractCut

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

getState

public int getState()
Get the state of the AbstractCut.

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

setState

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

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

isEnabled

public boolean isEnabled()
Check if the Cut is enabled

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

isInverted

public boolean isInverted()
Check if the Cut is inverted

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

getCutDataSet

public CutDataSet getCutDataSet()
Get the CutDataSet on which the cut is applied

Specified by:
getCutDataSet in interface Cut
Returns:
the CutDataSet.

setCutDataSet

public void setCutDataSet(CutDataSet cutDataSet)
Set the CutDataSet on which the cut is applied

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

addCutListener

public void addCutListener(CutListener cutListener)
Add a CutListener to the AbstractCut

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

removeCutListener

public void removeCutListener(CutListener cutListener)
Remove a CutListener from the AbstractCut

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

fireCutChanged

protected void fireCutChanged()
Fire a CutChangedEvent when the cut's accept<\code> condition is changed. Invoke the cutStateChanged<\code> method of all the listeners

See Also:
CutListener.cutChanged( CutChangedEvent )

getCutListeners

public EventListenerList getCutListeners()
Get the list of CutListeners listening to this Cut

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

getCutGUIListener

public CutListener getCutGUIListener()
Get the CutListener internal component of this Cut.

Specified by:
getCutGUIListener in interface Cut
Returns:
the CutListener

invert

public void invert()
Invert the cut.

Specified by:
invert in interface Cut

setDisabled

public void setDisabled(boolean isDisabled)
Disable the cut.

Specified by:
setDisabled in interface Cut


Copyright © 2013. All Rights Reserved.