Examples of FontProxy


Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

  {
    String name = (_name == null) ? _DEFAULT_FONT_NAME : _name;
    int size = (_size == -1) ? _DEFAULT_FONT_SIZE : _size;
    int style = (_style == -1) ? _DEFAULT_FONT_STYLE : _style;

    return new FontProxy(name, style, size);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

      style = ((Font)font).getStyle();
      size = ((Font)font).getSize();
    }
    else
    {
      FontProxy proxy = (FontProxy)font;
      family = proxy.getName();
      style = proxy.getStyle();
      size = proxy.getSize();
    }

    encodeStartTag(name, out);
    encodeValueTag("name", family, out);
    encodeValueTag("size", Integer.toString(size), out);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

      {
        // We need to convert null font names to the default font name
        if (key.equals(ImageConstants.FONT_KEY) &&
             (value instanceof FontProxy))
        {
          FontProxy font = (FontProxy)value;
          if (font.getName() == null)
          {
            if (_font == null)
            {
              _font = new FontProxy(_DEFAULT_FONT_NAME,
                                    font.getStyle(),
                                    font.getSize());
            }

            value = _font;
          }
        }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

  public static FontProxy getSharedFont(FontProxy font)
  {
    if (font == null)
      return null;

    FontProxy sharedFont = _sFontProxyCache.get(font);
    if (sharedFont != null)
      return sharedFont;

    // Create a new FontProxy instance and store it in the cache
    sharedFont = new FontProxy(font.getName(),
                               font.getStyle(),
                               font.getSize());

    _sFontProxyCache.put(sharedFont, sharedFont);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

    String lookAndFeelId = (String)properties.get(LOOK_AND_FEEL_ID_KEY);
    String text = (String)properties.get(TEXT_KEY);
    Color foreground = (Color)properties.get(FOREGROUND_KEY);
    Color background = (Color)properties.get(BACKGROUND_KEY);
    Color surroundingColor = (Color)properties.get(SURROUNDING_COLOR_KEY);
    FontProxy font = CacheUtils.getSharedFont(properties, FONT_KEY);
    int direction = CacheUtils.getReadingDirection(context, properties);
    boolean disabled = CacheUtils.getBoolean(properties, DISABLED_KEY, false);
    boolean textAntialias = CacheUtils.isTextAntialiased(properties);
    char accessKey = _getChar(properties, ACCESS_KEY_KEY);
    String name = (String)properties.get(NAME_KEY);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

  {
    String name = (_name == null) ? _DEFAULT_FONT_NAME : _name;
    int size = (_size == -1) ? _DEFAULT_FONT_SIZE : _size;
    int style = (_style == -1) ? _DEFAULT_FONT_STYLE : _style;

    return new FontProxy(name, style, size);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

    String lookAndFeelId = (String)properties.get(LOOK_AND_FEEL_ID_KEY);
    String text = (String)properties.get(TEXT_KEY);
    Color foreground = (Color)properties.get(FOREGROUND_KEY);
    Color background = (Color)properties.get(BACKGROUND_KEY);
    Color surroundingColor = (Color)properties.get(SURROUNDING_COLOR_KEY);
    FontProxy font = CacheUtils.getSharedFont(properties, FONT_KEY);
    int direction = CacheUtils.getReadingDirection(context, properties);
    boolean disabled = CacheUtils.getBoolean(properties, DISABLED_KEY, false);
    boolean textAntialias = CacheUtils.isTextAntialiased(properties);
    char accessKey = _getChar(properties, ACCESS_KEY_KEY);
    String name = (String)properties.get(NAME_KEY);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

      {
        // We need to convert null font names to the default font name
        if (key.equals(ImageConstants.FONT_KEY) &&
             (value instanceof FontProxy))
        {
          FontProxy font = (FontProxy)value;
          if (font.getName() == null)
          {
            if (_font == null)
            {
              _font = new FontProxy(_DEFAULT_FONT_NAME,
                                    font.getStyle(),
                                    font.getSize());
            }

            value = _font;
          }
        }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

  public static FontProxy getSharedFont(FontProxy font)
  {
    if (font == null)
      return null;

    FontProxy sharedFont = _sFontProxyCache.get(font);
    if (sharedFont != null)
      return sharedFont;

    // Create a new FontProxy instance and store it in the cache
    sharedFont = new FontProxy(font.getName(),
                               font.getStyle(),
                               font.getSize());

    _sFontProxyCache.put(sharedFont, sharedFont);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.style.util.FontProxy

      style = ((Font)font).getStyle();
      size = ((Font)font).getSize();
    }
    else
    {
      FontProxy proxy = (FontProxy)font;
      family = proxy.getName();
      style = proxy.getStyle();
      size = proxy.getSize();
    }

    encodeStartTag(name, out);
    encodeValueTag("name", family, out);
    encodeValueTag("size", Integer.toString(size), out);
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.