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

Examples of org.pentaho.reporting.engine.classic.core.Element


    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);
View Full Code Here


  private Element element;
  private StrokeStyleDefinitionReadHandler strokeStyleDefinitionReadHandler;

  public RectangleElementReadHandler()
  {
    element = new Element();
    element.setElementType(new RectangleType());
    element.getStyle().setStyleProperty(ElementStyleKeys.SCALE, Boolean.TRUE);

  }
View Full Code Here

*/
public class ResourceFieldReportElementReadHandler extends AbstractTextElementReadHandler
{
  public ResourceFieldReportElementReadHandler()
  {
    final Element element = new Element();
    element.setElementType(new ResourceFieldType());
    setElement(element);
  }
View Full Code Here

  private ReportFunctionReadHandler dataCollectorFunction;
  private ReportFunctionReadHandler dataCollectorFunction2;

  public ChartElementReadHandler()
  {
    this.element = new Element();
    this.element.setElementType(new LegacyChartType());
  }
View Full Code Here

*/
public class MessageReportElementReadHandler extends AbstractTextElementReadHandler
{
  public MessageReportElementReadHandler()
  {
    final Element element = new Element();
    element.setElementType(new MessageType());
    setElement(element);
  }
View Full Code Here

  {
    final Element[] elementBuffer = b.unsafeGetElementArray();
    final int elementCount = elementBuffer.length;
    for (int i = 0; i < elementCount; i++)
    {
      final Element e = elementBuffer[i];
      if (e instanceof Band)
      {
        w.write("<band>");
        writeBand((Band) e);
        w.write("</band>");
      }
      else
      {
        w.write("<element name=\"");
        w.write(entityParser.encodeEntities(e.getName()));
        w.write("\">");
        final String value = String.valueOf(e.getElementType().getValue(getRuntime(), e));
        w.write(entityParser.encodeEntities(value));
        w.write("</element>");
      }

    }
View Full Code Here

    final MasterReport report = new MasterReport();
    final StaticDataFactory staticDataFactory = new StaticDataFactory();
    report.setDataFactory(staticDataFactory);
    report.setQuery("org.pentaho.reporting.engine.classic.testcases.base.functionality.demohandler.SubReportProcessingCrashTestHandler#createMainTableModel()");

    final Element textElement = TextFieldElementFactory.createStringElement("reportField1", new Rectangle(0, 0, 100, 20), Color.BLACK, ElementAlignment.LEFT, ElementAlignment.TOP, new FontDefinition("Arial", 12), "-", "c1");
    report.getItemBand().addElement(textElement);

    final SubReport subReport = new SubReport();
    subReport.addInputParameter("c1", "c1");

    subReport.setQuery("org.pentaho.reporting.engine.classic.testcases.base.functionality.demohandler.SubReportProcessingCrashTestHandler#createSubReportTableModel(c1)");
    final Element subReportTextElement = TextFieldElementFactory.createStringElement("subreportField1", new Rectangle(20, 0, 100, 20), Color.RED, ElementAlignment.LEFT, ElementAlignment.TOP, new FontDefinition("Arial", 12), "-", "t1");
    subReport.getItemBand().addElement(subReportTextElement);
    report.getItemBand().addSubReport(subReport);

    final Element textElementT1 = TextFieldElementFactory.createStringElement("reportFieldT1", new Rectangle(0, 20, 100, 20), Color.BLACK, ElementAlignment.LEFT, ElementAlignment.TOP, new FontDefinition("Arial", 12), "-", "t2");
    report.getItemBand().addElement(textElementT1);

    final ParameterMapping[] parameterMappings = subReport.getExportMappings();

    for (int i = 0; i < parameterMappings.length; i++)
View Full Code Here

    }
  }

  protected Element createElement(final String elementType) throws ParseException
  {
    return new Element();
  }
View Full Code Here

   * @param attrs the attributes.
   * @throws SAXException if there is a parsing error.
   */
  protected void startParsing(final Attributes attrs) throws SAXException
  {
    final Element element = getElement();
    final int length = attrs.getLength();
    for (int i = 0; i < length; i++)
    {
      if ("xmlns".equals(attrs.getQName(i)) ||
          attrs.getQName(i).startsWith("xmlns:"))
View Full Code Here

      throws SAXException
  {
    for (int i = 0; i < elementHandlers.size(); i++)
    {
      final XmlReadHandler readHandler = (XmlReadHandler) elementHandlers.get(i);
      final Element e = (Element) readHandler.getObject();
      band.addElement(e);
    }

    for (int i = 0; i < styleExpressionHandlers.size(); i++)
    {
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.Element

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.