gpt4 book ai didi

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

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

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

XYTextAnnotation.setFont介绍

[英]Sets the font 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.setOutlineVisible(true);
a.setFont(new java.awt.Font("SansSerif", java.awt.Font.BOLD, 14));

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

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

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

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

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

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

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

a.setOutlineVisible(true);
a.setFont(new java.awt.Font("SansSerif", java.awt.Font.BOLD, 14));

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