public String getYearsGraphString(int imgWidth, int imgHeight) { final String yearFormatKey = "PartitionSize.dateHeader.yearGraphLabel"; Graph yearGraph = PartitionsToGraph.partsOfPartsToGraph( years, results.getFormatter(), yearFormatKey, imgWidth, imgHeight); for (RegionGraphElement rge : yearGraph.getRegions()) { if (rge.getData().hasHighlightedValue()) { // rge.getData().setHighlightedValue(-1); } } return GraphEncoder.encode(yearGraph); } /**
public String getYearsGraphString(int imgWidth, int imgHeight) { final String yearFormatKey = "PartitionSize.dateHeader.yearGraphLabel"; Graph yearGraph = PartitionsToGraph.partsOfPartsToGraph( years, results.getFormatter(), yearFormatKey, imgWidth, imgHeight); for (RegionGraphElement rge : yearGraph.getRegions()) { if (rge.getData().hasHighlightedValue()) { // rge.getData().setHighlightedValue(-1); } } return GraphEncoder.encode(yearGraph); } /**
/** * @param uiResults the UIResults holding replay info */ public ToolBarData(UIResults uiResults) { this.uiResults = uiResults; fmt = uiResults.getFormatter(); results = uiResults.getCaptureResults(); curResult = uiResults.getResult(); findRelativeLinks(); Date firstDate = uiResults.getWbRequest().getStartDate(); Date lastDate = uiResults.getWbRequest().getEndDate(); yearPartitions = yearPartitioner.getRange(yearSize,firstDate,lastDate); Date firstYearDate = yearPartitions.get(0).getStart(); Date lastYearDate = yearPartitions.get(yearPartitions.size()-1).getEnd(); monthPartitions = monthPartitioner.getRange(monthSize,firstYearDate,lastYearDate); Iterator<CaptureSearchResult> it = results.iterator(); monthPartitioner.populate(monthPartitions,it); yearPartitioner.populate(yearPartitions,monthPartitions.iterator()); }
/** * @param uiResults the UIResults holding replay info */ public ToolBarData(UIResults uiResults) { this.uiResults = uiResults; fmt = uiResults.getFormatter(); results = uiResults.getCaptureResults(); curResult = uiResults.getResult(); findRelativeLinks(); Date firstDate = uiResults.getWbRequest().getStartDate(); Date lastDate = uiResults.getWbRequest().getEndDate(); yearPartitions = yearPartitioner.getRange(yearSize,firstDate,lastDate); Date firstYearDate = yearPartitions.get(0).getStart(); Date lastYearDate = yearPartitions.get(yearPartitions.size()-1).getEnd(); monthPartitions = monthPartitioner.getRange(monthSize,firstYearDate,lastYearDate); Iterator<CaptureSearchResult> it = results.iterator(); monthPartitioner.populate(monthPartitions,it); yearPartitioner.populate(yearPartitions,monthPartitions.iterator()); }