Package org.pentaho.reporting.libraries.base.util

Examples of org.pentaho.reporting.libraries.base.util.LinkedMap


  /**
   * Default constructor.
   */
  public ReportProperties()
  {
    this.properties = new LinkedMap();
  }
View Full Code Here


  private static InlineSubreportMarker[] collectMarkers(final ProcessState state,
                                                        final RootLevelBand rootLevelBand)
      throws ReportProcessingException
  {
    final LinkedMap markers = collectSubReportMarkers(state, rootLevelBand);
    if (markers == null || markers.size() == 0)
    {
      return EMPTY_MARKERS;
    }

    return (InlineSubreportMarker[])
        markers.values(new InlineSubreportMarker[markers.size()]);
  }
View Full Code Here

  }

  public static boolean hasSubReports(final ProcessState state,
                                      final RootLevelBand rootLevelBand) throws ReportProcessingException
  {
    final LinkedMap markers = collectSubReportMarkers(state, rootLevelBand);
    if (markers == null || markers.size() == 0)
    {
      return false;
    }
    return true;
  }
View Full Code Here

  private static LinkedMap collectSubReportMarkers(final ProcessState state,
                                                   final RootLevelBand rootLevelBand)
      throws ReportProcessingException
  {
    final LinkedMap list = collectSubReportMarkers((Section) rootLevelBand, null);
    if (list == null)
    {

      final InlineSubreportMarker[] subreports = state.getLayoutProcess().getOutputFunction().getInlineSubreports();
      if (subreports.length == 0)
      {
        return null;
      }
      final LinkedMap map = new LinkedMap();
      for (int i = 0; i < subreports.length; i++)
      {
        final InlineSubreportMarker subreport = subreports[i];
        map.put(subreport.getSubreport().getObjectID(), subreport);
      }
      return map;
    }

    final InlineSubreportMarker[] markers = state.getLayoutProcess().getOutputFunction().getInlineSubreports();
View Full Code Here

    for (int i = 0; i < count; i++)
    {
      final SubReport element = rootLevelBand.getSubReport(i);
      if (list == null)
      {
        list = new LinkedMap();
      }
      list.put(element.getObjectID(),
          new InlineSubreportMarker(element, null, SubReportProcessType.BANDED));
    }
    return list;
View Full Code Here

      final ReportElement element = rootLevelBand.getElement(i);
      if (element instanceof SubReport)
      {
        if (list == null)
        {
          list = new LinkedMap();
        }
        list.put(element.getObjectID(),
            new InlineSubreportMarker((SubReport) element, DUMMY_SUBREPORT_MARKER, SubReportProcessType.INLINE));
      }
      else if (element instanceof Section)
View Full Code Here

{
  private LinkedMap linkedMap;

  public ReportParameterValues()
  {
    this.linkedMap = new LinkedMap();
  }
View Full Code Here

        addAttributeGroup((AttributeGroup) entry.getValue());
        continue;
      }
      final AttributeGroup entryGroup = (AttributeGroup) entry.getValue();
      final String name = styleGroup.getName();
      final LinkedMap styles = new LinkedMap();
      final AttributeDefinition[] data = styleGroup.getMetaData();
      for (int i = 0; i < data.length; i++)
      {
        final AttributeDefinition handler = data[i];
        styles.put(handler.getName(), handler);
      }

      final AttributeDefinition[] entryData = entryGroup.getMetaData();
      for (int i = 0; i < entryData.length; i++)
      {
        final AttributeDefinition handler = entryData[i];
        styles.put(handler.getName(), handler);
      }

      addAttributeGroup(new AttributeGroup(name,
          (AttributeDefinition[]) styles.values(new AttributeDefinition[styles.size()])));
    }

  }
View Full Code Here

        addStyleGroup((StyleGroup) entry.getValue());
        continue;
      }
      final StyleGroup entryGroup = (StyleGroup) entry.getValue();
      final String name = styleGroup.getName();
      final LinkedMap styles = new LinkedMap();
      final StyleReadHandler[] data = styleGroup.getMetaData();
      for (int i = 0; i < data.length; i++)
      {
        final StyleReadHandler handler = data[i];
        styles.put(handler.getName(), handler);
      }

      final StyleReadHandler[] entryData = entryGroup.getMetaData();
      for (int i = 0; i < entryData.length; i++)
      {
        final StyleReadHandler handler = entryData[i];
        styles.put(handler.getName(), handler);
      }

      addStyleGroup(new StyleGroup(name, (StyleReadHandler[]) styles.values(new StyleReadHandler[styles.size()])));
    }
  }
View Full Code Here

    return retval;
  }

  public String[] getQueryNames()
  {
    final LinkedMap nameSet = new LinkedMap();
    for (int i = 0; i < dataFactories.size(); i++)
    {
      final DataFactory dataFactory = dataFactories.get(i);
      final String[] queryNames = dataFactory.getQueryNames();
      for (int j = 0; j < queryNames.length; j++)
      {
        final String queryName = queryNames[j];
        nameSet.put(queryName, queryName);
      }
    }
    return (String[]) nameSet.keys(new String[nameSet.size()]);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.util.LinkedMap

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.