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

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

Introduction

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

Prototype

public void setArrowWidth(double width) 

Source Link

Document

Sets the arrow width 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. j ava 2 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;
}