greentheme.java
来自「j2me的1套UI框架,可以帮助开发者迅速的开发j2me应用程序.」· Java 代码 · 共 147 行
JAVA
147 行
package org.j4me.examples.ui.themes;
import org.j4me.ui.*;
/**
* A green on white theme.
*/
public class GreenTheme
extends Theme
{
/**
* @see Theme#getBackgroundColor()
*/
public int getBackgroundColor ()
{
return WHITE;
}
/**
* @see Theme#getFontColor()
*/
public int getFontColor ()
{
return FOREST_GREEN;
}
/**
* @see Theme#getBorderColor()
*/
public int getBorderColor ()
{
return FOREST_GREEN;
}
/**
* @see Theme#getHighlightColor()
*/
public int getHighlightColor ()
{
return LIGHT_GREEN;
}
/**
* @see Theme#getMenuBarBackgroundColor()
*/
public int getMenuBarBackgroundColor ()
{
return DARK_GREEN;
}
/**
* @see Theme#getMenuBarHighlightColor()
*/
public int getMenuBarHighlightColor ()
{
return MEDIUM_GREEN;
}
/**
* @see Theme#getMenuBarBorderColor()
*/
public int getMenuBarBorderColor ()
{
return WHITE;
}
/**
* @see Theme#getMenuFontColor()
*/
public int getMenuFontColor ()
{
return WHITE;
}
/**
* @see Theme#getMenuFontHighlightColor()
*/
public int getMenuFontHighlightColor ()
{
return SILVER;
}
/**
* @see Theme#getTitleBarBackgroundColor()
*/
public int getTitleBarBackgroundColor ()
{
return DARK_GREEN;
}
/**
* @see Theme#getTitleBarHighlightColor()
*/
public int getTitleBarHighlightColor ()
{
return MEDIUM_GREEN;
}
/**
* @see Theme#getTitleBarBorderColor()
*/
public int getTitleBarBorderColor ()
{
return DARK_GREEN;
}
/**
* @see Theme#getTitleFontColor()
*/
public int getTitleFontColor ()
{
return WHITE;
}
/**
* @see Theme#getScrollbarBackgroundColor()
*/
public int getScrollbarBackgroundColor ()
{
return DARK_GREEN;
}
/**
* @see Theme#getScrollbarHighlightColor()
*/
public int getScrollbarHighlightColor ()
{
return SILVER;
}
/**
* @see Theme#getScrollbarBorderColor()
*/
public int getScrollbarBorderColor ()
{
return DARK_GREEN;
}
/**
* @see Theme#getScrollbarTrackbarColor()
*/
public int getScrollbarTrackbarColor ()
{
return MEDIUM_GREEN;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?