本文整理汇总了Java中com.jgoodies.looks.plastic.PlasticTheme类的典型用法代码示例。如果您正苦于以下问题:Java PlasticTheme类的具体用法?Java PlasticTheme怎么用?Java PlasticTheme使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PlasticTheme类属于com.jgoodies.looks.plastic包,在下文中一共展示了PlasticTheme类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setLookAndTheme
import com.jgoodies.looks.plastic.PlasticTheme; //导入依赖的package包/类
public static void setLookAndTheme(LookAndFeel laf, Object theme)
/* 134: */ throws UnsupportedLookAndFeelException
/* 135: */ {
/* 136:419 */ if (((laf instanceof PlasticLookAndFeel)) && (theme != null) && ((theme instanceof PlasticTheme))) {
/* 137:422 */ PlasticLookAndFeel.setPlasticTheme((PlasticTheme)theme);
/* 138: */ }
/* 139:424 */ UIManager.setLookAndFeel(laf);
/* 140: */ }
示例2: setCurrentTheme
import com.jgoodies.looks.plastic.PlasticTheme; //导入依赖的package包/类
/**
* Set Current Theme
* @param theme metal theme
*/
public static void setCurrentTheme (final PlasticTheme theme)
{
if (theme != null)
{
THEME_CURRENT = theme;
PlasticLookAndFeel.setCurrentTheme(THEME_CURRENT);
}
}
示例3: setCurrentMetalTheme
import com.jgoodies.looks.plastic.PlasticTheme; //导入依赖的package包/类
/**
* Invoke the correct method to set current metal based theme.
* Supported look and feel are Metal, Plastic and Compiere.
* @param laf Metal based look and feel
* @param theme Metal based theme
*/
static void setCurrentMetalTheme(final MetalLookAndFeel laf, final MetalTheme theme)
{
if (laf instanceof AdempiereLookAndFeel && theme instanceof PlasticTheme)
{
AdempiereLookAndFeel.setCurrentTheme((PlasticTheme)theme);
}
else
{
MetalLookAndFeel.setCurrentTheme(theme);
}
}
示例4: setLookAndTheme
import com.jgoodies.looks.plastic.PlasticTheme; //导入依赖的package包/类
public static void setLookAndTheme(LookAndFeel laf, Object theme)
throws UnsupportedLookAndFeelException {
if (laf instanceof PlasticLookAndFeel
&& theme != null
&& theme instanceof PlasticTheme) {
PlasticLookAndFeel.setPlasticTheme((PlasticTheme) theme);
}
UIManager.setLookAndFeel(laf);
}
示例5: getCurrentTheme
import com.jgoodies.looks.plastic.PlasticTheme; //导入依赖的package包/类
/**
* Get Current Theme
* @return Metal Theme
*/
public static PlasticTheme getCurrentTheme()
{
return THEME_CURRENT;
}
示例6: getSelectedTheme
import com.jgoodies.looks.plastic.PlasticTheme; //导入依赖的package包/类
public PlasticTheme getSelectedTheme() {
return this.selectedTheme;
}
示例7: setSelectedTheme
import com.jgoodies.looks.plastic.PlasticTheme; //导入依赖的package包/类
public void setSelectedTheme(PlasticTheme selectedTheme) {
this.selectedTheme = selectedTheme;
}
示例8: setTheme
import com.jgoodies.looks.plastic.PlasticTheme; //导入依赖的package包/类
/**
* @param theme PlasticTheme to use.
* @see com.jgoodies.looks.plastic.PlasticLookAndFeel#setPlasticTheme(com.jgoodies.looks.plastic.PlasticTheme)
*/
public void setTheme(PlasticTheme theme) {
PlasticLookAndFeel.setPlasticTheme(theme);
}