|
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 FormField 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 AnimationIconView
public int getDirection()
Direction
,
setDirection(int)
public int getTextJustification()
com.sas.geometry.Orientations
setTextJustification(int)
,
Orientations
public int getHorizontalContentAlignment()
com.sas.geometry.Orientations
setHorizontalContentAlignment(int)
,
Orientations
public int getVerticalContentAlignment()
com.sas.geometry.Orientations
setVerticalContentAlignment(int)
,
Orientations
public int getHorizontalTextAlignment()
com.sas.geometry.Orientations
setHorizontalTextAlignment(int)
,
Orientations
public int getVerticalTextAlignment()
com.sas.geometry.Orientations
setVerticalTextAlignment(int)
,
Orientations
public int getHorizontalImageAlignment()
com.sas.geometry.Orientations
setHorizontalImageAlignment(int)
,
Orientations
public int getVerticalImageAlignment()
com.sas.geometry.Orientations
setVerticalImageAlignment(int)
,
Orientations
public 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.StringDataInterface
setText(java.lang.String)
,
StringDataInterface
public 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()
,
Orientations
public void setHorizontalContentAlignment(int align)
align
- a horizontal alignment value: LEFT, RIGHT, or CENTER.getHorizontalContentAlignment()
,
Orientations
public void setVerticalContentAlignment(int align)
align
- a vertical alignment value: TOP, BOTTOM, or CENTER.getVerticalContentAlignment()
,
Orientations
public void setHorizontalTextAlignment(int align)
align
- a horizontal alignment value: LEFT, RIGHT, or CENTER.getHorizontalTextAlignment()
,
Orientations
public void setVerticalTextAlignment(int align)
align
- a vertical alignment value: TOP, BOTTOM, or CENTER.getVerticalTextAlignment()
,
Orientations
public void setHorizontalImageAlignment(int align)
align
- a horizontal alignment value: LEFT, RIGHT, or CENTER.getHorizontalImageAlignment()
,
Orientations
public void setVerticalImageAlignment(int align)
align
- a vertical alignment value: TOP, BOTTOM, or CENTER.getVerticalImageAlignment()
,
Orientations
public 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.StringDataInterface
txt
- the text to be displayed in the MarqueegetText()
,
StringDataInterface
public 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 VisualInterface
setDefaultValues
in interface com.sas.ComponentInterface
setDefaultValues
in class AnimationIconView
ComponentInterface.setDefaultValues()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |