Examples of ReportElement


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

    this.newValue = newValue;
  }

  public void undo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setStyleExpression(styleKey, oldValue);
  }
View Full Code Here

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

  private void iterateSection(final Section s)
  {
    final int elementCount = s.getElementCount();
    for (int i = 0; i < elementCount; i++)
    {
      final ReportElement e = s.getElement(i);
      if (e instanceof SubReport)
      {
        continue;
      }
      if (e instanceof RootLevelBand)
      {
        final CachedLayoutData layoutData = ModelUtility.getCachedLayoutData((Element) e);
        final double height = StrictGeomUtility.toExternalValue(layoutData.getHeight());
        e.setAttribute(ReportDesignerBoot.DESIGNER_NAMESPACE, "visual-height", new Double(height)); // NON-NLS
      }

      if (e instanceof Section)
      {
        iterateSection((Section) e);
View Full Code Here

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

    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final ElementStyleSheet styleSheet = element.getStyle();
      final Object[] properties = oldStyle[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
        styleSheet.setStyleProperty(key, properties[key.identifier]);
View Full Code Here

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

    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final ElementStyleSheet styleSheet = element.getStyle();
      final Object[] properties = currentStyle[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
        styleSheet.setStyleProperty(key, properties[key.identifier]);
View Full Code Here

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

    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    final InstanceID[] visualElements = getVisualElements();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final Expression[] properties = oldExpressions[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
        element.setStyleExpression(key, properties[key.identifier]);
      }
    }
  }
View Full Code Here

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

    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    final InstanceID[] visualElements = getVisualElements();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final Expression[] properties = newExpressions[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
        element.setStyleExpression(key, properties[key.identifier]);
      }
    }
  }
View Full Code Here

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

    this.newValue = newValue;
  }

  public void undo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.getStyle().setStyleProperty(styleKey, oldValue);
  }
View Full Code Here

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

    elementById.getStyle().setStyleProperty(styleKey, oldValue);
  }

  public void redo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.getStyle().setStyleProperty(styleKey, newValue);
  }
View Full Code Here

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

    elementById.setStyleExpression(styleKey, oldValue);
  }

  public void redo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setStyleExpression(styleKey, newValue);
  }
View Full Code Here

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

    this.newValue = newValue;
  }

  public void undo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setAttribute(attributeNamespace, attributeName, oldValue);
  }
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.