Package org.jfree.layouting.util.geom

Examples of org.jfree.layouting.util.geom.StrictInsets


    drawOps = new ArrayList();
    fillOps = new ArrayList();

    border = box.getBorder();
    final ComputedLayoutProperties layoutProperties = box.getComputedLayoutProperties();
    final StrictInsets bWidths = new StrictInsets
        (layoutProperties.getBorderTop(), layoutProperties.getBorderLeft(),
            layoutProperties.getBorderBottom(), layoutProperties.getBorderRight());

    x = StrictGeomUtility.toExternalValue
        (box.getX() + (bWidths.getLeft() / 2));
    y = StrictGeomUtility.toExternalValue
        (box.getY() + (bWidths.getTop() / 2));
    width = StrictGeomUtility.toExternalValue
        (box.getWidth() - (bWidths.getLeft() + bWidths.getRight()) / 2);
    height = StrictGeomUtility.toExternalValue
        (box.getHeight() - (bWidths.getTop() + bWidths.getBottom()) / 2);
    borderSizes = bWidths;

    // todo: Change this to the real background ..
    backgroundColor = box.getBoxDefinition().getBackgroundColor();
  }
View Full Code Here


    drawOps = new ArrayList();
    fillOps = new ArrayList();

    border = box.getBorder();
    final ComputedLayoutProperties layoutProperties = box.getComputedLayoutProperties();
    final StrictInsets bWidths = new StrictInsets
        (layoutProperties.getBorderTop(), layoutProperties.getBorderLeft(),
            layoutProperties.getBorderBottom(), layoutProperties.getBorderRight());

    x = StrictGeomUtility.toExternalValue
        (box.getX() + (bWidths.getLeft() / 2));
    y = StrictGeomUtility.toExternalValue
        (box.getY() + (bWidths.getTop() / 2));
    width = StrictGeomUtility.toExternalValue
        (box.getWidth() - (bWidths.getLeft() + bWidths.getRight()) / 2);
    height = StrictGeomUtility.toExternalValue
        (box.getHeight() - (bWidths.getTop() + bWidths.getBottom()) / 2);
    borderSizes = bWidths;

    // todo: Change this to the real background ..
    backgroundColor = box.getBoxDefinition().getBackgroundColor();
  }
View Full Code Here

    drawOps = new ArrayList();
    fillOps = new ArrayList();

    border = box.getBorder();
    final ComputedLayoutProperties layoutProperties = box.getComputedLayoutProperties();
    final StrictInsets bWidths = new StrictInsets
        (layoutProperties.getBorderTop(), layoutProperties.getBorderLeft(),
            layoutProperties.getBorderBottom(), layoutProperties.getBorderRight());

    x = StrictGeomUtility.toExternalValue
        (box.getX() + (bWidths.getLeft() / 2));
    y = StrictGeomUtility.toExternalValue
        (box.getY() + (bWidths.getTop() / 2));
    width = StrictGeomUtility.toExternalValue
        (box.getWidth() - (bWidths.getLeft() + bWidths.getRight()) / 2);
    height = StrictGeomUtility.toExternalValue
        (box.getHeight() - (bWidths.getTop() + bWidths.getBottom()) / 2);
    borderSizes = bWidths;

    // todo: Change this to the real background ..
    backgroundColor = box.getBoxDefinition().getBackgroundColor();
  }
View Full Code Here

TOP

Related Classes of org.jfree.layouting.util.geom.StrictInsets

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.