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

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID


  private long modificationCount;
  private InstanceID instanceId;

  public SimpleStyleSheet(final StyleSheet parent)
  {
    this(new InstanceID(), parent);
  }
View Full Code Here


   */
  private InstanceID id;

  protected AbstractStyleSheet()
  {
    this.id = new InstanceID();
  }
View Full Code Here

  public StyleSheet derive(final boolean preserveId)
  {
    final AbstractStyleSheet s = (AbstractStyleSheet) clone();
    if (preserveId == false)
    {
      s.id = new InstanceID();
    }
    return s;
  }
View Full Code Here

  private String computeConflictingElementName(final ReportDocumentContext reportRenderContext,
                                             final Set<InstanceID> instanceIDs)
  {
    final Map<InstanceID, Element> elementsById = reportRenderContext.getSharedRenderer().getElementsById();
    final InstanceID firstElement = instanceIDs.iterator().next();
    final Element conflictingElement = elementsById.get(firstElement);
    if (conflictingElement == null)
    {
      return Messages.getString("OverlappingElementsInspection.UnidentifiedElement");
    }
View Full Code Here

    // remove all reports that share the same master-report.
    final LinkedHashMap<InstanceID, ReportRenderContext> map = new LinkedHashMap<InstanceID, ReportRenderContext>();
    for (int i = 0; i < closeContexts.length; i++)
    {
      final ReportRenderContext closeContext = closeContexts[i];
      final InstanceID id = closeContext.getMasterReportElement().getObjectID();
      if (map.containsKey(id) == false)
      {
        map.put(id, closeContext);
      }
      else
View Full Code Here

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

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

    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    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];
View Full Code Here

    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    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];
View Full Code Here

    final DesignerPageDrawable pageDrawable = rendererRoot.getLogicalPageDrawable();
    final RenderNode[] allNodes = pageDrawable.getNodesAt(point.getX(), point.getY(), null, null);
    for (int i = allNodes.length - 1; i >= 0; i -= 1)
    {
      final RenderNode node = allNodes[i];
      final InstanceID instanceId = node.getInstanceId();

      final Element element = id.get(instanceId);
      if (element == null)
      {
        continue;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.util.InstanceID

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.