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

java.lang.Object
  extended by javax.swing.DefaultBoundedRangeModel
      extended by org.freehep.jas.extension.tupleExplorer.cut.CutVariableSliderModel
All Implemented Interfaces:
Serializable, BoundedRangeModel, CutVariableGUI

public class CutVariableSliderModel
extends DefaultBoundedRangeModel
implements CutVariableGUI

Version:
$Id: CutVariableSliderModel.java 13893 2011-09-28 23:42:34Z tonyj $
Author:
The FreeHEP team @ SLAC.
See Also:
Serialized Form

Field Summary
static int CENTER_SLIDER
           
static int LEFT_SLIDER
          There are three types of sliders
static int RIGHT_SLIDER
           
 
Fields inherited from class javax.swing.DefaultBoundedRangeModel
changeEvent, listenerList
 
Constructor Summary
CutVariableSliderModel(CutVariable cutVar)
          Create a new CutVariableSliderModel object.
CutVariableSliderModel(CutVariable cutVar, int type)
          Create a new CutVariableSliderModel object.
 
Method Summary
 CutVariable getCutVariable()
          Get the Cut that this Panel is a representation of.
 int getType()
          Get the type of this model.
 boolean isEnabled()
          Check if the cutVariable is enabled
 void removeCutVariableListeners()
          When closing the GUI it is important to properly remove all the listeners associated with the CutVariable.
 void setType(int type)
          Set the type of this model.
 
Methods inherited from class javax.swing.DefaultBoundedRangeModel
addChangeListener, fireStateChanged, getChangeListeners, getExtent, getListeners, getMaximum, getMinimum, getValue, getValueIsAdjusting, removeChangeListener, setExtent, setMaximum, setMinimum, setRangeProperties, setValue, setValueIsAdjusting, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEFT_SLIDER

public static final int LEFT_SLIDER
There are three types of sliders

See Also:
Constant Field Values

CENTER_SLIDER

public static final int CENTER_SLIDER
See Also:
Constant Field Values

RIGHT_SLIDER

public static final int RIGHT_SLIDER
See Also:
Constant Field Values
Constructor Detail

CutVariableSliderModel

public CutVariableSliderModel(CutVariable cutVar,
                              int type)
Create a new CutVariableSliderModel object.

Parameters:
cutVar - the cutVariable the model is representing
type - the type of this model

CutVariableSliderModel

public CutVariableSliderModel(CutVariable cutVar)
Create a new CutVariableSliderModel object.

Parameters:
cutVar - the cutVariable the model is representing
Method Detail

getCutVariable

public CutVariable getCutVariable()
Get the Cut that this Panel is a representation of.

Specified by:
getCutVariable in interface CutVariableGUI
Returns:
the Cut

removeCutVariableListeners

public void removeCutVariableListeners()
When closing the GUI it is important to properly remove all the listeners associated with the CutVariable.

Specified by:
removeCutVariableListeners in interface CutVariableGUI

isEnabled

public boolean isEnabled()
Check if the cutVariable is enabled

Returns:
true<\code> if the variable is enabled false<\code> otherwise

setType

public void setType(int type)
Set the type of this model.

Parameters:
type - the type of this model

getType

public int getType()
Get the type of this model.

Returns:
the type of this model


Copyright © 2013. All Rights Reserved.