Package com.eclipsesource.tabris.passepartout

Examples of com.eclipsesource.tabris.passepartout.Bounds


  }

  private Bounds calculateBounds( Bounds preferedBounds, List<Instruction> instructions ) {
    int width = computeWidth( instructions );
    int height = computeHeight( preferedBounds, instructions );
    Bounds bounds = stacker.stack( width, height );
    return applyMargins( bounds, instructions );
  }
View Full Code Here


    }
    return columns;
  }

  private Bounds applyMargins( Bounds bounds, List<Instruction> instructions ) {
    Bounds result = bounds;
    for( Instruction instruction : instructions ) {
      if( instruction instanceof MarginInstruction ) {
        result = ( ( MarginInstruction )instruction ).computeBounds( result, environment.getParentFontSize() );
      }
    }
View Full Code Here

  public Bounds stack( int width, int height ) {
    int cellWidth = adjustCellWidth( width );
    handleLineBreak( cellWidth );
    adjustRowHeight( height );
    Bounds cellBounds = new Bounds( rowX, nowY, cellWidth, height );
    assignNewX( cellWidth );
    return cellBounds;
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.passepartout.Bounds

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.