hep.wired.cut
Class CutSetEditor

java.lang.Object
  extended by hep.wired.cut.CutSetEditor

public class CutSetEditor
extends Object

GUI elements and logic for editing CutSets.

Version:
$Id: $
Author:
Dmitry Onoprienko

Nested Class Summary
 class CutSetEditor.ActionDelete
           
 class CutSetEditor.ActionNew
           
 
Constructor Summary
CutSetEditor()
           
 
Method Summary
 void add(Cut cut)
          Adds the specified cut.
 void delete(Cut cut)
          Deletes the specified cut.
 Action getActionDelete()
           
 Action getActionLoad()
           
 Action getActionNew()
           
 Action getActionSave()
           
 JButton getActionsButton()
           
 CutEditor getCutEditor()
           
 List<Cut> getCuts()
           
 JTable getCutTable()
           
 JCheckBox getEnableBox()
           
 JCheckBox getInvertBox()
           
 JCheckBox getPassThroughBox()
           
 Cut getSelectedCut()
           
 void setActionDelete(Action action)
           
 void setActionLoad(Action action)
           
 void setActionNew(Action action)
           
 void setActionSave(Action action)
           
 void setCutSet(CutSet cutSet)
          Sets CutSet to be edited.
 void setEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CutSetEditor

public CutSetEditor()
Method Detail

setCutSet

public void setCutSet(CutSet cutSet)
Sets CutSet to be edited. If the CutSet has cuts previously unknown to this editor, adds them. If the CutSet does not have some of the cuts known ti this editor, adds them to the CutSet in disabled state.


setActionNew

public void setActionNew(Action action)

setActionDelete

public void setActionDelete(Action action)

setActionLoad

public void setActionLoad(Action action)

setActionSave

public void setActionSave(Action action)

setEnabled

public void setEnabled(boolean enabled)

getCutEditor

public CutEditor getCutEditor()

getActionNew

public Action getActionNew()

getActionDelete

public Action getActionDelete()

getActionLoad

public Action getActionLoad()

getActionSave

public Action getActionSave()

getEnableBox

public JCheckBox getEnableBox()

getInvertBox

public JCheckBox getInvertBox()

getPassThroughBox

public JCheckBox getPassThroughBox()

getCutTable

public JTable getCutTable()

getActionsButton

public JButton getActionsButton()

getSelectedCut

public Cut getSelectedCut()

getCuts

public List<Cut> getCuts()

delete

public void delete(Cut cut)
Deletes the specified cut. The cut is removed from the list maintained by this editor, and Cut's Cut.remove(hep.wired.cut.Condition) method is called.


add

public void add(Cut cut)
Adds the specified cut. The cut is added to the list maintained by this editor and to the currently edited CutSet. GUI is updated.



Copyright © 1996-2013 FreeHEP. All Rights Reserved.