public class

XYAnnotationEntity

extends ChartEntity
implements Serializable
java.lang.Object
   ↳ org.jfree.chart.entity.ChartEntity
     ↳ org.jfree.chart.entity.XYAnnotationEntity

Class Overview

A chart entity that represents an annotation on an XYPlot.

Summary

Public Constructors
XYAnnotationEntity(Shape hotspot, int rendererIndex, String toolTipText, String urlText)
Creates a new entity.
Public Methods
boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.
int getRendererIndex()
Returns the renderer index.
void setRendererIndex(int index)
Sets the renderer index.
[Expand]
Inherited Methods
From class org.jfree.chart.entity.ChartEntity
From class java.lang.Object

Public Constructors

public XYAnnotationEntity (Shape hotspot, int rendererIndex, String toolTipText, String urlText)

Creates a new entity.

Parameters
hotspot the area.
rendererIndex the rendererIndex (zero-based index).
toolTipText the tool tip text.
urlText the URL text for HTML image maps.

Public Methods

public boolean equals (Object obj)

Tests the entity for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public int getRendererIndex ()

Returns the renderer index.

Returns
  • The renderer index.

public void setRendererIndex (int index)

Sets the renderer index.

Parameters
index the item index (zero-based).