Package net.sf.jasperreports.engine.util

Examples of net.sf.jasperreports.engine.util.Pair


          if (seriesLinks == null)
          {
            seriesLinks = new HashMap();
            itemHyperlinks.put(seriesName, seriesLinks);
          }
          Pair xyKey = new Pair(crtXySeries.getXValue(), crtXySeries.getYValue());
          seriesLinks.put(xyKey, crtXySeries.getPrintItemHyperlink());
        }
      }
    }
  }
View Full Code Here


            itemHyperlinks.put(seriesName, seriesLinks);
          }
          // TODO: ?? not sure how to do
          //Pair xyKey = new Pair(crtXySeries.getXValue(), crtXySeries.getYValue());
          //seriesLinks.put(xyKey, crtXySeries.getPrintItemHyperlink());
          Pair taskSubtaskKey = new Pair(crtGanttSeries.getTask(), crtGanttSeries.getSubtask());
          seriesLinks.put(taskSubtaskKey, crtGanttSeries.getPrintItemHyperlink());
        }
      }
    }
  }
View Full Code Here

      Map serieHyperlinks = (Map) itemHyperlinks.get(serie);
      if (serieHyperlinks != null)
      {
        Number x = dataset.getX(itemEntity.getSeriesIndex(), itemEntity.getItem());
        Number y = dataset.getY(itemEntity.getSeriesIndex(), itemEntity.getItem());
        Object xyKey = new Pair(x, y);
        printHyperlink = (JRPrintHyperlink) serieHyperlinks.get(xyKey);
      }
    }
    return printHyperlink;
  }
View Full Code Here

        {
          Rectangle renderingArea = new Rectangle(image.getWidth(), image.getHeight());
         
          if (renderer.getType() == JRRenderable.TYPE_IMAGE)
          {
            imageMapName = (String) imageMaps.get(new Pair(renderer.getId(), renderingArea));
          }
 
          if (imageMapName == null)
          {
            imageMapName = "map_" + getElementIndex().toString();
            imageMapAreas = ((JRImageMapRenderer) originalRenderer).getImageAreaHyperlinks(renderingArea);//FIXMECHART
           
            if (renderer.getType() == JRRenderable.TYPE_IMAGE)
            {
              imageMaps.put(new Pair(renderer.getId(), renderingArea), imageMapName);
            }
          }
        }
      }
 
View Full Code Here

      String category = series.getCategory();
      Number value = series.getValue();
     
      seriesKeys.add(seriesKey);
      categories.add(category);
      values.put(new Pair(seriesKey, category), value);
    }
  }
View Full Code Here

    return categories;
  }
 
  public Number getValue(String seriesKey, String category)
  {
    return (Number) values.get(new Pair(seriesKey, category));
  }
View Full Code Here

        JRCrosstabCell cell = (JRCrosstabCell) it.next();
        String rowTotalGroup = cell.getRowTotalGroup();
        if (rowTotalGroup != null && rowTotalGroup.equals(groupName))
        {
          it.remove();
          cellsMap.remove(new Pair(rowTotalGroup, cell.getColumnTotalGroup()));
          getEventSupport().fireCollectionElementRemovedEvent(PROPERTY_CELLS, cell, -1);
        }
      }
     
      removeRowGroupVars(removed);
View Full Code Here

        JRCrosstabCell cell = (JRCrosstabCell) it.next();
        String columnTotalGroup = cell.getColumnTotalGroup();
        if (columnTotalGroup != null && columnTotalGroup.equals(groupName))
        {
          it.remove();
          cellsMap.remove(new Pair(cell.getRowTotalGroup(), columnTotalGroup));
          getEventSupport().fireCollectionElementRemovedEvent(PROPERTY_CELLS, cell, -1);
        }
      }
     
      removeColGroupVars(removed);
View Full Code Here

    if (columnTotalGroup != null && !columnGroupsMap.containsKey(columnTotalGroup))
    {
      throw new JRException("Row group " + columnTotalGroup + " does not exist.");
    }
   
    Object cellKey = new Pair(rowTotalGroup, columnTotalGroup);
    if (cellsMap.containsKey(cellKey))
    {
      throw new JRException("Duplicate cell in crosstab.");
    }
   
View Full Code Here

   * @param columnTotalGroup the cell's total column group
   * @return the removed cell
   */
  public JRCrosstabCell removeCell(String rowTotalGroup, String columnTotalGroup)
  {
    Object cellKey = new Pair(rowTotalGroup, columnTotalGroup);
   
    JRCrosstabCell cell = (JRCrosstabCell) cellsMap.remove(cellKey);
    if (cell != null)
    {
      cellsList.remove(cell);
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.util.Pair

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.