Package org.pentaho.reporting.engine.classic.core.elementfactory

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.RectangleElementFactory


    ClassicEngineBoot.getInstance().start();

    MasterReport report = new MasterReport();
    report.setName("ReportTextLayout001");

    final RectangleElementFactory rectangleElementFactory = new RectangleElementFactory();
    rectangleElementFactory.setColor(Color.GREEN);
    rectangleElementFactory.setStroke(new BasicStroke(1));
    rectangleElementFactory.setX(new Float (0));
    rectangleElementFactory.setY(new Float (10));
    rectangleElementFactory.setMinimumWidth(new Float (-100));
    rectangleElementFactory.setMinimumHeight(new Float (104));
    rectangleElementFactory.setShouldFill(Boolean.TRUE);
    rectangleElementFactory.setShouldDraw(Boolean.TRUE);

    Element labelElement = LabelElementFactory.createLabelElement("Label1",
        new Rectangle2D.Double(0, 10, -100, 104),
        Color.BLACK,
        ElementAlignment.LEFT,
        new FontDefinition("Arial", 40),
        "ppp Title ");
    labelElement.getStyle().setStyleProperty(TextStyleKeys.UNDERLINED, Boolean.TRUE);
    labelElement.getStyle().setStyleProperty(TextStyleKeys.STRIKETHROUGH, Boolean.TRUE);


    report.getReportHeader().addElement(rectangleElementFactory.createElement());
    report.getReportHeader().addElement(labelElement);

    report.setDataFactory(new TableDataFactory
        ("default", new DefaultTableModel()));
View Full Code Here


{
  private RectangleElementFactory elementFactory;

  public RectangleReadHandler()
  {
    elementFactory = new RectangleElementFactory();
  }
View Full Code Here

  private static final String ARC_HEIGHT_ATT = "arc-width";
  private RectangleElementFactory elementFactory;

  public RoundRectangleReadHandler()
  {
    elementFactory = new RectangleElementFactory();
  }
View Full Code Here

  private void setupWatermark(final MasterReport report)
  {
    // use a watermark to draw a frame around the page...
    final Band watermarkBand = report.getWatermark();
    final RectangleElementFactory sef = new RectangleElementFactory();
    sef.setMinimumSize(new FloatDimension(-100.0f, -100));
    sef.setColor(Color.black);
    sef.setStroke(new BasicStroke(1.0f));
    sef.setShouldDraw(Boolean.TRUE);
    sef.setScale(Boolean.TRUE);
    sef.setKeepAspectRatio(Boolean.FALSE);
    watermarkBand.addElement(sef.createElement());
  }
View Full Code Here

{
  private RectangleElementFactory factory;

  public RectangleElementReadHandler()
  {
    factory = new RectangleElementFactory();
  }
View Full Code Here

{
  private RectangleElementFactory factory;

  public RoundRectangleElementReadHandler()
  {
    factory = new RectangleElementFactory();
  }
View Full Code Here

    private void setupWatermark(final MasterReport report)
    {
      // use a watermark to draw a frame around the page...
      final Band watermarkBand = report.getWatermark();
      final RectangleElementFactory sef = new RectangleElementFactory();
      sef.setMinimumSize(new FloatDimension(-100.0f, -100));
      sef.setColor(Color.black);
      sef.setStroke(new BasicStroke(1.0f));
      sef.setShouldDraw(Boolean.TRUE);
      sef.setScale(Boolean.TRUE);
      sef.setKeepAspectRatio(Boolean.FALSE);
      watermarkBand.addElement(sef.createElement());
    }
View Full Code Here

  private void setupWatermark(final MasterReport report)
  {
    // use a watermark to draw a frame around the page...
    final Band watermarkBand = report.getWatermark();
    final RectangleElementFactory sef = new RectangleElementFactory();
    sef.setMinimumSize(new FloatDimension(-100.0f, -100));
    sef.setColor(Color.black);
    sef.setStroke(new BasicStroke(1.0f));
    sef.setShouldDraw(Boolean.TRUE);
    sef.setScale(Boolean.TRUE);
    sef.setKeepAspectRatio(Boolean.FALSE);
    watermarkBand.addElement(sef.createElement());
  }
View Full Code Here

{
  private RectangleElementFactory elementFactory;

  public RectangleReadHandler()
  {
    elementFactory = new RectangleElementFactory();
  }
View Full Code Here

  private static final String ARC_HEIGHT_ATT = "arc-width";
  private RectangleElementFactory elementFactory;

  public RoundRectangleReadHandler()
  {
    elementFactory = new RectangleElementFactory();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.elementfactory.RectangleElementFactory

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.