Examples of ICSSFont


Examples of org.eclipse.jst.pagedesigner.css2.font.ICSSFont

    if (_lines != null) {
      ICSSStyle style = this.getCSSStyle();
      if (style == null) {
        style = DefaultStyle.getInstance();
      }
      ICSSFont font = style.getCSSFont();
      Font swtFont = font.getSwtFont();
      for (int i = 0; i < _lines.length; i++) {
        int width = FigureUtilities.getTextWidth(_lines[i], swtFont);
        if (width > longestStringWidth) {
          longestStringWidth = width;
        }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.font.ICSSFont

  public int getDefaultHeight() {
    ICSSStyle style = this.getCSSStyle();
    if (style == null) {
      style = DefaultStyle.getInstance();
    }
    ICSSFont font = style.getCSSFont();
    Font swtfont = font.getSwtFont();
    int fontHeight = FigureUtilities.getFontMetrics(swtfont).getHeight();
    return (int) ((fontHeight) * (_lines.length + VERTICAL_PADDING_RATE));
  }
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.