- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation
类的一些代码示例,展示了XYTextAnnotation
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYTextAnnotation
类的具体详情如下:
包路径:org.jfree.chart.annotations.XYTextAnnotation
类名称:XYTextAnnotation
[英]A text annotation that can be placed at a particular (x, y) location on an XYPlot.
[中]可以放置在XYPlot上特定(x,y)位置的文本注释。
代码示例来源: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
/**
* Returns a clone of the annotation.
*
* @return A clone.
*
* @throws CloneNotSupportedException if the annotation can't be cloned.
*/
@Override
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
代码示例来源:origin: jfree/jfreechart
/**
* Sets the rotation angle and sends an {@link AnnotationChangeEvent} to
* all registered listeners. The angle is measured clockwise in radians.
*
* @param angle the angle (in radians).
*
* @see #getRotationAngle()
*/
public void setRotationAngle(double angle) {
this.rotationAngle = angle;
fireAnnotationChanged();
}
代码示例来源: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);
a.setTextAnchor(TextAnchor.BOTTOM_LEFT);
a.setPaint(Color.RED);
a.setOutlinePaint(Color.BLACK);
a.setOutlineVisible(true);
a.setFont(new java.awt.Font("SansSerif", java.awt.Font.BOLD, 14));
代码示例来源:origin: org.zaproxy/zap
if (o instanceof XYTextAnnotation) {
XYTextAnnotation annotation = (XYTextAnnotation)o;
annotation.setY(center);
new XYTextAnnotation(plugin.getName(),
plugin.getTimeStarted().getTime(), center);
updateLabel.setFont(FontUtils.getFont("Sans Serif"));
updateLabel.setRotationAnchor(TextAnchor.BASELINE_CENTER);
updateLabel.setTextAnchor(TextAnchor.BASELINE_CENTER);
updateLabel.setRotationAngle(-3.14 / 2);
updateLabel.setPaint(Color.black);
chart.getXYPlot().addDomainMarker(vm, Layer.BACKGROUND);
chart.getXYPlot().addAnnotation(updateLabel);
代码示例来源:origin: jfree/jfreechart
g2.setFont(getFont());
Shape hotspot = TextUtils.calculateRotatedStringBounds(
getText(), g2, anchorX, anchorY, getTextAnchor(),
getRotationAngle(), getRotationAnchor());
if (this.backgroundPaint != null) {
g2.setPaint(this.backgroundPaint);
g2.fill(hotspot);
g2.setPaint(getPaint());
TextUtils.drawRotatedString(getText(), g2, anchorX, anchorY,
getTextAnchor(), getRotationAngle(), getRotationAnchor());
if (this.outlineVisible) {
g2.setStroke(this.outlineStroke);
String toolTip = getToolTipText();
String url = getURL();
if (toolTip != null || url != null) {
addEntity(info, hotspot, rendererIndex, toolTip, url);
代码示例来源: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: infiniteautomation/ma-core-public
XYTextAnnotation anno = new XYTextAnnotation(" " + dts.getValueText(j), annoX, numericMin
+ (interval * (j + intervalIndex)));
if (!pointTimeSeriesCollection.hasNumericData() && intervalIndex + j == discreteValueCount)
anno.setTextAnchor(TextAnchor.TOP_LEFT);
else
anno.setTextAnchor(TextAnchor.BOTTOM_LEFT);
anno.setPaint(((AbstractRenderer) plot.getRenderer(numericSeriesCount + i)).lookupSeriesPaint(0));
plot.addAnnotation(anno);
代码示例来源: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: superad/pdf-kit
public boolean equals(Object obj) {
if(obj == null) {
return false;
} else if(obj == this) {
return true;
} else if(!(obj instanceof XYPointerFrameAnnotation)) {
return false;
} else if(!super.equals(obj)) {
return false;
} else {
XYPointerFrameAnnotation that = (XYPointerFrameAnnotation)obj;
return this.angle != that.angle?false:(this.tipRadius != that.tipRadius?false:(this.baseRadius != that.baseRadius?false:(this.arrowLength != that.arrowLength?false:(this.arrowWidth != that.arrowWidth?false:(!this.arrowPaint.equals(that.arrowPaint)?false:(!ObjectUtilities.equal(this.arrowStroke, that.arrowStroke)?false:this.labelOffset == that.labelOffset))))));
}
}
代码示例来源:origin: GrammarViz2/grammarviz2_src
Range rangeRange = range.getRange();
XYTextAnnotation a = new XYTextAnnotation(annotationString,
domainRange.getLowerBound() + domainRange.getLength() / 100,
rangeRange.getLowerBound() + 0.5);
a.setTextAnchor(TextAnchor.BOTTOM_LEFT);
a.setPaint(Color.RED);
a.setOutlinePaint(Color.BLACK);
a.setOutlineVisible(true);
a.setFont(new java.awt.Font("SansSerif", java.awt.Font.BOLD, 14));
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
g2.setFont(getFont());
Shape hotspot = TextUtilities.calculateRotatedStringBounds(
getText(), g2, anchorX, anchorY, getTextAnchor(),
getRotationAngle(), getRotationAnchor());
if (this.backgroundPaint != null) {
g2.setPaint(this.backgroundPaint);
g2.fill(hotspot);
g2.setPaint(getPaint());
TextUtilities.drawRotatedString(getText(), g2, anchorX, anchorY,
getTextAnchor(), getRotationAngle(), getRotationAnchor());
if (this.outlineVisible) {
g2.setStroke(this.outlineStroke);
String toolTip = getToolTipText();
String url = getURL();
if (toolTip != null || url != null) {
addEntity(info, hotspot, rendererIndex, toolTip, url);
代码示例来源: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: jfree/jfreechart
return false;
return super.equals(obj);
代码示例来源: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: 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: jfree/jfreechart
/**
* Sets the flag that controls whether or not the outline is drawn and
* sends an {@link AnnotationChangeEvent} to all registered listeners.
*
* @param visible the new flag value.
*
* @since 1.0.13
*/
public void setOutlineVisible(boolean visible) {
this.outlineVisible = visible;
fireAnnotationChanged();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns a clone of the annotation.
*
* @return A clone.
*
* @throws CloneNotSupportedException if the annotation can't be cloned.
*/
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
return false;
return super.equals(obj);
我正在尝试在 DynamicTimeSeriesCollection 中实现 XYTextAnnotation。我不知道如何在 DynamicTimeSeriesCollection 中找到系列的 X
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.getPaint()方法的一些代码示例,展示了XYTextAnnotation.getPa
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.getText()方法的一些代码示例,展示了XYTextAnnotation.getTex
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.fireAnnotationChanged()方法的一些代码示例,展示了XYTextAnn
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.addEntity()方法的一些代码示例,展示了XYTextAnnotation.addE
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.getFont()方法的一些代码示例,展示了XYTextAnnotation.getFon
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.getURL()方法的一些代码示例,展示了XYTextAnnotation.getURL(
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.getRotationAngle()方法的一些代码示例,展示了XYTextAnnotati
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.clone()方法的一些代码示例,展示了XYTextAnnotation.clone()的
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.setPaint()方法的一些代码示例,展示了XYTextAnnotation.setPa
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.setTextAnchor()方法的一些代码示例,展示了XYTextAnnotation.
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.equals()方法的一些代码示例,展示了XYTextAnnotation.equals(
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.()方法的一些代码示例,展示了XYTextAnnotation.()的具体用法。这些代码示
本文整理了Java中org.jfree.chart.annotations.XYTextAnnotation.setFont()方法的一些代码示例,展示了XYTextAnnotation.setFon
我是一名优秀的程序员,十分优秀!