本文整理匯總了Java中org.insightech.er.editor.controller.command.display.ChangeFontCommand類的典型用法代碼示例。如果您正苦於以下問題:Java ChangeFontCommand類的具體用法?Java ChangeFontCommand怎麽用?Java ChangeFontCommand使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ChangeFontCommand類屬於org.insightech.er.editor.controller.command.display包,在下文中一共展示了ChangeFontCommand類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createCommand
import org.insightech.er.editor.controller.command.display.ChangeFontCommand; //導入依賴的package包/類
@Override
protected Command createCommand(final ViewableModel viewableModel) {
final String text = getText();
try {
final int fontSize = Integer.parseInt(text);
return new ChangeFontCommand(viewableModel, viewableModel.getFontName(), fontSize);
} catch (final NumberFormatException e) {}
return null;
}
示例2: createCommand
import org.insightech.er.editor.controller.command.display.ChangeFontCommand; //導入依賴的package包/類
@Override
protected Command createCommand(ViewableModel viewableModel) {
String text = this.getText();
try {
int fontSize = Integer.parseInt(text);
return new ChangeFontCommand(viewableModel, viewableModel
.getFontName(), fontSize);
} catch (NumberFormatException e) {
}
return null;
}
示例3: createCommand
import org.insightech.er.editor.controller.command.display.ChangeFontCommand; //導入依賴的package包/類
@Override
protected Command createCommand(final ViewableModel viewableModel) {
return new ChangeFontCommand(viewableModel, getText(), viewableModel.getFontSize());
}
示例4: createCommand
import org.insightech.er.editor.controller.command.display.ChangeFontCommand; //導入依賴的package包/類
@Override
protected Command createCommand(ViewableModel viewableModel) {
return new ChangeFontCommand(viewableModel, this.getText(),
viewableModel.getFontSize());
}