Search in sources :

Example 11 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class GearBusinessItemNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Example 12 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class EllipseBusinessItemNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Example 13 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class DirectionalBusinessItemRelationshipNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Example 14 with FontStyle

use of org.eclipse.gmf.runtime.notation.FontStyle in project tdi-studio-se by Talend.

the class InputBusinessItemNameEditPart method refreshFont.

/**
     * @generated
     */
protected void refreshFont() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle());
    if (style != null) {
        FontData fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
        setFont(fontData);
    }
}
Also used : FontStyle(org.eclipse.gmf.runtime.notation.FontStyle) FontData(org.eclipse.swt.graphics.FontData)

Aggregations

FontStyle (org.eclipse.gmf.runtime.notation.FontStyle)14 FontData (org.eclipse.swt.graphics.FontData)14