Example usage for org.jfree.chart.annotations XYPointerAnnotation setArrowLength

List of usage examples for org.jfree.chart.annotations XYPointerAnnotation setArrowLength

Introduction

In this page you can find the example usage for org.jfree.chart.annotations XYPointerAnnotation setArrowLength.

Prototype

public void setArrowLength(double length) 

Source Link

Document

Sets the arrow length and sends an AnnotationChangeEvent to all registered listeners.

Usage

From source file:org.owasp.benchmark.score.report.Scatter.java

private XYPointerAnnotation makePointer(int x, int y, String msg, TextAnchor anchor, int angle) {
    XYPointerAnnotation pointer = new XYPointerAnnotation(msg, x, y, Math.toRadians(angle));
    pointer.setBackgroundPaint(Color.white);
    pointer.setTextAnchor(anchor);/*from  ww  w. ja v a2  s  .  c o m*/
    pointer.setArrowWidth(4);
    pointer.setArrowLength(8);
    pointer.setArrowPaint(Color.red);
    pointer.setLabelOffset(2);
    pointer.setPaint(Color.red);
    pointer.setFont(theme.getRegularFont());
    return pointer;
}