Package org.jfree.layouting.renderer.text

Examples of org.jfree.layouting.renderer.text.ExtendedBaselineInfo


  public BoxAlignContext(RenderBox box)
  {
    super(box);

    ExtendedBaselineInfo baselineInfo = box.getBaselineInfo();
    if (baselineInfo == null)
    {
      baselineInfo = box.getNominalBaselineInfo();
    }

    final CSSValue dominantBaselineValue = box.getDominantBaseline();
    setDominantBaseline(TextUtility.translateDominantBaseline
        (dominantBaselineValue, baselineInfo.getDominantBaseline()));

    final ComputedLayoutProperties blp = box.getComputedLayoutProperties();
    insetsTop = blp.getBorderTop() + blp.getPaddingTop();
    insetsBottom = blp.getBorderBottom() + blp.getPaddingBottom();

    baselines = (long[]) baselineInfo.getBaselines().clone();
    for (int i = 1; i < baselines.length; i++)
    {
      baselines[i] += insetsTop;
    }
    baselines[ExtendedBaselineInfo.AFTER_EDGE] =
View Full Code Here


  private long baselineShift;

  public InlineBlockAlignContext(final RenderBox box)
  {
    super(box);
    ExtendedBaselineInfo baselineInfo = box.getBaselineInfo();
    this.baselines = baselineInfo.getBaselines();
    setDominantBaseline(baselineInfo.getDominantBaseline());
  }
View Full Code Here

TOP

Related Classes of org.jfree.layouting.renderer.text.ExtendedBaselineInfo

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.