| java.lang.Object org.jfree.chart.annotations.AbstractXYAnnotation org.jfree.experimental.chart.annotations.XYTitleAnnotation
Constructor Summary | |
public | XYTitleAnnotation(double x, double y, Title title) Creates a new annotation to be displayed at the specified (x, y)
location. | public | XYTitleAnnotation(double x, double y, Title title, RectangleAnchor anchor) Creates a new annotation to be displayed at the specified (x, y)
location. |
XYTitleAnnotation | public XYTitleAnnotation(double x, double y, Title title)(Code) | | Creates a new annotation to be displayed at the specified (x, y)
location.
Parameters: x - the x-coordinate (in data space). Parameters: y - the y-coordinate (in data space). Parameters: title - the title (null not permitted). |
XYTitleAnnotation | public XYTitleAnnotation(double x, double y, Title title, RectangleAnchor anchor)(Code) | | Creates a new annotation to be displayed at the specified (x, y)
location.
Parameters: x - the x-coordinate (in data space). Parameters: y - the y-coordinate (in data space). Parameters: title - the title (null not permitted). Parameters: anchor - the title anchor (null not permitted). |
draw | public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)(Code) | | Draws the annotation. This method is called by the drawing code in the
XYPlot class, you don't normally need to call this method
directly.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: dataArea - the data area. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: rendererIndex - the renderer index. Parameters: info - if supplied, this info object will be populated withentity information. |
equals | public boolean equals(Object obj)(Code) | | Tests this object for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getCoordinateType | public XYCoordinateType getCoordinateType()(Code) | | Returns the coordinate type (set in the constructor).
The coordinate type (never null ). |
getMaxHeight | public double getMaxHeight()(Code) | | Returns the maximum height.
The maximum height. |
getMaxWidth | public double getMaxWidth()(Code) | | Returns the maximum width.
The maximum width. |
getTitle | public Title getTitle()(Code) | | Returns the title for the annotation.
The title. |
getTitleAnchor | public RectangleAnchor getTitleAnchor()(Code) | | Returns the title anchor for the annotation.
The title anchor. |
getX | public double getX()(Code) | | Returns the x-coordinate for the annotation.
The x-coordinate. |
getY | public double getY()(Code) | | Returns the y-coordinate for the annotation.
The y-coordinate. |
hashCode | public int hashCode()(Code) | | Returns a hash code for this object.
A hash code. |
setMaxHeight | public void setMaxHeight(double max)(Code) | | Sets the maximum height.
Parameters: max - the maximum height. |
setMaxWidth | public void setMaxWidth(double max)(Code) | | Sets the maximum width.
Parameters: max - the maximum width (0.0 or less means no maximum). |
Methods inherited from org.jfree.chart.annotations.AbstractXYAnnotation | protected void addEntity(PlotRenderingInfo info, Shape hotspot, int rendererIndex, String toolTipText, String urlText)(Code)(Java Doc) abstract public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public String getURL()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public void setToolTipText(String text)(Code)(Java Doc) public void setURL(String url)(Code)(Java Doc)
|
|
|