/** * Creates a new instance with default settings. */ public BlockContainer() { this(new BorderArrangement()); }
if (w == LengthConstraintType.NONE) { if (h == LengthConstraintType.NONE) { contentSize = arrangeNN(container, g2); contentSize = arrangeFN(container, g2, constraint.getWidth()); contentSize = arrangeFF(container, g2, constraint); contentSize = arrangeFR(container, g2, constraint); contentSize = arrangeRR(container, constraint.getWidthRange(), constraint.getHeightRange(), g2);
/** * Performs an arrangement with a fixed width and a range for the height. * * @param container the container. * @param g2 the graphics device. * @param constraint the constraint. * * @return The container size after the arrangement. */ protected Size2D arrangeFR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) { Size2D size1 = arrangeFN(container, g2, constraint.getWidth()); if (constraint.getHeightRange().contains(size1.getHeight())) { return size1; } else { double h = constraint.getHeightRange().constrain(size1.getHeight()); RectangleConstraint c2 = constraint.toFixedHeight(h); return arrange(container, g2, c2); } }
return arrange(container, g2, new RectangleConstraint(width, height));
if (w == LengthConstraintType.NONE) { if (h == LengthConstraintType.NONE) { contentSize = arrangeNN(container, g2); contentSize = arrangeFN(container, g2, constraint.getWidth()); contentSize = arrangeFF(container, g2, constraint); contentSize = arrangeFR(container, g2, constraint); contentSize = arrangeRR(container, constraint.getWidthRange(), constraint.getHeightRange(), g2);
/** * Performs an arrangement with a fixed width and a range for the height. * * @param container the container. * @param g2 the graphics device. * @param constraint the constraint. * * @return The container size after the arrangement. */ protected Size2D arrangeFR(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) { Size2D size1 = arrangeFN(container, g2, constraint.getWidth()); if (constraint.getHeightRange().contains(size1.getHeight())) { return size1; } else { double h = constraint.getHeightRange().constrain(size1.getHeight()); RectangleConstraint c2 = constraint.toFixedHeight(h); return arrange(container, g2, c2); } }
return arrange(container, g2, new RectangleConstraint(width, height));
/** * Creates a new instance with default settings. */ public BlockContainer() { this(new BorderArrangement()); }
/** * Creates a new composite title with a default border arrangement. */ public CompositeTitle() { this(new BlockContainer(new BorderArrangement())); }
/** * Creates a new composite title with a default border arrangement. */ public CompositeTitle() { this(new BlockContainer(new BorderArrangement())); }
BlockContainer blockcontainer = new BlockContainer(new BorderArrangement());
BlockContainer blockcontainer = new BlockContainer(new BorderArrangement());
new BorderArrangement(), item.getDataset(), item.getSeriesKey()); lg.setShapeAnchor(getLegendItemGraphicAnchor());
new BorderArrangement(), item.getDataset(), item.getSeriesKey()); lg.setShapeAnchor(getLegendItemGraphicAnchor());