日期:2014-05-20 浏览次数:20685 次
// couldn't get the label above to appear in front, so using an // annotation instead... CategoryTextAnnotation a = new CategoryTextAnnotation("Minimum grade to pass", "Robert", 0.71); a.setCategoryAnchor(CategoryAnchor.START); a.setFont(new Font("SansSerif", Font.PLAIN, 12)); a.setTextAnchor(TextAnchor.BOTTOM_LEFT); plot.addAnnotation(a);