Package org.pentaho.reporting.engine.classic.core.layout.model.context

Examples of org.pentaho.reporting.engine.classic.core.layout.model.context.StaticBoxLayoutProperties


      // the computed position of an inline-element must be the same as the position of the parent element.
      // A inline-box always has an other inline-box as parent (the paragraph-pool-box is the only exception;
      // and this one is handled elsewhere).

      // Top and bottom margins are not applied to inline-elements.
      final StaticBoxLayoutProperties blp = parent.getStaticBoxLayoutProperties();
      final BoxDefinition bdef = parent.getBoxDefinition();
      final long insetTop = (blp.getBorderTop() + bdef.getPaddingTop());

      return (insetTop + parent.getCachedY());
    }
    else
    {
View Full Code Here


    {
      box.setFinishedPaginate(true);
    }
    else
    {
      final StaticBoxLayoutProperties sblp = box.getStaticBoxLayoutProperties();
      if (sblp.isAvoidPagebreakInside() || sblp.getWidows() > 0 || sblp.getOrphans() > 0)
      {
        // Check, whether this box sits on a break-position. In that case, we can call that box finished as well.
        final long boxY = box.getY();
        final PageBreakPositions breakUtility = paginationTableState.getBreakPositions();
        final long nextMinorBreak = breakUtility.findNextBreakPosition(boxY + shift);
View Full Code Here

    if (box.getTextEllipseBox() != null)
    {
      return false;
    }

    final StaticBoxLayoutProperties sblp = box.getStaticBoxLayoutProperties();
    final BoxDefinition bdef = box.getBoxDefinition();
    final long boxContentX2 = (box.getX() + box.getWidth() - bdef.getPaddingRight() - sblp.getBorderRight());
    if (boxContentX2 > getContentAreaX2())
    {
      // This is an overflow. Compute the text-ellipse ..
      final RenderBox textEllipseBox = processTextEllipse(box, getContentAreaX2());
      box.setTextEllipseBox(textEllipseBox);
View Full Code Here

    this.pinned = -1;
    this.tableValidationAge = -1;
    this.boxDefinition = boxDefinition;
    this.setOpen(true);
    this.staticBoxLayoutProperties = new StaticBoxLayoutProperties();
    this.staticBoxPropertiesAge = -1;
    this.staticBoxLayoutProperties.setBreakAfter
        (getStyleSheet().getBooleanStyleProperty(BandStyleKeys.PAGEBREAK_AFTER));
    this.stateKey = stateKey;
    this.descendantCount = 1;
View Full Code Here

  public RenderBox create(final StyleSheet styleSheet)
  {
    final RenderBox b = (RenderBox) derive(false);
    b.reinit(styleSheet, AutoLayoutBoxType.INSTANCE, ReportAttributeMap.EMPTY_MAP, new InstanceID());
    b.boxDefinition = BoxDefinition.EMPTY;
    b.staticBoxLayoutProperties = new StaticBoxLayoutProperties();
    b.staticBoxPropertiesAge = -1;
    b.stateKey = null;
    b.setOpen(true);
    b.setMarkedOpen(false);
    b.setMarkedSeen(false);
View Full Code Here

    if (getSelectionModel().isSelected(BorderSelection.BOTTOM_RIGHT))
    {
      g2.fillRect(rightSelectorEdge, bottomSelectorEdge, 20, 20);
    }

    final StaticBoxLayoutProperties sblp = new StaticBoxLayoutProperties();

    final BoxDefinition definition = boxDefinitionFactory.getBoxDefinition(elementStyleSheet);
    final Border border = definition.getBorder();
    sblp.setBorderTop(border.getTop().getWidth());
    sblp.setBorderLeft(border.getLeft().getWidth());
    sblp.setBorderBottom(border.getBottom().getWidth());
    sblp.setBorderRight(border.getRight().getWidth());

    borderRenderer.paintBackgroundAndBorder(sblp, definition, elementStyleSheet,
        StrictGeomUtility.toInternalValue(10),
        StrictGeomUtility.toInternalValue(10),
        StrictGeomUtility.toInternalValue(Math.max(80, getWidth() - 20)),
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.model.context.StaticBoxLayoutProperties

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.