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

java.lang.Object
  extended by org.freehep.jas.extension.tupleExplorer.cut.CutVariableSynchronization
All Implemented Interfaces:
EventListener, CutVariableListener

public class CutVariableSynchronization
extends Object
implements CutVariableListener

CutVariableSynchronization manages the syncronization of variables.

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

Field Summary
static int SYNCHRONIZED_FIXED
          There are three ways in which two variables can be synchronized
static int SYNCHRONIZED_MAXIMUM
           
static int SYNCHRONIZED_MINIMUM
           
 
Constructor Summary
CutVariableSynchronization()
           
 
Method Summary
 void cutVarRangeChanged(CutChangedEvent cutChangedEvent)
          Invoked when the CutVariable range has changed
 void cutVarStateChanged(CutChangedEvent cutChangedEvent)
          Invoked when the CutVariable state has changed
 void cutVarValueChanged(CutChangedEvent cutChangedEvent)
          Invoked when the CutVariable has changed the current value
protected  void setSyncDiff(double syncDiff)
           
protected  void setSyncScale(double syncScale)
           
protected  void setSyncType(int syncType)
           
protected  double syncDiff()
           
 void synchronize(CutVariable cutVar1, CutVariable cutVar2)
          Synchronize the following CutVariables.
protected  double syncScale()
           
protected  int syncType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNCHRONIZED_FIXED

public static final int SYNCHRONIZED_FIXED
There are three ways in which two variables can be synchronized

See Also:
Constant Field Values

SYNCHRONIZED_MAXIMUM

public static final int SYNCHRONIZED_MAXIMUM
See Also:
Constant Field Values

SYNCHRONIZED_MINIMUM

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

CutVariableSynchronization

public CutVariableSynchronization()
Method Detail

synchronize

public void synchronize(CutVariable cutVar1,
                        CutVariable cutVar2)
Synchronize the following CutVariables.

Parameters:
cutVar1 - the first CutVariable to synchronize
cutVar2 - the second CutVariable to synchronize
syncType - the type of synchronization
syncScale - the scale factor of the synchronization
syncDiff - the difference at which the two variables are synchronized

cutVarValueChanged

public void cutVarValueChanged(CutChangedEvent cutChangedEvent)
Invoked when the CutVariable has changed the current value

Specified by:
cutVarValueChanged in interface CutVariableListener
Parameters:
cutChangedEvent - the event describing the change

cutVarRangeChanged

public void cutVarRangeChanged(CutChangedEvent cutChangedEvent)
Invoked when the CutVariable range has changed

Specified by:
cutVarRangeChanged in interface CutVariableListener
Parameters:
cutChangedEvent - the event describing the change

cutVarStateChanged

public void cutVarStateChanged(CutChangedEvent cutChangedEvent)
Invoked when the CutVariable state has changed

Specified by:
cutVarStateChanged in interface CutVariableListener
Parameters:
cutChangedEvent - the event describing the change

syncDiff

protected double syncDiff()

setSyncDiff

protected void setSyncDiff(double syncDiff)

syncScale

protected double syncScale()

setSyncScale

protected void setSyncScale(double syncScale)

syncType

protected int syncType()

setSyncType

protected void setSyncType(int syncType)


Copyright © 2013. All Rights Reserved.