com.sybase.uep.bobclient.utils
Class GraphicsUtil

java.lang.Object
  extended by com.sybase.uep.bobclient.utils.GraphicsUtil

public class GraphicsUtil
extends java.lang.Object

Util class for rendering UI

Author:
haowang

Field Summary
static int DROPDOWN_HINT_WIDTH
          Width of the hint that is drawn on select box
static int HINT_HEIGHT
          Height of the hint that is drawn on list item
static int HINT_MARGIN
          Margin for the hint that is drawn on list item
static int HINT_WIDTH
          Width of the hint that is drawn on list item
static int SHADOW_BORDER_WIDTH
          Width of the shadowed border
 
Constructor Summary
GraphicsUtil()
           
 
Method Summary
static void drawDropDownHint(int x, int y, int color, net.rim.device.api.ui.Graphics g)
          Draw the drop down indicator for select box
static void drawHint(int x, int y, int color, net.rim.device.api.ui.Graphics g)
          Draw the hint to show a list item was assigned an action
static void drawRoundRectWithShadow(int x, int y, int width, int height, int arcWidth, int arcHeight, int color, net.rim.device.api.ui.Graphics g)
          Draw a round rectangle with shadow
static void drawShadowText(java.lang.String text, int x, int y, int style, int width, net.rim.device.api.ui.Graphics g)
          Draw text with shadow
static void renderHighlight(int x, int y, int width, int height, int arcWidth, int arcHeight, net.rim.device.api.ui.Graphics g)
          Draw the highlight effect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHADOW_BORDER_WIDTH

public static final int SHADOW_BORDER_WIDTH
Width of the shadowed border

See Also:
Constant Field Values

HINT_WIDTH

public static final int HINT_WIDTH
Width of the hint that is drawn on list item

See Also:
Constant Field Values

HINT_HEIGHT

public static final int HINT_HEIGHT
Height of the hint that is drawn on list item

See Also:
Constant Field Values

HINT_MARGIN

public static final int HINT_MARGIN
Margin for the hint that is drawn on list item

See Also:
Constant Field Values

DROPDOWN_HINT_WIDTH

public static final int DROPDOWN_HINT_WIDTH
Width of the hint that is drawn on select box

See Also:
Constant Field Values
Constructor Detail

GraphicsUtil

public GraphicsUtil()
Method Detail

drawRoundRectWithShadow

public static void drawRoundRectWithShadow(int x,
                                           int y,
                                           int width,
                                           int height,
                                           int arcWidth,
                                           int arcHeight,
                                           int color,
                                           net.rim.device.api.ui.Graphics g)
Draw a round rectangle with shadow

Parameters:
x -
y -
width -
height -
arcWidth -
arcHeight -
color -
g -

drawHint

public static void drawHint(int x,
                            int y,
                            int color,
                            net.rim.device.api.ui.Graphics g)
Draw the hint to show a list item was assigned an action

Parameters:
x -
y -
color -
g -

renderHighlight

public static void renderHighlight(int x,
                                   int y,
                                   int width,
                                   int height,
                                   int arcWidth,
                                   int arcHeight,
                                   net.rim.device.api.ui.Graphics g)
Draw the highlight effect

Parameters:
x -
y -
width -
height -
arcWidth -
arcHeight -
g -

drawShadowText

public static void drawShadowText(java.lang.String text,
                                  int x,
                                  int y,
                                  int style,
                                  int width,
                                  net.rim.device.api.ui.Graphics g)
Draw text with shadow

Parameters:
text -
x -
y -
style -
width -
g -

drawDropDownHint

public static void drawDropDownHint(int x,
                                    int y,
                                    int color,
                                    net.rim.device.api.ui.Graphics g)
Draw the drop down indicator for select box

Parameters:
x -
y -
color -
g -