Package org.apache.myfaces.trinidadinternal.image.painter

Examples of org.apache.myfaces.trinidadinternal.image.painter.ImmInsets


    // We use a special ButtonPainter for Dialog which dynamically
    // computes the margins based on the atual space used by the
    // Dialog font glyphs.
    if ("dialog".equalsIgnoreCase(_getFontName(requestedProperties)))
    {
      ImmInsets insets = BlafImageUtils.__getDialogPadding();

      // We want to have a total top margin of 3 pixels from the
      // top of the tallest glyph in the font and a bottom margin
      // of 3 pixels beneath the base line.
      // needs to be at least 3 from the bottom to see access
View Full Code Here


    if (_hasEndCurve(context))
      end = halfCurveWidth;


    if (context.getReadingDirection() == LocaleUtils.DIRECTION_RIGHTTOLEFT)
      return new ImmInsets(top, end, bottom, start);

    return new ImmInsets(top, start, bottom, end);
  }
View Full Code Here

      // If we've got an extra pixel, tack it on the top
      if ((vertInsets % 2) == 1)
        topInset++;
    }

    return new ImmInsets(topInset,
                         leftSize.width,
                         bottomInset,
                         rightSize.width);
  }
View Full Code Here

    }

    // Just use the descent as the bottom padding
    int bottom = metrics.getDescent();

    _sDialogPadding = new ImmInsets(top, 0, bottom, 0);


    // Clean up
    g.dispose();
    image.flush();
View Full Code Here

    if (_hasEndCurve(context))
      end = halfCurveWidth;


    if (context.getReadingDirection() == LocaleUtils.DIRECTION_RIGHTTOLEFT)
      return new ImmInsets(top, end, bottom, start);

    return new ImmInsets(top, start, bottom, end);
  }
View Full Code Here

      // If we've got an extra pixel, tack it on the top
      if ((vertInsets % 2) != 0)
        topInset++;
    }

    return new ImmInsets(topInset,
                         leftSize.width,
                         bottomInset,
                         rightSize.width);
  }
View Full Code Here

    }

    // Just use the descent as the bottom padding
    int bottom = metrics.getDescent();

    _sDialogPadding = new ImmInsets(top, 0, bottom, 0);


    // Clean up
    g.dispose();
    image.flush();
View Full Code Here

    // We use a special ButtonPainter for Dialog which dynamically
    // computes the margins based on the atual space used by the
    // Dialog font glyphs.
    if ("dialog".equalsIgnoreCase(_getFontName(requestedProperties)))
    {
      ImmInsets insets = BlafImageUtils.__getDialogPadding();

      // We want to have a total top margin of 3 pixels from the
      // top of the tallest glyph in the font and a bottom margin
      // of 3 pixels beneath the base line.
      // needs to be at least 3 from the bottom to see access
View Full Code Here

    }

    // Just use the descent as the bottom padding
    int bottom = metrics.getDescent();

    _sDialogPadding = new ImmInsets(top, 0, bottom, 0);


    // Clean up
    g.dispose();
    image.flush();
View Full Code Here

      // If we've got an extra pixel, tack it on the top
      if ((vertInsets % 2) != 0)
        topInset++;
    }

    return new ImmInsets(topInset,
                         leftSize.width,
                         bottomInset,
                         rightSize.width);
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.image.painter.ImmInsets

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.