Examples of FontInfo


Examples of net.sf.jasperreports.engine.fonts.FontInfo

    {
      fontName = (String)fontMap.get(fontName);
    }
    else
    {
      FontInfo fontInfo = JRFontUtil.getFontInfo(fontName, locale);
      if (fontInfo != null)
      {
        //fontName found in font extensions
        FontFamily family = fontInfo.getFontFamily();
        String exportFont = family.getExportFont(getExporterKey());
        if (exportFont != null)
        {
          fontName = exportFont;
        }
View Full Code Here

Examples of net.sf.jasperreports.engine.fonts.FontInfo

    {
      fontName = (String) fontMap.get(fontName);
    }
    else
    {
      FontInfo fontInfo = JRFontUtil.getFontInfo(fontName, locale);
      if (fontInfo != null)
      {
        //fontName found in font extensions
        FontFamily family = fontInfo.getFontFamily();
        String exportFont = family.getExportFont(getExporterKey());
        if (exportFont != null)
        {
          fontName = exportFont;
        }
View Full Code Here

Examples of net.sf.jasperreports.engine.fonts.FontInfo

    {
      fontFamily = (String) fontMap.get(fontFamilyAttr);
    }
    else
    {
      FontInfo fontInfo = JRFontUtil.getFontInfo(fontFamilyAttr, locale);
      if (fontInfo != null)
      {
        //fontName found in font extensions
        FontFamily family = fontInfo.getFontFamily();
        String exportFont = family.getExportFont(getExporterKey());
        if (exportFont != null)
        {
          fontFamily = exportFont;
        }
View Full Code Here

Examples of net.sf.jasperreports.engine.fonts.FontInfo

      {
        fontFamily = (String) fontMap.get(fontFamilyAttr);
      }
      else
      {
        FontInfo fontInfo = JRFontUtil.getFontInfo(fontFamilyAttr, locale);
        if (fontInfo != null)
        {
          //fontName found in font extensions
          FontFamily family = fontInfo.getFontFamily();
          String exportFont = family.getExportFont(exporterKey);
          if (exportFont != null)
          {
            fontFamily = exportFont;
          }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.FontInfo

   public void setFontInfo(FontInfo data)
   {
      if (_fi == null || !_fi.equals(data))
      {
         final FontInfo oldValue = _fi;
         _fi = data != null ? data : (FontInfo)DEFAULT_FONT_INFO.clone();
         getPropertyChangeReporter().firePropertyChange(
                           IPropertyNames.FONT_INFO, oldValue, _fi);
      }
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.FontInfo

      _limitSQLResultTabsChk.setSelected(props.getLimitSQLResultTabs());
      _limitSQLResultTabsField.setInt(props.getSqlResultTabLimit());

      _showResultsMetaChk.setSelected(props.getShowResultsMetaData());

      FontInfo fi = props.getFontInfo();
      if (fi == null)
      {
        fi = new FontInfo(UIManager.getFont("TextArea.font"));
      }
      _fontLbl.setText(fi.toString());
      _fontBtn.setSelectedFont(fi.createFont());

      updateControlStatus();
    }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.FontInfo

      void setSelectedFont(Font font)
      {
        _font = font;
        if (_fi == null)
        {
          _fi = new FontInfo(font);
        }
        else
        {
          _fi.setFont(font);
        }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.FontInfo

      public void actionPerformed(ActionEvent evt)
      {
        if (evt.getSource() instanceof FontButton)
        {
          FontButton btn = (FontButton) evt.getSource();
          FontInfo fi = btn.getFontInfo();
          Font font = null;
          if (fi != null)
          {
            font = fi.createFont();
          }
          font = new FontChooser().showDialog(font);
          if (font != null)
          {
            btn.setSelectedFont(font);
            btn._lbl.setText(new FontInfo(font).toString());
          }
        }
      }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.FontInfo

  public FontInfoStore()
  {
      Font tmp = (Font)UIManager.get("Label.font");
      if (tmp != null) {
          Font font = tmp.deriveFont(10.0f);
          _statusBarFontInfo = new FontInfo(font);         
      }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.FontInfo

   private static class MyTextArea extends JTextArea
  {
    private MyTextArea(ISession session)
    {
      SessionProperties props = session.getProperties();
      final FontInfo fi = props.getFontInfo();
      if (fi != null)
      {
        this.setFont(props.getFontInfo().createFont());
      }
    }
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.