本文整理汇总了Java中org.newdawn.slick.font.effects.ConfigurableEffect.getClass方法的典型用法代码示例。如果您正苦于以下问题:Java ConfigurableEffect.getClass方法的具体用法?Java ConfigurableEffect.getClass怎么用?Java ConfigurableEffect.getClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.newdawn.slick.font.effects.ConfigurableEffect
的用法示例。
在下文中一共展示了ConfigurableEffect.getClass方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: open
import org.newdawn.slick.font.effects.ConfigurableEffect; //导入方法依赖的package包/类
void open (File file) throws SlickException {
EffectPanel[] panels = (EffectPanel[])effectPanels.toArray(new EffectPanel[effectPanels.size()]);
for (int i = 0; i < panels.length; i++)
panels[i].remove();
HieroSettings settings = new HieroSettings(file.getAbsolutePath());
fontSizeSpinner.setValue(new Integer(settings.getFontSize()));
boldCheckBox.setSelected(settings.isBold());
italicCheckBox.setSelected(settings.isItalic());
padTopSpinner.setValue(new Integer(settings.getPaddingTop()));
padRightSpinner.setValue(new Integer(settings.getPaddingRight()));
padBottomSpinner.setValue(new Integer(settings.getPaddingBottom()));
padLeftSpinner.setValue(new Integer(settings.getPaddingLeft()));
padAdvanceXSpinner.setValue(new Integer(settings.getPaddingAdvanceX()));
padAdvanceYSpinner.setValue(new Integer(settings.getPaddingAdvanceY()));
glyphPageWidthCombo.setSelectedItem(new Integer(settings.getGlyphPageWidth()));
glyphPageHeightCombo.setSelectedItem(new Integer(settings.getGlyphPageHeight()));
for (Iterator iter = settings.getEffects().iterator(); iter.hasNext();) {
ConfigurableEffect settingsEffect = (ConfigurableEffect)iter.next();
for (int i = 0, n = effectsListModel.getSize(); i < n; i++) {
ConfigurableEffect effect = (ConfigurableEffect)effectsListModel.getElementAt(i);
if (effect.getClass() == settingsEffect.getClass()) {
effect.setValues(settingsEffect.getValues());
new EffectPanel(effect);
break;
}
}
}
updateFont();
}