MOMTitleBar.java
资源名称:src.zip [点击查看]
上传用户:luxiaowei
上传日期:2022-06-06
资源大小:58k
文件大小:1k
源码类别:
J2ME
开发平台:
Java
- /*
- * MOMTitleBar.java
- *
- * Created on April 21, 2010, 1:33 PM
- *
- * To change this template, choose Tools | Template Manager
- * and open the template in the editor.
- */
- package com.MOM.ui.control;
- import com.MOM.resources.Resources;
- import com.framework.TitleBar;
- import com.framework.UiDisplayble;
- import javax.microedition.lcdui.Graphics;
- /**
- *
- * @author Tejaswi
- */
- public class MOMTitleBar extends TitleBar{
- public static final int MOM_TITLE_BAR_HEIGHT = Resources.getInstance().getImage(Resources.CNBC_LOGO_IMAGE).getHeight() + Resources.getInstance().getImage(Resources.CNBC_LOGO_ADD_IMAGE).getHeight();
- /** Creates a new instance of MOMTitleBar */
- public MOMTitleBar(UiDisplayble parent) {
- super(parent);
- }
- public int getHeight() {
- return MOM_TITLE_BAR_HEIGHT;
- }
- protected void paintUi(Graphics g) {
- g.drawImage(Resources.getInstance().getImage(Resources.CNBC_LOGO_IMAGE) , 0 , 0 , 0);
- g.drawImage(Resources.getInstance().getImage(Resources.CNBC_LOGO_ADD_IMAGE ), 0 , Resources.getInstance().getImage(Resources.CNBC_LOGO_IMAGE).getHeight(),0);
- }
- }