|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.visuals.Marquee
public class Marquee
Marquee is a class that increments and decrements a MarqueeIcon
object when an alarm is fired and paints the MarqueeIcon in that state.
Notes:
start() automatically resets the AnimationIconInterface
object to its initial state.
AnimationIconInterface,
MarqueeIcon,
Serialized Form| Field Summary | |
|---|---|
protected MarqueeIcon |
marqueeIcon
The MarqueeIcon that is being manipulated |
static java.lang.String |
RB_KEY
|
| Fields inherited from class com.sas.visuals.AnimationIconView |
|---|
alarm, animationIcon, decrement, running |
| Fields inherited from class com.sas.visuals.IconView |
|---|
icon |
| Constructor Summary | |
|---|---|
Marquee()
Default constructor. |
|
| Method Summary | |
|---|---|
protected AnimationIconView |
createIconObject(AnimationIconView icon)
Creates a clone of itself and sets the properties of the MarqueeIcon, which is part of the AnimationIconView object. |
static int |
getDefaultHeight()
Returns the default height in pixels |
static int |
getDefaultWidth()
Returns the default width in pixels |
int |
getDirection()
Gets the direction of the content movement. |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
Returns information used by the com.sas.beans.Introspector to
augment the automatically introspected information about this Marquee. |
int |
getHorizontalContentAlignment()
Gets the horizontal content alignment. |
int |
getHorizontalImageAlignment()
Gets the horizontal image alignment. |
int |
getHorizontalTextAlignment()
Gets the horizontal text alignment. |
int |
getImageAnimationSpeed()
Gets the image animation speed in. |
java.lang.String[] |
getImageSequence()
Gets the sequence of image file names for the images to be displayed on the Marquee. |
int |
getImageTextGap()
Gets the gap between the text and the image. |
java.net.URL[] |
getImageURLSequence()
Return the sequence of file names for the images to be displayed. |
int |
getScrollingSpeed()
Gets the speed at which the contents scroll across the Marquee component. |
java.lang.String |
getText()
Gets the text displayed in the marquee. |
int |
getTextJustification()
Gets the justification of the text. |
int |
getTextPosition()
Gets the position of the text relative to the image. |
int |
getVerticalContentAlignment()
Gets the vertical content alignment. |
int |
getVerticalImageAlignment()
Gets the vertical image alignment. |
int |
getVerticalTextAlignment()
Gets the vertical text alignment. |
boolean |
isSourceAppletRelative()
Returns whether or not the image sources are relative to the lacation of where the applet is loaded from. |
static void |
setDefaultHeight(int newHeight)
Sets the default height in pixels |
void |
setDefaultValues()
Sets the default internal values for the Marquee. |
static void |
setDefaultWidth(int newWidth)
Sets the default width in pixels |
void |
setDirection(int d)
Sets the direction to scroll the Marquee. |
void |
setHorizontalContentAlignment(int align)
Sets the horizontal content alignment. |
void |
setHorizontalImageAlignment(int align)
Sets the horizontal image alignment. |
void |
setHorizontalTextAlignment(int align)
Sets the horizontal text alignment. |
void |
setImageAnimationSpeed(int animateSpeed)
Sets the image animation speed. |
void |
setImageSequence(java.lang.String[] sources)
Sets the sequence of image file names for the images to be displayed on the Marquee. |
void |
setImageTextGap(int g)
Sets the gap between the text and the image. |
void |
setImageURLSequence(java.net.URL[] sources)
Sets the sequence of file names for the images to be displayed. |
void |
setScrollingSpeed(int speed)
Sets the speed at which the contents scroll across the Marquee component. |
void |
setSourceAppletRelative(boolean b)
If true, assumes that the path is relative to the directory where the applet is loaded from, else full path assumed. |
void |
setText(java.lang.String txt)
Sets the text displayed in the marquee. |
void |
setTextJustification(int j)
Sets the text justification. |
void |
setTextPosition(int pos)
Sets the position of the text relative to the image. |
void |
setVerticalContentAlignment(int align)
Sets the vertical content alignment. |
void |
setVerticalImageAlignment(int align)
Sets the vertical image alignment. |
void |
setVerticalTextAlignment(int align)
Sets the vertical text alignment. |
| Methods inherited from class com.sas.visuals.AnimationIconView |
|---|
clone, fireAlarm, getAlarm, getAnimationIcon, isDecrement, isRunning, setAlarm, setAnimationIcon, setDecrement, setRunning, start, stop |
| Methods inherited from class com.sas.visuals.IconView |
|---|
computePreferredSize, getIcon, getInsets, paint, paint, setIcon, update |
| Methods inherited from class com.sas.awt.Component |
|---|
getMinimumSize |
| Methods inherited from interface com.sas.visuals.IconInterface |
|---|
getPreferredSize |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
protected MarqueeIcon marqueeIcon
MarqueeIcon that is being manipulated
| Constructor Detail |
|---|
public Marquee()
| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
com.sas.beans.Introspector to
augment the automatically introspected information about this Marquee.
public static int getDefaultHeight()
setDefaultHeight(int)public static int getDefaultWidth()
setDefaultWidth(int)public static void setDefaultHeight(int newHeight)
newHeight - the desired default height in pixelsgetDefaultHeight()public static void setDefaultWidth(int newWidth)
newWidth - the desired default width in pixelssetDefaultWidth(int)protected AnimationIconView createIconObject(AnimationIconView icon)
createIconObject in class AnimationIconViewpublic int getDirection()
Direction,
setDirection(int)public int getTextJustification()
com.sas.geometry.Orientations
setTextJustification(int),
Orientationspublic int getHorizontalContentAlignment()
com.sas.geometry.Orientations
setHorizontalContentAlignment(int),
Orientationspublic int getVerticalContentAlignment()
com.sas.geometry.Orientations
setVerticalContentAlignment(int),
Orientationspublic int getHorizontalTextAlignment()
com.sas.geometry.Orientations
setHorizontalTextAlignment(int),
Orientationspublic int getVerticalTextAlignment()
com.sas.geometry.Orientations
setVerticalTextAlignment(int),
Orientationspublic int getHorizontalImageAlignment()
com.sas.geometry.Orientations
setHorizontalImageAlignment(int),
Orientationspublic int getVerticalImageAlignment()
com.sas.geometry.Orientations
setVerticalImageAlignment(int),
Orientationspublic int getImageAnimationSpeed()
setImageAnimationSpeed(int)public int getImageTextGap()
setImageTextGap(int)public int getTextPosition()
setTextPosition(int)public java.lang.String getText()
getText in interface com.sas.lang.StringDataInterfacesetText(java.lang.String),
StringDataInterfacepublic int getScrollingSpeed()
setScrollingSpeed(int)public java.lang.String[] getImageSequence()
setImageSequence(java.lang.String[])public boolean isSourceAppletRelative()
public void setDirection(int d)
d - one of the Direction values.
The values can be: BOTTOM_TO_TOP, LEFT_TO_RIGHT,
RIGHT_TO_LEFT, or TOP_TO_BOTTOMDirection,
getDirection()public void setSourceAppletRelative(boolean b)
b - the boolean value for whether or not image sources whould be relative
to the appletisSourceAppletRelative()public void setTextJustification(int j)
j - one of LEFT, RIGHT, or CENTER.getTextJustification(),
Orientationspublic void setHorizontalContentAlignment(int align)
align - a horizontal alignment value: LEFT, RIGHT, or CENTER.getHorizontalContentAlignment(),
Orientationspublic void setVerticalContentAlignment(int align)
align - a vertical alignment value: TOP, BOTTOM, or CENTER.getVerticalContentAlignment(),
Orientationspublic void setHorizontalTextAlignment(int align)
align - a horizontal alignment value: LEFT, RIGHT, or CENTER.getHorizontalTextAlignment(),
Orientationspublic void setVerticalTextAlignment(int align)
align - a vertical alignment value: TOP, BOTTOM, or CENTER.getVerticalTextAlignment(),
Orientationspublic void setHorizontalImageAlignment(int align)
align - a horizontal alignment value: LEFT, RIGHT, or CENTER.getHorizontalImageAlignment(),
Orientationspublic void setVerticalImageAlignment(int align)
align - a vertical alignment value: TOP, BOTTOM, or CENTER.getVerticalImageAlignment(),
Orientationspublic void setImageAnimationSpeed(int animateSpeed)
animateSpeed - the speed the images are being switchedgetImageAnimationSpeed()public void setImageTextGap(int g)
g - the pixel value space between the text and the image.getImageTextGap()public void setText(java.lang.String txt)
setText in interface com.sas.lang.StringDataInterfacetxt - the text to be displayed in the MarqueegetText(),
StringDataInterfacepublic void setTextPosition(int pos)
pos - the text position: TOP, BOTTOM, LEFT, or RIGHT.getTextPosition()public void setScrollingSpeed(int speed)
speed - the content scrolling speed.getScrollingSpeed()public void setImageSequence(java.lang.String[] sources)
sources - sequence of image file namesgetImageSequence()public java.net.URL[] getImageURLSequence()
setImageURLSequence(java.net.URL[])public void setImageURLSequence(java.net.URL[] sources)
sources - an array of image file namesgetImageURLSequence()public void setDefaultValues()
setDefaultValues in interface VisualInterfacesetDefaultValues in interface com.sas.ComponentInterfacesetDefaultValues in class AnimationIconViewComponentInterface.setDefaultValues()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||