com.mot.lnf
Interface ScrollbarLNF


public interface ScrollbarLNF

Methods needed to customize look and feel of a Scrollbar


Field Summary
static int FLOAT
          Appearance mode indicating that the scrollbar should float in front of the screen and it should not displace items.
static int LEFT
          Appearance mode indicating that the scrollbar should be placed on the left side of the screen and it displaces items to the right.
static int RIGHT
          Appearance mode indicating that the scrollbar should be placed on the right side of the screen and it displaces items to the left.
 
Method Summary
 int getPosition()
          Get the position of the Scrollbar on the screen
 int getWidth()
          Get the width of this component
 void paint(javax.microedition.lcdui.Graphics g, int thumbY, int thumbH, int viewHeight, boolean hasFocus)
          Method to be used for drawing a Scrollbar.
 boolean scrollingWraps()
          Find out if the scrolling implementation should wrap when it reaches the bottom of a screen.
 

Field Detail

FLOAT

public static final int FLOAT
Appearance mode indicating that the scrollbar should float in front of the screen and it should not displace items. Floating scrollbars should not be used on devices with pointer events.

LEFT

public static final int LEFT
Appearance mode indicating that the scrollbar should be placed on the left side of the screen and it displaces items to the right.

RIGHT

public static final int RIGHT
Appearance mode indicating that the scrollbar should be placed on the right side of the screen and it displaces items to the left.
Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  int thumbY,
                  int thumbH,
                  int viewHeight,
                  boolean hasFocus)
Method to be used for drawing a Scrollbar.
Parameters:
g - Graphics object to use for drawing
thumbY - y position, in pixels, of the scrollbar's thumb
thumbH - height, in pixels of the scrollbar's thumb
viewHeight - Height, in pixels, of the viewable area of the screen
hasFocus - indicates if the Scrollbar currently has cursor focus

getWidth

public int getWidth()
Get the width of this component
Returns:
width, in pixels

getPosition

public int getPosition()
Get the position of the Scrollbar on the screen
Returns:
One of FLOAT, LEFT or RIGHT

scrollingWraps

public boolean scrollingWraps()
Find out if the scrolling implementation should wrap when it reaches the bottom of a screen.
Returns:
true if traversal should wrap, false if it shouldn't