|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.AnimationIconView
public class AnimationIconView
AnimationIconView is a component that animates an AnimationIconInterface object.
It increments or decrements an AnimationIconInterface
object when an alarm is fired and paints the image in that state.
Notes:
AnimationIconInterface
,
Serialized FormField Summary | |
---|---|
protected AlarmInterface |
alarm
AlarmInterface that will listen for alarm events and trigger repaints for animation |
protected AnimationIconInterface |
animationIcon
AnimationIconInterface object which holds all the animation information |
protected boolean |
decrement
boolean flag indicating whether to decrement the AnimationIconInterface |
protected boolean |
running
boolean flag that indicated whether or not the animation is running |
Fields inherited from class com.sas.visuals.IconView |
---|
icon |
Fields inherited from class com.sas.awt.Component |
---|
RB_KEY |
Constructor Summary | |
---|---|
AnimationIconView()
Default Constructor |
|
AnimationIconView(AnimationIconInterface animIcon)
Constructor that sets the AnimationIconInterface property |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a AnimationIcon clone of the original AnimationIcon component. |
protected AnimationIconView |
createIconObject(AnimationIconView icon)
Creates a new Instance of the AnimationIcon. |
void |
fireAlarm(AlarmEvent e)
Called when an AlarmEvent is fired by the AlarmInterface object. |
AlarmInterface |
getAlarm()
Returns the AlarmInterface object being listened to. |
AnimationIconInterface |
getAnimationIcon()
Returns the AnimationIconInterface object being painted by the AnimationIconView. |
boolean |
isDecrement()
Returns whether the AnimationIconInterface object is being decremented or not. |
boolean |
isRunning()
Returns true if the alarm is running. |
void |
setAlarm(AlarmInterface a)
Sets the alarm to send off the events that will increment/decrement and paint the AnimationIconInterface object. |
void |
setAnimationIcon(AnimationIconInterface animIcon)
Sets the AnimationIconInterface object to be incremented/decremented and painted. |
void |
setDecrement(boolean d)
Sets the AnimationIconInterface object to be decremented when the alarm fires. |
void |
setDefaultValues()
Sets the default internal values for the AnimationIconView. |
void |
setRunning(boolean r)
Sets the state of the alarm that runs the animation. |
void |
start()
Start the animation. |
void |
stop()
Stop the animation. |
Methods inherited from class com.sas.visuals.IconView |
---|
computePreferredSize, getIcon, getInsets, paint, paint, setIcon, update |
Methods inherited from class com.sas.awt.Component |
---|
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, getMinimumSize, setDefaultHeight, setDefaultWidth |
Methods inherited from interface com.sas.visuals.IconInterface |
---|
getPreferredSize |
Field Detail |
---|
protected AlarmInterface alarm
protected AnimationIconInterface animationIcon
protected boolean running
protected boolean decrement
AnimationIconInterface
Constructor Detail |
---|
public AnimationIconView()
public AnimationIconView(AnimationIconInterface animIcon)
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface com.sas.PublicClonable
clone
in class ComponentVisualComponent
java.lang.CloneNotSupportedException
- if it component cannot be cloned.protected AnimationIconView createIconObject(AnimationIconView icon)
public void fireAlarm(AlarmEvent e)
fireAlarm
in interface AlarmListener
e
- the AlarmEvent firedAlarmListener
,
AlarmListener.fireAlarm( com.sas.util.AlarmEvent )
public AlarmInterface getAlarm()
setAlarm(com.sas.util.AlarmInterface)
public AnimationIconInterface getAnimationIcon()
setAnimationIcon(com.sas.visuals.AnimationIconInterface)
public boolean isRunning()
setRunning(boolean)
public boolean isDecrement()
setDecrement(boolean)
public void setAlarm(AlarmInterface a)
a
- the alarm that causes the AnimationIconInterface object to be painted.getAlarm()
public void setAnimationIcon(AnimationIconInterface animIcon)
animIcon
- the AnimationIconInterface object animated by this class.getAnimationIcon()
public void setDecrement(boolean d)
d
- true to decrement animationIcon; false to incrementisDecrement()
public void setDefaultValues()
setDefaultValues
in interface VisualInterface
setDefaultValues
in interface com.sas.ComponentInterface
setDefaultValues
in class Component
ComponentInterface.setDefaultValues()
public void setRunning(boolean r)
r
- true will start the animation; false will stop the animationisRunning()
public void start()
stop()
public void stop()
start()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |