com.sas.visuals
Class ImageSequence

com.sas.visuals.ImageSequence
All Implemented Interfaces:
com.sas.awt.print.PrintableInterface, VisualInterface, com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.collection.ContentsChangedListener, com.sas.ComponentInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, ResourceConsumerInterface, com.sas.PublicClonable, AlarmListener, com.sas.ViewInterface, com.sas.visuals.IconInterface, MultipleValueEventSourceInterface, com.sas.visuals.PainterInterface, ResizeToFitInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Icon

Deprecated.

public class ImageSequence
implements AlarmListener, java.beans.PropertyChangeListener, com.sas.collection.ContentsChangedListener

An ImageSequence displays a sequence of Images timed to display after an AlarmEvent fired from the Alarm property.


 
Properties
 o
Name alarm
Type com.sas.util.Alarm
Default value
Short description Alarm object to fire events when image should change.
Description Alarm object to fire events when image should change.
 o
Name sequence
Type java.lang.String[]
Default value
Short description Source strings for the sequence of images to display.
Description Source strings for the sequence of images to display.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.visuals.ImageView
absoluteSource, AUTO_SCALE, currentInsets, defaultImageLoaded, disabledImage, dispImage, displayMode, filteredImage, image, imageWait, LAST_DISPLAY_MODE, missingImage, NO_SCALE, oldHeight, oldWidth, RB_KEY, relativeSource, relativeSourceClass, relativeSourceClassName, resourceLocator, SCALE, SCALE_HEIGHT, SCALE_WIDTH, source, sourceAppletRelative, sourceURL, TILE
 
Constructor Summary
ImageSequence()
          Deprecated. Default constructor that adds itself as a listener to the alarm property and creates a default Alarm that fires every 0.5 seconds.
ImageSequence(Alarm alarm)
          Deprecated. Constructor that sets the Alarm to the alarm parameter passed in and adds itself as a listener to the alarm.
ImageSequence(Alarm alarm, java.lang.String[] sources)
          Deprecated. Constructor that sets the alarm and the sequence of images to be displayed.
ImageSequence(java.lang.String[] sources)
          Deprecated. Constructor that sets the Sequence of images to the strings provided.
 
Method Summary
 void contentsChanged(com.sas.collection.ContentsChangedEvent evt)
          Deprecated. Called when the contents of the model have changed.
 void fireAlarm(AlarmEvent evt)
          Deprecated. Alarm event handler that is called when a different image in the sequence should be displayed.
 Alarm getAlarm()
          Deprecated. Return the Alarm object that sends out the alarms when the image should be switched.
static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
          Deprecated.  
 java.util.Vector getRequiredInterfaces()
          Deprecated. Returns the required interfaces Vector for this component.
 java.lang.String[] getSequence()
          Deprecated. Return the source Strings of the sequence of images to display.
 void initialize()
          Deprecated. Create and attach a model to the Label if no model is currently attached.
 void propertyChange(java.beans.PropertyChangeEvent event)
          Deprecated. Handle PropertyChangeEvents from the model.
 void refresh(com.sas.ModelInterface model)
          Deprecated. Refresh the image displayed based on the model changing.
protected  void refreshSequence(com.sas.collection.StaticOrderedCollectionInterface model)
          Deprecated.  
 void setAlarm(Alarm newAlarm)
          Deprecated. Set the Alarm to be used to fire events and change the image displayed.
 void setSequence(java.lang.String[] sources)
          Deprecated. Set the source sequence of images to be displayed.
 void start()
          Deprecated. Start the ImageSequence display (Starts the Alarm object property).
 void stop()
          Deprecated. Stop the ImageSequence display (Stops the Alarm object property).
 
Methods inherited from class com.sas.visuals.ImageView
addNotify, attachModel, clone, computePreferredSize, createDisabledImage, createDisplayImage, createFilteredImage, createTiledImage, detachModel, getDefaultHeight, getDefaultWidth, getDisplayMode, getIconHeight, getIconWidth, getImage, getImageFilter, getInsets, getMediaTracker, getMinimumSize, getMissingFileImage, getRelativeSourceClass, getResourceLocator, getSource, getSourceAbsolute, getSourceRelative, getSourceURL, imageExists, isImageLoadWait, isResizeToFit, isSourceAppletRelative, loadDisplayImage, paint, paint, paintIcon, print, refresh, resizeToFit, setBounds, setDefaultHeight, setDefaultValues, setDefaultWidth, setDisplayMode, setImage, setImageFilter, setImageLoadWait, setInsets, setRelativeSourceClass, setResizeToFit, setResourceLocator, setSource, setSourceAbsolute, setSourceAppletRelative, setSourceRelative, setSourceURL, validateDisplayMode
 
Methods inherited from class com.sas.awt.ComponentVisualComponent
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachView, detachView, dumpComponent, firePropertyChange, firePropertyChange, fireVetoableChange, getBackgroundColor, getBorder, getComponentDescription, getComponentSupportInfo, getEventMethod, getEventValues, getFont, getForegroundColor, getHeight, getHorizontalPosition, getLinkInfo, getModelInterface, getPageBounds, getPreferredSize, getPrePainter, getPrintOptionsPanel, getVerticalPosition, getViewInterfaceSupportInfo, getVisualInterfaceSupportInfo, getWidth, initializeComponent, isDesignTime, isEnabled, isFocus, isLinked, isTransparent, isVisible, pageExists, printFinalize, printInitialize, queryLinks, queryLinks, removeAllLinks, removeInterfaceTraps, removeLink, removePropertyChangeListener, removeVetoableChangeListener, setBackgroundColor, setBorder, setComponentDescription, setComponentSupportInfo, setEnabled, setFocus, setFont, setForegroundColor, setHeight, setHorizontalPosition, setLinkInfo, setModelInterface, setPreferredSize, setPrePainter, setRequiredInterfaces, setTransparent, setVerticalPosition, setViewInterfaceSupportInfo, setVisible, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate, supportsListenerInterface, supportsRequiredInterfaces, trapInterfaceEvents, update, validateObject
 
Methods inherited from interface com.sas.visuals.IconInterface
getPreferredSize
 

Constructor Detail

ImageSequence

public ImageSequence()
Deprecated. 
Default constructor that adds itself as a listener to the alarm property and creates a default Alarm that fires every 0.5 seconds.


ImageSequence

public ImageSequence(Alarm alarm)
Deprecated. 
Constructor that sets the Alarm to the alarm parameter passed in and adds itself as a listener to the alarm.


ImageSequence

public ImageSequence(java.lang.String[] sources)
Deprecated. 
Constructor that sets the Sequence of images to the strings provided.


ImageSequence

public ImageSequence(Alarm alarm,
                     java.lang.String[] sources)
Deprecated. 
Constructor that sets the alarm and the sequence of images to be displayed.

Method Detail

getExtendedBeanInfo

public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
Deprecated. 

contentsChanged

public void contentsChanged(com.sas.collection.ContentsChangedEvent evt)
Deprecated. 
Called when the contents of the model have changed.

Specified by:
contentsChanged in interface com.sas.collection.ContentsChangedListener
Parameters:
evt - the ContentsChangedEvent from the model that changed.

fireAlarm

public void fireAlarm(AlarmEvent evt)
Deprecated. 
Alarm event handler that is called when a different image in the sequence should be displayed.

Specified by:
fireAlarm in interface AlarmListener
Parameters:
evt - the AlarmEvent that has triggered.

getAlarm

public Alarm getAlarm()
Deprecated. 
Return the Alarm object that sends out the alarms when the image should be switched.


getRequiredInterfaces

public java.util.Vector getRequiredInterfaces()
Deprecated. 
Returns the required interfaces Vector for this component.

Specified by:
getRequiredInterfaces in interface com.sas.ViewInterface
Overrides:
getRequiredInterfaces in class ImageView
Returns:
the required interfaces Vector for this component.
See Also:
ViewInterface.getRequiredInterfaces()

getSequence

public java.lang.String[] getSequence()
Deprecated. 
Return the source Strings of the sequence of images to display.


initialize

public void initialize()
Deprecated. 
Create and attach a model to the Label if no model is currently attached.

Specified by:
initialize in interface com.sas.ComponentInterface
Overrides:
initialize in class ComponentVisualComponent
See Also:
ComponentInterface.initialize()

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Deprecated. 
Description copied from class: ImageView
Handle PropertyChangeEvents from the model.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class ImageView
Parameters:
event - The event from the model indicating what property changed.
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

refresh

public void refresh(com.sas.ModelInterface model)
Deprecated. 
Description copied from class: ImageView
Refresh the image displayed based on the model changing.

Specified by:
refresh in interface com.sas.ViewInterface
Overrides:
refresh in class ImageView
Parameters:
model - the model that has changed and needs to be refreshed
See Also:
ViewInterface.refresh(com.sas.ModelInterface)

refreshSequence

protected void refreshSequence(com.sas.collection.StaticOrderedCollectionInterface model)
Deprecated. 

setAlarm

public void setAlarm(Alarm newAlarm)
Deprecated. 
Set the Alarm to be used to fire events and change the image displayed.


setSequence

public void setSequence(java.lang.String[] sources)
Deprecated. 
Set the source sequence of images to be displayed.


start

public void start()
Deprecated. 
Start the ImageSequence display (Starts the Alarm object property).


stop

public void stop()
Deprecated. 
Stop the ImageSequence display (Stops the Alarm object property).




Copyright © 2009 SAS Institute Inc. All Rights Reserved.