Examples of AttributeList


Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "group-body", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    writeChildElements(bundle, state, xmlWriter, (Section) element);
    xmlWriter.writeCloseTag();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "crosstab-other-group", attList, XmlWriterSupport.OPEN);

    final CrosstabOtherGroup group = (CrosstabOtherGroup) element;
    if (group.getField() != null)
    {
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

  public static void writeImageMap(final XmlWriter writer,
                                   final ImageMap imageMap,
                                   final double scale) throws IOException
  {
    final AttributeList attrs = new AttributeList();
    if (writer.isNamespaceDefined(LibXmlInfo.XHTML_NAMESPACE) == false)
    {
      attrs.addNamespaceDeclaration("", LibXmlInfo.XHTML_NAMESPACE);
    }

    final String[] mapNamespaces = imageMap.getNameSpaces();
    for (int i = 0; i < mapNamespaces.length; i++)
    {
      final String namespace = mapNamespaces[i];
      final String[] names = imageMap.getNames(namespace);
      for (int j = 0; j < names.length; j++)
      {
        final String name = names[j];
        final String value = imageMap.getAttribute(namespace, name);
        attrs.setAttribute(namespace, name, value);
      }
    }

    writer.writeTag(LibXmlInfo.XHTML_NAMESPACE, "map", attrs, XmlWriter.OPEN);
    final ImageMapEntry[] imageMapEntries = imageMap.getMapEntries();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

  private static void writeMapEntry(final XmlWriter writer,
                                    final ImageMapEntry mapEntry,
                                    final double scale) throws IOException
  {
    final AttributeList attrs = new AttributeList();
    final String[] mapNamespaces = mapEntry.getNameSpaces();
    for (int i = 0; i < mapNamespaces.length; i++)
    {
      final String namespace = mapNamespaces[i];
      final String[] names = mapEntry.getNames(namespace);
      for (int j = 0; j < names.length; j++)
      {
        final String name = names[j];
        final String value = mapEntry.getAttribute(namespace, name);
        attrs.setAttribute(namespace, name, value);
      }
    }

    final String areaType = mapEntry.getAreaType();
    attrs.setAttribute(LibXmlInfo.XHTML_NAMESPACE, "shape", areaType);
    if ("default".equals(areaType) == false)
    {
      final float[] coordinates = mapEntry.getAreaCoordinates();
      attrs.setAttribute(LibXmlInfo.XHTML_NAMESPACE, "coords", convertCoordinates(coordinates, scale));
    }
   
    writer.writeTag(LibXmlInfo.XHTML_NAMESPACE, "area", attrs, XmlWriter.CLOSE);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "report-header", XmlWriterSupport.OPEN);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "root-level-content", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    writeChildElements(bundle, state, xmlWriter, (Band) element);
    xmlWriter.writeCloseTag();
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "rectangle", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    xmlWriter.writeCloseTag();

  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "resource-label", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    xmlWriter.writeCloseTag();

  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "date-field", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    xmlWriter.writeCloseTag();
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

  public void writeElement(final WriteableDocumentBundle bundle,
                           final BundleWriterState state,
                           final XmlWriter xmlWriter,
                           final Element element) throws IOException, BundleWriterException
  {
    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(SimpleBarcodesModule.NAMESPACE, "simple-barcode", attList, XmlWriter.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    xmlWriter.writeCloseTag();
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList

    if (element == null)
    {
      throw new NullPointerException();
    }

    final AttributeList attList = createMainAttributes(element, xmlWriter);
    xmlWriter.writeTag(BundleNamespaces.LAYOUT, "resource-field", attList, XmlWriterSupport.OPEN);
    writeElementBody(bundle, state, element, xmlWriter);
    xmlWriter.writeCloseTag();

  }
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.