gr.bluevibe.fire.components
Class FTicker

java.lang.Object
  extended bygr.bluevibe.fire.components.Component
      extended bygr.bluevibe.fire.components.FTicker

public class FTicker
extends Component

FTicket implements j2me ticker functionallity for Panels

Author:
padeler

Constructor Summary
FTicker()
           
FTicker(java.lang.String t)
          Creates a ticker with the given String.
 
Method Summary
 boolean clock()
          Animated components receive clock events in order to update their animation.
 java.lang.String getText()
           
 boolean isAnimated()
          If a componets states that it is animated, it will receive periodically clock events in order to update its animation.
 void paint(javax.microedition.lcdui.Graphics g)
          Paint is called by the container of the component to allow it to draw itself on Graphics g The drawable area on g is (0,0,width,height).
 void setText(java.lang.String t)
          Set the text of the ticker.
 void validate()
          A validate event requests from the component to recalculate its internal properties suck as width/height etc.
 
Methods inherited from class gr.bluevibe.fire.components.Component
addCommand, equals, fireValidateEvent, generateEvent, getHeight, getMinHeight, getMinWidth, getWidth, isSelected, isTraversable, keyEvent, pointerEvent, setCommandListener, setContainerCurrent, setCurrent, setHeight, setMinHeight, setMinWidth, setSelected, setWidth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTicker

public FTicker(java.lang.String t)
Creates a ticker with the given String.

Parameters:
t - the scrolling String.

FTicker

public FTicker()
Method Detail

getText

public java.lang.String getText()

setText

public void setText(java.lang.String t)
Set the text of the ticker.

Parameters:
t -

isAnimated

public boolean isAnimated()
Description copied from class: Component
If a componets states that it is animated, it will receive periodically clock events in order to update its animation.

Overrides:
isAnimated in class Component
Returns:

paint

public void paint(javax.microedition.lcdui.Graphics g)
Description copied from class: Component
Paint is called by the container of the component to allow it to draw itself on Graphics g The drawable area on g is (0,0,width,height).

Overrides:
paint in class Component
Parameters:
g - the area on witch the component will draw it self.

clock

public boolean clock()
Description copied from class: Component
Animated components receive clock events in order to update their animation.

Overrides:
clock in class Component
Returns:
true if repainting is needed after the clock event.

validate

public void validate()
Description copied from class: Component
A validate event requests from the component to recalculate its internal properties suck as width/height etc.

Overrides:
validate in class Component