Examples of FontStyle


Examples of at.bestsolution.efxclipse.formats.fxg.fxg.FontStyle

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setFontStyle(FontStyle newFontStyle) {
    FontStyle oldFontStyle = fontStyle;
    fontStyle = newFontStyle == null ? FONT_STYLE_EDEFAULT : newFontStyle;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RICH_TEXT__FONT_STYLE, oldFontStyle, fontStyle));
  }
View Full Code Here

Examples of cli.System.Drawing.FontStyle

            fs |= FontStyle.Bold;
        }
        if((style & java.awt.Font.ITALIC) != 0){
            fs |= FontStyle.Italic;
        }
        FontStyle fontStyle = FontStyle.wrap(fs);
        if(!family.IsStyleAvailable(fontStyle)){
            // Some Fonts (for example Aharoni) does not support Regular style. This throw an exception else it is not
            // documented.
            if(family.IsStyleAvailable(REGULAR)){
                fontStyle = REGULAR;
View Full Code Here

Examples of net.sf.robocode.ui.editor.FontStyle

    fontStyleComboBox = fontStyle == null ? null : ComboBoxUtil.createFontStyleComboBox(fontStyle);
    if (fontStyleComboBox != null) {
      fontStyleComboBox.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
          FontStyle newStyle = ComboBoxUtil.getSelectedStyle(fontStyleComboBox);
          if (oldStyle != newStyle) {
            notifyStyleChanged(newStyle);
            oldStyle = newStyle;
          }
        }
View Full Code Here

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

  /**
   * @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

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

  /**
   * @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

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

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

  /**
   * @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

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

  /**
   * @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

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

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

  /**
   * @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
TOP
Copyright © 2018 www.massapi.com. 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.