com.sybase.uep.bobclient.controls
Interface IControlXYDraw

All Known Implementing Classes:
CellImage, CellLabel

public interface IControlXYDraw

Interface that provides APIs to draw an item

Author:
congchen

Method Summary
 void draw(net.rim.device.api.ui.Graphics g, int relativeX, int relativeY, boolean isFocus)
          Draws the item that implements the interface
 int getXPosition(boolean isFocus)
          Gets the X coordinator of the drawing item
 int getYPosition(boolean isFocus)
          Gets the Y coordinator of the drawing item
 void setXPosition(int xPos, boolean isFocus)
          Sets the X coordinator of the drawing item
 void setYPosition(int yPos, boolean isFocus)
          Sets the Y coordinator of the drawing item
 

Method Detail

setXPosition

void setXPosition(int xPos,
                  boolean isFocus)
Sets the X coordinator of the drawing item

Parameters:
xPos - - X coordinator
isFocus - - true means xPos is the position when the control is focused

setYPosition

void setYPosition(int yPos,
                  boolean isFocus)
Sets the Y coordinator of the drawing item

Parameters:
yPos - - Y coordinator
isFocus - - true means yPos is the position when the control is focused

getXPosition

int getXPosition(boolean isFocus)
Gets the X coordinator of the drawing item

Parameters:
isFocus - - true means the method returns the position when the control is focused
Returns:
the X coordinator

getYPosition

int getYPosition(boolean isFocus)
Gets the Y coordinator of the drawing item

Parameters:
isFocus - - true means the method returns the position when the control is focused
Returns:
the Y coordinator

draw

void draw(net.rim.device.api.ui.Graphics g,
          int relativeX,
          int relativeY,
          boolean isFocus)
Draws the item that implements the interface

Parameters:
g - - Graphics object
relativeX - - relative X coordinator
relativeY - - relative Y coordinator
isFocus - - true means the control is focused