/** * Creates the dataset needed for this graph. * @return dataset */ private TimeTableXYDataset createDataset() { TimeTableXYDataset dataset = new TimeTableXYDataset(); KnowledgeBase knowledgeBase = PluginImpl.getInstance().getKnowledgeBase(); Map<TimePeriod, Double> periodQuotas = knowledgeBase.getUnknownFailureCauseQuotaPerTime(intervalSize, filter); for (Entry<TimePeriod, Double> entry : periodQuotas.entrySet()) { dataset.add(entry.getKey(), entry.getValue() * HUNDRED_PERCENT, ""); } return dataset; }
@Override public void setParameters(Map<String, String> parameters) throws MacroExecutionException { String timePeriodTypeString = parameters.get(TIMEPERIOD_TYPE_PARAM); if (timePeriodTypeString != null) { this.timePeriodType = TimePeriodType.forName(timePeriodTypeString); if (this.timePeriodType == null) { throw new MacroExecutionException(String.format("Invalid time period type [%s].", timePeriodTypeString)); } } dataset = new TimeTableXYDataset(localeConfiguration.getTimeZone(), localeConfiguration.getLocale()); }
TimeTableXYDataset dataset = new TimeTableXYDataset(); excludedDataForPeriod = new HashMap<TimePeriod, List<FailureCauseTimeInterval>>(); Set<String> topItems = new HashSet<String>();
final TimeTableXYDataset dataset = new TimeTableXYDataset(); JFreeChart chart = createAreaChart(dataset);
TimeTableXYDataset dataset = new TimeTableXYDataset(); for (int i = 0; i < 10; i++) { TimePeriod period = new Millisecond();
TimeTableXYDataset timetablexydataset = new TimeTableXYDataset(); Day day = new Day(1, 3, 2005); Day day1 = new Day(2, 3, 2005);
TimeTableXYDataset dataset = new TimeTableXYDataset();
protected XYDataset buildDataSet(List<Activity> activities) throws IOException { Map<TimePeriod,Integer> created = new TreeMap<TimePeriod,Integer>(); Map<TimePeriod,Integer> resolved = new TreeMap<TimePeriod,Integer>(); for (Activity a : activities) { if(!a.isUpdate()) { inc(a,created); continue; } if(a.getField()!= IssueField.STATUS) continue; IssueStatus o = IssueStatus.valueOf(a.getOldValue()); IssueStatus n = IssueStatus.valueOf(a.getNewValue()); if(o.needsWork && !n.needsWork) inc(a,resolved); if(!o.needsWork && n.needsWork) inc(a,created); } TimeTableXYDataset ds = new TimeTableXYDataset(); // add resolved first so that this becomes the foreground buildDataSet(resolved, ds, "resolved"); buildDataSet(created, ds, "created"); saveDataset(ds); return ds; }
TimeTableXYDataset dataset = new TimeTableXYDataset();
TimeTableXYDataset dataSet1 = new TimeTableXYDataset(); dataSet1.add(new Year(2006),0,"Series2"); TimeTableXYDataset dataSet2 = new TimeTableXYDataset(); dataSet2.add(new Year(2006),-2,"Series3"); dataSet2.add(new Year(2007),-3,"Series3");
TimeTableXYDataset dataset = new TimeTableXYDataset(); java.util.List<java.awt.Color> lGraphColors = new ArrayList<>(); dataset = new TimeTableXYDataset(); lGraphColors = new ArrayList<>();
protected IntervalXYDataset buildDataSet(List<Activity> activities) throws IOException { TimelineTrendBuilder open = new TimelineTrendBuilder(); TimelineTrendBuilder total = new TimelineTrendBuilder(); for (Activity a : activities) { if(!a.isUpdate()) { open.inc(a); total.inc(a); continue; } if(a.getField()!= IssueField.STATUS) continue; IssueStatus o = IssueStatus.valueOf(a.getOldValue()); IssueStatus n = IssueStatus.valueOf(a.getNewValue()); if(o.needsWork && !n.needsWork) open.dec(a); if(!o.needsWork && n.needsWork) open.inc(a); } TrendBuilder.completeMissingLinks(open,total); TimeTableXYDataset ds = new TimeTableXYDataset(); open.addTo(ds,"open issues"); total.addTo(ds,"total issues"); saveDataset(ds); return ds; }