Examples of BlockContainer


Examples of com.positive.charts.block.BlockContainer

   *            permitted).
   */
  public LegendTitle(final LegendItemSource source,
      final Arrangement hLayout, final Arrangement vLayout) {
    this.sources = new LegendItemSource[] { source };
    this.items = new BlockContainer(hLayout);
    this.hLayout = hLayout;
    this.vLayout = vLayout;
    this.backgroundPaint = null;
    this.legendItemGraphicEdge = RectangleEdge.LEFT;
    this.legendItemGraphicAnchor = RectangleAnchor.CENTER;
View Full Code Here

Examples of com.positive.charts.block.BlockContainer

    final Size2D result = new Size2D();
    this.fetchLegendItems();
    if (this.items.isEmpty()) {
      return result;
    }
    BlockContainer container = this.wrapper;
    if (container == null) {
      container = this.items;
    }
    final RectangleConstraint c = this.toContentConstraint(constraint);
    final Size2D size = container.arrange(g2, c);
    result.height = this.calculateTotalHeight(size.height);
    result.width = this.calculateTotalWidth(size.width);
    return result;
  }
View Full Code Here

Examples of com.positive.charts.block.BlockContainer

   *            the legend item.
   *
   * @return The block.
   */
  protected Block createLegendItemBlock(final LegendItem item) {
    BlockContainer result = null;
    final LegendGraphic lg = new LegendGraphic(item.getShape(), item
        .getFillPaint());
    // lg.setFillPaintTransformer(item.getFillPaintTransformer());
    lg.setShapeFilled(item.isShapeFilled());
    lg.setLine(item.getLine());
    // lg.setLineStroke(item.getLineStroke());
    // lg.setLinePaint(item.getLinePaint());
    lg.setLineVisible(item.isLineVisible());
    lg.setShapeVisible(item.isShapeVisible());
    lg.setShapeOutlineVisible(item.isShapeOutlineVisible());
    // lg.setOutlinePaint(item.getOutlinePaint());
    // lg.setOutlineStroke(item.getOutlineStroke());
    lg.setPadding(this.legendItemGraphicPadding);

    final LegendItemBlockContainer legendItem = new LegendItemBlockContainer(
        new BorderArrangement(), item.getDataset(), item.getSeriesKey());
    lg.setShapeAnchor(this.getLegendItemGraphicAnchor());
    lg.setShapeLocation(this.getLegendItemGraphicLocation());
    legendItem.add(lg, this.legendItemGraphicEdge);
    final LabelBlock labelBlock = new LabelBlock(item.getLabel(),
        this.itemFont, this.itemPaint);
    labelBlock.setPadding(this.itemLabelPadding);
    legendItem.add(labelBlock);
    legendItem.setToolTipText(item.getToolTipText());
    legendItem.setURLText(item.getURLText());

    result = new BlockContainer(new CenterArrangement());
    result.add(legendItem);

    return result;
  }
View Full Code Here

Examples of com.positive.charts.block.BlockContainer

      g2.fillRectangle(target);
    }
    final BlockFrame border = this.getFrame();
    border.draw(g2, target);
    border.getInsets().trim(target);
    BlockContainer container = this.wrapper;
    if (container == null) {
      container = this.items;
    }
    target = this.trimPadding(target);
    target.x += 2;
    return container.draw(g2, target, params);
  }
View Full Code Here

Examples of org.apache.fop.fo.flow.BlockContainer

            CommonBorderPaddingBackground commonBorderPaddingBackground = null;
            if (node instanceof Block) {
                Block block = (Block) node;
                commonBorderPaddingBackground = block.getCommonBorderPaddingBackground();
            } else if (node instanceof BlockContainer) {
                BlockContainer container = (BlockContainer) node;
                commonBorderPaddingBackground = container.getCommonBorderPaddingBackground();
            }

            if (commonBorderPaddingBackground != null
                    && commonBorderPaddingBackground.hasBorder()) {
                return true;
View Full Code Here

Examples of org.apache.fop.fo.flow.BlockContainer

            CommonBorderPaddingBackground commonBorderPaddingBackground = null;
            if (node instanceof Block) {
                Block block = (Block) node;
                commonBorderPaddingBackground = block.getCommonBorderPaddingBackground();
            } else if (node instanceof BlockContainer) {
                BlockContainer container = (BlockContainer) node;
                commonBorderPaddingBackground = container.getCommonBorderPaddingBackground();
            }

            if (commonBorderPaddingBackground != null
                    && commonBorderPaddingBackground.hasBorder()) {
                return true;
View Full Code Here

Examples of org.apache.fop.fo.flow.BlockContainer

            CommonBorderPaddingBackground commonBorderPaddingBackground = null;
            if (node instanceof Block) {
                Block block = (Block) node;
                commonBorderPaddingBackground = block.getCommonBorderPaddingBackground();
            } else if (node instanceof BlockContainer) {
                BlockContainer container = (BlockContainer) node;
                commonBorderPaddingBackground = container.getCommonBorderPaddingBackground();
            }

            if (commonBorderPaddingBackground != null
                    && commonBorderPaddingBackground.hasBorder()) {
                return true;
View Full Code Here

Examples of org.foray.fotree.fo.obj.BlockContainer

        }
        case BLOCK: {
            return new Block(parent, propertyList);
        }
        case BLOCK_CONTAINER: {
            return new BlockContainer(parent, propertyList);
        }
        case BOOKMARK: {
            return new Bookmark(parent, propertyList);
        }
        case BOOKMARK_TITLE: {
View Full Code Here

Examples of org.jfree.chart.block.BlockContainer

                applyToValueAxis(axis);
            }
        }
        else if (title instanceof CompositeTitle) {
            CompositeTitle ct = (CompositeTitle) title;
            BlockContainer bc = ct.getContainer();
            List blocks = bc.getBlocks();
            Iterator iterator = blocks.iterator();
            while (iterator.hasNext()) {
                Block b = (Block) iterator.next();
                if (b instanceof Title) {
                    applyToTitle((Title) b);
View Full Code Here

Examples of org.jfree.chart.block.BlockContainer

                applyToValueAxis(axis);
            }
        }
        else if (title instanceof CompositeTitle) {
            CompositeTitle ct = (CompositeTitle) title;
            BlockContainer bc = ct.getContainer();
            List blocks = bc.getBlocks();
            Iterator iterator = blocks.iterator();
            while (iterator.hasNext()) {
                Block b = (Block) iterator.next();
                if (b instanceof Title) {
                    applyToTitle((Title) b);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.