|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--com.sas.awt.ComponentVisualComponent
|
+--com.sas.awt.Component
|
+--com.sas.visuals.IconView
|
+--com.sas.visuals.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 Form| Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field 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 |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AnimationIconView()
Default Constructor |
|
AnimationIconView(AnimationIconInterface animIcon)
Constructor that sets the AnimationIconInterface property |
|
| Method Summary | |
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 class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 Object clone()
throws CloneNotSupportedException
clone in interface PublicClonableclone in class ComponentVisualComponentCloneNotSupportedException - if it component cannot be cloned.protected AnimationIconView createIconObject(AnimationIconView icon)
public void fireAlarm(AlarmEvent e)
fireAlarm in interface AlarmListenere - 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 class Componentcom.sas.awt.ComponentVisualComponentComponentInterface.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||