gpt4 book ai didi

org.jfree.chart.annotations.XYTextAnnotation.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 15:37:05 25 4
gpt4 key购买 nike

本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.<init>()方法的一些代码示例,展示了XYTextAnnotation.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYTextAnnotation.<init>()方法的具体详情如下:
包路径:org.jfree.chart.annotations.XYTextAnnotation
类名称:XYTextAnnotation
方法名:<init>

XYTextAnnotation.<init>介绍

[英]Creates a new annotation to be displayed at the given coordinates. The coordinates are specified in data space (they will be converted to Java2D space for display).
[中]创建要在给定坐标处显示的新注释。坐标在数据空间中指定(它们将被转换为Java2D空间进行显示)。

代码示例

代码示例来源:origin: RUB-NDS/EccPlayground

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);
  }
}

代码示例来源:origin: GrammarViz2/grammarviz2_src

+ this.session.chartData.getSAXAlphabetSize();
XYTextAnnotation a = new XYTextAnnotation(annotationString,
  domainRange.getLowerBound() + domainRange.getLength() / 100,
  rangeRange.getLowerBound() + rangeRange.getLength() / 5 * 3.5);

代码示例来源:origin: superad/pdf-kit

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));

代码示例来源:origin: matsim-org/matsim

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);

代码示例来源:origin: matsim-org/matsim

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);

代码示例来源:origin: matsim-org/matsim

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));

代码示例来源:origin: org.zaproxy/zap

new XYTextAnnotation(plugin.getName(), 
        plugin.getTimeStarted().getTime(), center);
updateLabel.setFont(FontUtils.getFont("Sans Serif"));

代码示例来源:origin: GrammarViz2/grammarviz2_src

Range rangeRange = range.getRange();
XYTextAnnotation a = new XYTextAnnotation(annotationString,
  domainRange.getLowerBound() + domainRange.getLength() / 100,
  rangeRange.getLowerBound() + 0.5);

代码示例来源:origin: infiniteautomation/ma-core-public

XYTextAnnotation anno = new XYTextAnnotation(" " + dts.getValueText(j), annoX, numericMin
    + (interval * (j + intervalIndex)));
if (!pointTimeSeriesCollection.hasNumericData() && intervalIndex + j == discreteValueCount)

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com