com.mot.lnf
Interface TickerLNF


public interface TickerLNF

Methods needed to customize look and feel of a Ticker


Method Summary
 int getHeight(javax.microedition.lcdui.Ticker tk)
          Get the height of this component
 int getInitialXPosition(javax.microedition.lcdui.Ticker tk)
          Get the starting x position of the Ticker text.
 int getUpdatePeriod(javax.microedition.lcdui.Ticker tk)
          Get the timeout period to use for Ticker animation.
 void paint(javax.microedition.lcdui.Graphics g, javax.microedition.lcdui.Ticker tk, int x)
          Method to be used for drawing a Ticker.
 int updatePosition(javax.microedition.lcdui.Ticker tk, int currentX)
          Retrieve the new x position of the ticker, called during animation.
 

Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  javax.microedition.lcdui.Ticker tk,
                  int x)
Method to be used for drawing a Ticker.
Parameters:
g - Graphics object to use for drawing
tk - Ticker to draw
x - x position to start drawing ticker text

getHeight

public int getHeight(javax.microedition.lcdui.Ticker tk)
Get the height of this component
Parameters:
tk - Ticker to obtain size information about
Returns:
height, in pixels

updatePosition

public int updatePosition(javax.microedition.lcdui.Ticker tk,
                          int currentX)
Retrieve the new x position of the ticker, called during animation.
Parameters:
tk - Ticker to obtain size information about
currentX - current x position
Returns:
new x position of the left boundary of the text

getUpdatePeriod

public int getUpdatePeriod(javax.microedition.lcdui.Ticker tk)
Get the timeout period to use for Ticker animation.
Parameters:
tk - Ticker to obtain updatePeriod for
Returns:
number of milliseconds to wait before updating the ticker animation

getInitialXPosition

public int getInitialXPosition(javax.microedition.lcdui.Ticker tk)
Get the starting x position of the Ticker text.
Parameters:
tk - the Ticker to obtain the x position for
Returns:
the starting x position of the Ticker's text