当前位置: 首页>>代码示例>>Java>>正文


Java FontChooserPanel.getSelectedFont方法代码示例

本文整理汇总了Java中org.jfree.ui.FontChooserPanel.getSelectedFont方法的典型用法代码示例。如果您正苦于以下问题:Java FontChooserPanel.getSelectedFont方法的具体用法?Java FontChooserPanel.getSelectedFont怎么用?Java FontChooserPanel.getSelectedFont使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.ui.FontChooserPanel的用法示例。


在下文中一共展示了FontChooserPanel.getSelectedFont方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: attemptModifySeriesFont

import org.jfree.ui.FontChooserPanel; //导入方法依赖的package包/类
/**
 * Allows the user the opportunity to change the series label font.
 */
public void attemptModifySeriesFont() {

    FontChooserPanel panel = new FontChooserPanel(this.seriesFont);
    int result = 
        JOptionPane.showConfirmDialog(this, panel,
                                      localizationResources.getString("Font_Selection"),
                                      JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

    if (result == JOptionPane.OK_OPTION) {
        this.seriesFont = panel.getSelectedFont();
        this.fontDisplayField.setText(
            this.seriesFont.getFontName() + ", " + this.seriesFont.getSize()
        );
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:LegendPropertyEditPanel.java

示例2: attemptLabelFontSelection

import org.jfree.ui.FontChooserPanel; //导入方法依赖的package包/类
/**
 * Presents a font selection dialog to the user.
 */
private void attemptLabelFontSelection() {

    FontChooserPanel panel = new FontChooserPanel(this.labelFont);
    int result = JOptionPane.showConfirmDialog(this, panel,
        localizationResources.getString("Font_Selection"),
        JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

    if (result == JOptionPane.OK_OPTION) {
        this.labelFont = panel.getSelectedFont();
        this.labelFontField.setText(
            this.labelFont.getFontName() + " " + this.labelFont.getSize()
        );
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:19,代码来源:AxisPropertyEditPanel.java

示例3: attemptFontSelection

import org.jfree.ui.FontChooserPanel; //导入方法依赖的package包/类
/**
 * Presents a font selection dialog to the user.
 */
public void attemptFontSelection() {

    FontChooserPanel panel = new FontChooserPanel(this.titleFont);
    int result = 
        JOptionPane.showConfirmDialog(
            this, panel, localizationResources.getString("Font_Selection"),
            JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE
        );

    if (result == JOptionPane.OK_OPTION) {
        this.titleFont = panel.getSelectedFont();
        this.fontfield.setText(
            this.titleFont.getFontName() + " " + this.titleFont.getSize()
        );
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:DefaultTitleEditor.java

示例4: attemptTickLabelFontSelection

import org.jfree.ui.FontChooserPanel; //导入方法依赖的package包/类
/**
 * Presents a tick label font selection dialog to the user.
 */
public void attemptTickLabelFontSelection() {

    FontChooserPanel panel = new FontChooserPanel(this.tickLabelFont);
    int result = JOptionPane.showConfirmDialog(this, panel,
        localizationResources.getString("Font_Selection"),
        JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

    if (result == JOptionPane.OK_OPTION) {
        this.tickLabelFont = panel.getSelectedFont();
        this.tickLabelFontField.setText(
            this.tickLabelFont.getFontName() + " "
            + this.tickLabelFont.getSize()
        );
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:DefaultAxisEditor.java

示例5: attemptFontSelection

import org.jfree.ui.FontChooserPanel; //导入方法依赖的package包/类
/**
 * Presents a font selection dialog to the user.
 */
public void attemptFontSelection() {

    FontChooserPanel panel = new FontChooserPanel(this.titleFont);
    int result =
        JOptionPane.showConfirmDialog(
            this, panel, localizationResources.getString("Font_Selection"),
            JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE
        );

    if (result == JOptionPane.OK_OPTION) {
        this.titleFont = panel.getSelectedFont();
        this.fontfield.setText(
            this.titleFont.getFontName() + " " + this.titleFont.getSize()
        );
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:20,代码来源:DefaultTitleEditor.java

示例6: attemptTickLabelFontSelection

import org.jfree.ui.FontChooserPanel; //导入方法依赖的package包/类
/**
 * Presents a tick label font selection dialog to the user.
 */
public void attemptTickLabelFontSelection() {

    FontChooserPanel panel = new FontChooserPanel(this.tickLabelFont);
    int result = JOptionPane.showConfirmDialog(this, panel,
        localizationResources.getString("Font_Selection"),
        JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

    if (result == JOptionPane.OK_OPTION) {
        this.tickLabelFont = panel.getSelectedFont();
        this.tickLabelFontField.setText(this.tickLabelFont.getFontName() + " "
            + this.tickLabelFont.getSize());
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:AxisPropertyEditPanel.java

示例7: attemptFontSelection

import org.jfree.ui.FontChooserPanel; //导入方法依赖的package包/类
/**
 * Presents a font selection dialog to the user.
 */
public void attemptFontSelection() {

    FontChooserPanel panel = new FontChooserPanel(this.titleFont);
    int result = 
        JOptionPane.showConfirmDialog(this, panel, 
                                      localizationResources.getString("Font_Selection"),
                                      JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

    if (result == JOptionPane.OK_OPTION) {
        this.titleFont = panel.getSelectedFont();
        this.fontfield.setText(this.titleFont.getFontName() + " " + this.titleFont.getSize());
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:17,代码来源:TitlePropertyEditPanel.java


注:本文中的org.jfree.ui.FontChooserPanel.getSelectedFont方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。