public class XYTextSimpleAnnotation extends AbstractXYAnnotation
Constructor and Description |
---|
XYTextSimpleAnnotation(ChartPanel chartPanel) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
XYPlot plot,
Rectangle2D dataArea,
ValueAxis domainAxis,
ValueAxis rangeAxis,
int rendererIndex,
PlotRenderingInfo info) |
void |
setColor(Color color) |
void |
setFont(Font font) |
void |
setLocation(float x,
float y) |
void |
setText(String text) |
addEntity, equals, getToolTipText, getURL, hashCode, setToolTipText, setURL
addChangeListener, clone, fireAnnotationChanged, getNotify, hasListener, notifyListeners, removeChangeListener, setNotify
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, removeChangeListener
public XYTextSimpleAnnotation(ChartPanel chartPanel)
public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)
draw
in interface XYAnnotation
draw
in class AbstractXYAnnotation
public void setLocation(float x, float y)
public void setText(String text)
public void setFont(Font font)
public void setColor(Color color)
Copyright © 2015–2021 Fiji. All rights reserved.