gpt4 book ai didi

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

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

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

XYTextAnnotation.setPaint介绍

[英]Sets the paint for the annotation and sends an AnnotationChangeEvent to all registered listeners.
[中]设置注释的绘制,并向所有注册的侦听器发送AnnotationChangeEvent。

代码示例

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Applies the settings of this theme to the specified annotation.
 *
 * @param annotation  the annotation.
 */
protected void applyToXYAnnotation(XYAnnotation annotation) {
  if (annotation == null) {
    throw new IllegalArgumentException("Null 'annotation' argument.");
  }
  if (annotation instanceof XYTextAnnotation) {
    XYTextAnnotation xyta = (XYTextAnnotation) annotation;
    xyta.setFont(this.smallFont);
    xyta.setPaint(this.itemLabelPaint);
  }
}

代码示例来源:origin: jfree/jfreechart

/**
 * Applies the settings of this theme to the specified annotation.
 *
 * @param annotation  the annotation.
 */
protected void applyToXYAnnotation(XYAnnotation annotation) {
  Args.nullNotPermitted(annotation, "annotation");
  if (annotation instanceof XYTextAnnotation) {
    XYTextAnnotation xyta = (XYTextAnnotation) annotation;
    xyta.setFont(this.smallFont);
    xyta.setPaint(this.itemLabelPaint);
  }
}

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

a.setPaint(Color.RED);
a.setOutlinePaint(Color.BLACK);
a.setOutlineVisible(true);

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

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: org.zaproxy/zap

updateLabel.setPaint(Color.black);
chart.getXYPlot().addDomainMarker(vm, Layer.BACKGROUND);
chart.getXYPlot().addAnnotation(updateLabel);

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

a.setPaint(Color.RED);
a.setOutlinePaint(Color.BLACK);
a.setOutlineVisible(true);

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

else
  anno.setTextAnchor(TextAnchor.BOTTOM_LEFT);
anno.setPaint(((AbstractRenderer) plot.getRenderer(numericSeriesCount + i)).lookupSeriesPaint(0));
plot.addAnnotation(anno);

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