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


Java Resources.getFont方法代码示例

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


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

示例1: createExampleLabel

import org.insightech.er.Resources; //导入方法依赖的package包/类
public static Label createExampleLabel(final Composite composite, final String title, final int span) {
    final Label label = new Label(composite, SWT.NONE);
    label.setText(ResourceString.getResourceString(title));

    if (span > 0) {
        final GridData gridData = new GridData();
        gridData.horizontalSpan = span;
        label.setLayoutData(gridData);
    }

    final FontData fontData = Display.getCurrent().getSystemFont().getFontData()[0];
    final Font font = Resources.getFont(fontData.getName(), 8);
    label.setFont(font);

    return label;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:17,代码来源:CompositeFactory.java

示例2: changeFont

import org.insightech.er.Resources; //导入方法依赖的package包/类
protected Font changeFont(final IFigure figure) {
    final RemovedNodeElement removedNodeElement = (RemovedNodeElement) getModel();

    String fontName = removedNodeElement.getFontName();
    int fontSize = removedNodeElement.getFontSize();

    if (fontName == null) {
        final FontData fontData = Display.getCurrent().getSystemFont().getFontData()[0];
        fontName = fontData.getName();
    }
    if (fontSize <= 0) {
        fontSize = ViewableModel.DEFAULT_FONT_SIZE;
    }

    font = Resources.getFont(fontName, fontSize);

    figure.setFont(font);

    return font;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:21,代码来源:RemovedNodeElementEditPart.java

示例3: changeFont

import org.insightech.er.Resources; //导入方法依赖的package包/类
protected Font changeFont(final IFigure figure) {
    final NodeElement nodeElement = (NodeElement) getModel();

    String fontName = nodeElement.getFontName();
    int fontSize = nodeElement.getFontSize();

    if (Check.isEmpty(fontName)) {
        final FontData fontData = Display.getCurrent().getSystemFont().getFontData()[0];
        fontName = fontData.getName();
        nodeElement.setFontName(fontName);
    }
    if (fontSize <= 0) {
        fontSize = ViewableModel.DEFAULT_FONT_SIZE;
        nodeElement.setFontSize(fontSize);
    }

    font = Resources.getFont(fontName, fontSize);

    figure.setFont(font);

    return font;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:23,代码来源:NodeElementEditPart.java

示例4: createExampleLabel

import org.insightech.er.Resources; //导入方法依赖的package包/类
public static Label createExampleLabel(Composite composite, String title,
		int span) {
	Label label = new Label(composite, SWT.NONE);
	label.setText(ResourceString.getResourceString(title));

	if (span > 0) {
		GridData gridData = new GridData();
		gridData.horizontalSpan = span;
		label.setLayoutData(gridData);
	}

	FontData fontData = Display.getCurrent().getSystemFont().getFontData()[0];
	Font font = Resources.getFont(fontData.getName(), 8);
	label.setFont(font);

	return label;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:18,代码来源:CompositeFactory.java

示例5: changeFont

import org.insightech.er.Resources; //导入方法依赖的package包/类
protected Font changeFont(IFigure figure) {
	RemovedNodeElement removedNodeElement = (RemovedNodeElement) this
			.getModel();

	String fontName = removedNodeElement.getFontName();
	int fontSize = removedNodeElement.getFontSize();

	if (fontName == null) {
		FontData fontData = Display.getCurrent().getSystemFont()
				.getFontData()[0];
		fontName = fontData.getName();
	}
	if (fontSize <= 0) {
		fontSize = ViewableModel.DEFAULT_FONT_SIZE;
	}

	this.font = Resources.getFont(fontName, fontSize);

	figure.setFont(this.font);

	return font;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:23,代码来源:RemovedNodeElementEditPart.java

示例6: changeFont

import org.insightech.er.Resources; //导入方法依赖的package包/类
protected Font changeFont(IFigure figure) {
	NodeElement nodeElement = (NodeElement) this.getModel();

	String fontName = nodeElement.getFontName();
	int fontSize = nodeElement.getFontSize();

	if (Check.isEmpty(fontName)) {
		FontData fontData = Display.getCurrent().getSystemFont()
				.getFontData()[0];
		fontName = fontData.getName();
		nodeElement.setFontName(fontName);
	}
	if (fontSize <= 0) {
		fontSize = ViewableModel.DEFAULT_FONT_SIZE;
		nodeElement.setFontSize(fontSize);
	}

	this.font = Resources.getFont(fontName, fontSize);

	figure.setFont(this.font);

	return font;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:24,代码来源:NodeElementEditPart.java

示例7: createWordFilter

import org.insightech.er.Resources; //导入方法依赖的package包/类
private void createWordFilter(final Composite composite) {
    final Composite filterComposite = new Composite(composite, SWT.NONE);

    final GridData gridData = new GridData();
    gridData.horizontalSpan = 4;
    gridData.horizontalAlignment = GridData.FILL;
    gridData.grabExcessHorizontalSpace = true;

    filterComposite.setLayoutData(gridData);

    final GridLayout layout = new GridLayout();
    layout.numColumns = 2;

    filterComposite.setLayout(layout);

    final FontData fontData = Display.getCurrent().getSystemFont().getFontData()[0];
    final Font font = Resources.getFont(fontData.getName(), 7, SWT.NORMAL);

    final Label label = new Label(filterComposite, SWT.NONE);
    label.setText(ResourceString.getResourceString("label.filter"));
    label.setFont(font);

    final GridData textGridData = new GridData();
    textGridData.widthHint = 50;

    wordFilterText = new Text(filterComposite, SWT.BORDER);
    wordFilterText.setLayoutData(textGridData);
    wordFilterText.setFont(font);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:30,代码来源:AbstractColumnDialog.java

示例8: createWordFilter

import org.insightech.er.Resources; //导入方法依赖的package包/类
private void createWordFilter(Composite composite) {
	Composite filterComposite = new Composite(composite, SWT.NONE);

	GridData gridData = new GridData();
	gridData.horizontalSpan = 4;
	gridData.horizontalAlignment = GridData.FILL;
	gridData.grabExcessHorizontalSpace = true;

	filterComposite.setLayoutData(gridData);

	GridLayout layout = new GridLayout();
	layout.numColumns = 2;

	filterComposite.setLayout(layout);

	FontData fontData = Display.getCurrent().getSystemFont().getFontData()[0];
	Font font = Resources.getFont(fontData.getName(), 7, SWT.NORMAL);

	Label label = new Label(filterComposite, SWT.NONE);
	label.setText(ResourceString.getResourceString("label.filter"));
	label.setFont(font);

	GridData textGridData = new GridData();
	textGridData.widthHint = 50;

	this.wordFilterText = new Text(filterComposite, SWT.BORDER);
	this.wordFilterText.setLayoutData(textGridData);
	this.wordFilterText.setFont(font);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:30,代码来源:AbstractColumnDialog.java

示例9: changeFont

import org.insightech.er.Resources; //导入方法依赖的package包/类
private Font changeFont(final TableFigure tableFigure) {
    final Font font = super.changeFont(tableFigure);

    final FontData fonDatat = font.getFontData()[0];

    titleFont = Resources.getFont(fonDatat.getName(), fonDatat.getHeight(), SWT.BOLD);

    tableFigure.setFont(font, titleFont);

    return font;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:12,代码来源:RemovedERTableEditPart.java

示例10: changeFont

import org.insightech.er.Resources; //导入方法依赖的package包/类
protected Font changeFont(final TableFigure tableFigure) {
    final Font font = super.changeFont(tableFigure);

    final FontData fonData = font.getFontData()[0];

    titleFont = Resources.getFont(fonData.getName(), fonData.getHeight(), SWT.BOLD);

    tableFigure.setFont(font, titleFont);

    return font;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:12,代码来源:TableViewEditPart.java

示例11: changeFont

import org.insightech.er.Resources; //导入方法依赖的package包/类
private Font changeFont(TableFigure tableFigure) {
	Font font = super.changeFont(tableFigure);

	FontData fonDatat = font.getFontData()[0];

	this.titleFont = Resources.getFont(fonDatat.getName(),
			fonDatat.getHeight(), SWT.BOLD);

	tableFigure.setFont(font, this.titleFont);

	return font;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:13,代码来源:RemovedERTableEditPart.java

示例12: changeFont

import org.insightech.er.Resources; //导入方法依赖的package包/类
protected Font changeFont(TableFigure tableFigure) {
	Font font = super.changeFont(tableFigure);

	FontData fonData = font.getFontData()[0];

	this.titleFont = Resources.getFont(fonData.getName(),
			fonData.getHeight(), SWT.BOLD);

	tableFigure.setFont(font, this.titleFont);

	return font;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:13,代码来源:TableViewEditPart.java


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