com.sun.electric.plugins.j3d.utils
Class J3DAlpha

java.lang.Object
  extended by Alpha
      extended by com.sun.electric.plugins.j3d.utils.J3DAlpha
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener

public class J3DAlpha
extends Alpha
implements javax.swing.event.ChangeListener

Alpha class to control motion with JSlider class Idea taken from Selman's book

Version:
0.1
Author:
Gilda Garreton

Constructor Summary
J3DAlpha(int speed, boolean mode, float value)
           
 
Method Summary
 boolean getAutoMode()
          Method to retrieve auto mode flag
 void setAlphaSpeed(int speed)
           
 void setAutoMode(boolean mode)
          Set AutoMode flag according to boolean
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 float value(long time)
          Overwrites original Alpha's value function to consider manual mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J3DAlpha

public J3DAlpha(int speed,
                boolean mode,
                float value)
Method Detail

setAlphaSpeed

public void setAlphaSpeed(int speed)

setAutoMode

public void setAutoMode(boolean mode)
Set AutoMode flag according to boolean

Parameters:
mode - True if interpolator runs automatically

getAutoMode

public boolean getAutoMode()
Method to retrieve auto mode flag

Returns:

value

public float value(long time)
Overwrites original Alpha's value function to consider manual mode

Parameters:
time -
Returns:

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
e -