Package org.eclipse.gmf.runtime.notation

Examples of org.eclipse.gmf.runtime.notation.FontStyle


  /**
   * @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);
    }
  }
View Full Code Here


  /**
   * @generated
   */
  protected void refreshUnderline() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
        NotationPackage.eINSTANCE.getFontStyle());
    if (style != null && getFigure() instanceof WrappingLabel) {
      ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
    }
  }
View Full Code Here

  /**
   * @generated
   */
  protected void refreshStrikeThrough() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
        NotationPackage.eINSTANCE.getFontStyle());
    if (style != null && getFigure() instanceof WrappingLabel) {
      ((WrappingLabel) getFigure()).setTextStrikeThrough(style
          .isStrikeThrough());
    }
  }
View Full Code Here

  /**
   * @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);
    }
  }
View Full Code Here

  /**
   * @generated
   */
  protected void refreshUnderline() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
        NotationPackage.eINSTANCE.getFontStyle());
    if (style != null && getFigure() instanceof WrappingLabel) {
      ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
    }
  }
View Full Code Here

  /**
   * @generated
   */
  protected void refreshStrikeThrough() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
        NotationPackage.eINSTANCE.getFontStyle());
    if (style != null && getFigure() instanceof WrappingLabel) {
      ((WrappingLabel) getFigure()).setTextStrikeThrough(style
          .isStrikeThrough());
    }
  }
View Full Code Here

  /**
   * @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);
    }
  }
View Full Code Here

  /**
   * @generated
   */
  protected void refreshUnderline() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
        NotationPackage.eINSTANCE.getFontStyle());
    if (style != null && getFigure() instanceof WrappingLabel) {
      ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
    }
  }
View Full Code Here

  /**
   * @generated
   */
  protected void refreshStrikeThrough() {
    FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
        NotationPackage.eINSTANCE.getFontStyle());
    if (style != null && getFigure() instanceof WrappingLabel) {
      ((WrappingLabel) getFigure()).setTextStrikeThrough(style
          .isStrikeThrough());
    }
  }
View Full Code Here

  /**
   * @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);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.notation.FontStyle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.