Package java.awt

Examples of java.awt.Font$FontAccessImpl


        }
      }

      if (linesAxis != null)
      {
        final Font labelFont = Font.decode(getLabelFont());
        linesAxis.setLabelFont(labelFont);
        linesAxis.setTickLabelFont(labelFont);

        if (getLineTitleFont() != null)
        {
View Full Code Here


        return line;
    }

    private OMText createLabel(String text, int x, int y, Paint color,
                               int justification) {
        Font default_font = new Font("TimesRoman", Font.PLAIN, 10);
        OMText label = new OMText(x, y, text, default_font, justification);

        label.setLinePaint(color);
        label.setSelectPaint(Color.white);
        return label;
View Full Code Here

        setSubrangeInfo(0,   050,    0, 60);
        setSubrangeInfo(15010040, 110);
        setSubrangeInfo(2, 110250, 100, 300);
    */

    thermo1.addSubtitle(title, new Font("Dialog", Font.BOLD, 15));
    thermo1.setToolTipText(title);
    setToolTipText(title);

    setLayout(new BorderLayout());
    add(thermo1, BorderLayout.CENTER);
View Full Code Here

  {
    // Misc Properties
    final TextTitle chartTitle = chart.getTitle();
    if (chartTitle != null)
    {
      final Font titleFont = Font.decode(getTitleFont());
      chartTitle.setFont(titleFont);
    }

    if (isAntiAlias() == false)
    {
View Full Code Here


  public JIconView(ListModel model) {
    super();
    setModel(model);
    setFont(new Font("SansSerif", Font.PLAIN, 10));
    xCellSize = yCellSize = 80;
    iconTextSpacing = 3;
    listeners = new HashSet();
    initialize();
    updateUI();
View Full Code Here

    /* Construct the buffer */
    buffer = new ConsoleBuffer(this);

    /* Setup a fixed size font */
    setFont(new Font("Monospaced", Font.PLAIN, 12));

    /* Disable double buffering */
    setDoubleBuffered(false);

    /* Set background color to black */
 
View Full Code Here

  /**
   * Set the font
   */
  public void setFont(Font font) {
    plainFont = new Font(font.getFamily(), Font.PLAIN, font.getSize());
    boldFont = new Font(font.getFamily(), Font.BOLD, font.getSize());
    fontMetrics = getFontMetrics(plainFont);
    columnWidth = fontMetrics.charWidth('A');
    rowHeight = fontMetrics.getHeight();
    descent = fontMetrics.getDescent();
  }
View Full Code Here

    final int fontSize = layoutContext.getIntStyleProperty(TextStyleKeys.FONTSIZE,
        (int) metaData.getNumericFeatureValue(OutputProcessorFeature.DEFAULT_FONT_SIZE));

    final String fontName = metaData.getNormalizedFontFamilyName
        ((String) layoutContext.getStyleProperty(TextStyleKeys.FONT));
    g2.setFont(new Font(fontName, style, fontSize));
  }
View Full Code Here

    this.transform = new AffineTransform();

    paint = Color.black;
    background = Color.white;
    setFont(new Font("sanserif", Font.PLAIN, 12));
    this.cb = cb;
    cb.saveState();
    this.width = width;
    this.height = height;
    clip = new Area(new Rectangle2D.Float(0, 0, width, height));
View Full Code Here

        continue;
      }
      final TextAttribute textattribute = (TextAttribute) attribute;
      if (textattribute.equals(TextAttribute.FONT))
      {
        final Font font = (Font) iter.getAttributes().get(textattribute);
        setFont(font);
      }
      else if (textattribute.equals(TextAttribute.UNDERLINE))
      {
        if (iter.getAttributes().get(textattribute) == TextAttribute.UNDERLINE_ON)
        {
          underline = true;
        }
      }
      else if (textattribute.equals(TextAttribute.SIZE))
      {
        final Object obj = iter.getAttributes().get(textattribute);
        if (obj instanceof Integer)
        {
          final int i = ((Integer) obj).intValue();
          setFont(getFont().deriveFont(getFont().getStyle(), i));
        }
        else if (obj instanceof Float)
        {
          final float f = ((Float) obj).floatValue();
          setFont(getFont().deriveFont(getFont().getStyle(), f));
        }
      }
      else if (textattribute.equals(TextAttribute.FOREGROUND))
      {
        setColor((Color) iter.getAttributes().get(textattribute));
      }
      else if (textattribute.equals(TextAttribute.FAMILY))
      {
        final Font font = getFont();
        final Map fontAttributes = font.getAttributes();
        fontAttributes.put(TextAttribute.FAMILY, iter.getAttributes().get(textattribute));
        setFont(font.deriveFont(fontAttributes));
      }
      else if (textattribute.equals(TextAttribute.POSTURE))
      {
        final Font font = getFont();
        final Map fontAttributes = font.getAttributes();
        fontAttributes.put(TextAttribute.POSTURE, iter.getAttributes().get(textattribute));
        setFont(font.deriveFont(fontAttributes));
      }
      else if (textattribute.equals(TextAttribute.WEIGHT))
      {
        final Font font = getFont();
        final Map fontAttributes = font.getAttributes();
        fontAttributes.put(TextAttribute.WEIGHT, iter.getAttributes().get(textattribute));
        setFont(font.deriveFont(fontAttributes));
      }
    }
  }
View Full Code Here

TOP

Related Classes of java.awt.Font$FontAccessImpl

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.