public void showAnnotations() { XYItemRenderer renderer = getChart().getXYPlot().getRenderer(); renderer.removeAnnotations(); for (int i = 0; i < eccSeries.getItemCount(); i++) { XYDataItem item = (XYDataItem) eccSeries.getDataItem(i); XYTextAnnotation annon = new XYTextAnnotation(new Integer(i).toString(), item.getX().longValue(), item .getY().longValue()); renderer.addAnnotation(annon); } }
+ this.session.chartData.getSAXAlphabetSize(); XYTextAnnotation a = new XYTextAnnotation(annotationString, domainRange.getLowerBound() + domainRange.getLength() / 100, rangeRange.getLowerBound() + rangeRange.getLength() / 5 * 3.5);
XYTextAnnotation text1 = new XYTextAnnotation("盲区", 4, 98); text1.setFont(FontUtil.getFont(Font.PLAIN, 18)); text1.setPaint(new Color(255,165,0)); XYTextAnnotation text2 = new XYTextAnnotation("待发展共识区", 10, 3); text2.setFont(FontUtil.getFont(Font.PLAIN, 18)); text2.setPaint(new Color(253, 88, 72)); XYTextAnnotation text3 = new XYTextAnnotation("潜能区", 96, 3); text3.setFont(FontUtil.getFont(Font.PLAIN, 18)); text3.setPaint(new Color(45, 139, 251)); XYTextAnnotation text4 = new XYTextAnnotation("优势共识区", 93, 98); text4.setFont(FontUtil.getFont(Font.PLAIN, 18)); text4.setPaint(new Color(20, 149, 134));
renderer3.setSeriesItemLabelsVisible(2, false); XYTextAnnotation annotation0=new XYTextAnnotation("2.0 count",maxCountValue, 2*maxCountValue); annotation0.setFont(new Font("SansSerif", Font.BOLD, 11)); plot.addAnnotation(annotation0); XYTextAnnotation annotation1=new XYTextAnnotation("count", maxCountValue, maxCountValue); annotation1.setFont(new Font("SansSerif", Font.BOLD, 11)); plot.addAnnotation(annotation1); XYTextAnnotation annotation2=new XYTextAnnotation("0.5 count",maxCountValue, 0.5*maxCountValue); annotation2.setFont(new Font("SansSerif", Font.BOLD, 11)); plot.addAnnotation(annotation2);
renderer3.setSeriesItemLabelsVisible(2, false); XYTextAnnotation annotation0=new XYTextAnnotation("2.0 count",12000.0, 15500.0); annotation0.setFont(new Font("SansSerif", Font.BOLD, 11)); plot.addAnnotation(annotation0); XYTextAnnotation annotation1=new XYTextAnnotation("count",13000.0, 10000.0); annotation1.setFont(new Font("SansSerif", Font.BOLD, 11)); plot.addAnnotation(annotation1); XYTextAnnotation annotation2=new XYTextAnnotation("0.5 count",11000.0, 3500.0); annotation2.setFont(new Font("SansSerif", Font.BOLD, 11)); plot.addAnnotation(annotation2);
renderer3.setSeriesItemLabelsVisible(2, false); XYTextAnnotation annotation0 = new XYTextAnnotation("2.0 count", 12000.0, 15500.0); annotation0.setFont(new Font("SansSerif", Font.BOLD, 11)); plot.addAnnotation(annotation0); XYTextAnnotation annotation1 = new XYTextAnnotation("count", 13000.0, 10000.0); annotation1.setFont(new Font("SansSerif", Font.BOLD, 11)); plot.addAnnotation(annotation1); XYTextAnnotation annotation2 = new XYTextAnnotation("0.5 count", 11000.0, 3500.0); annotation2.setFont(new Font("SansSerif", Font.BOLD, 11));
new XYTextAnnotation(plugin.getName(), plugin.getTimeStarted().getTime(), center); updateLabel.setFont(FontUtils.getFont("Sans Serif"));
Range rangeRange = range.getRange(); XYTextAnnotation a = new XYTextAnnotation(annotationString, domainRange.getLowerBound() + domainRange.getLength() / 100, rangeRange.getLowerBound() + 0.5);
XYTextAnnotation anno = new XYTextAnnotation(" " + dts.getValueText(j), annoX, numericMin + (interval * (j + intervalIndex))); if (!pointTimeSeriesCollection.hasNumericData() && intervalIndex + j == discreteValueCount)