|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<S>
com.sencha.gxt.chart.client.draw.sprite.SpriteList<Sprite>
com.sencha.gxt.chart.client.chart.LegendItem<M>
M - the data type of the legend itempublic class LegendItem<M>
Item representing a legend element.
| Constructor Summary | |
|---|---|
LegendItem(Legend<M> legend,
Series<M> series,
int yFieldIndex)
Creates a legend item. |
|
| Method Summary | |
|---|---|
Legend<M> |
getLegend()
Returns the legend that the item is attached. |
Series<M> |
getSeries()
Returns the series that the item represents. |
double |
getX()
Returns the x-coordinate of the legend item. |
double |
getY()
Returns the y-coordinate of the legend item. |
int |
getYFieldIndex()
Returns the index of the y field of the series that the item represents. |
void |
onMouseDown()
Method used when the legend item is clicked. |
void |
onMouseMove()
Method used when mouse over the legend item. |
void |
onMouseOut()
Method used when the mouse leaves the legend item. |
void |
setLegend(Legend<M> legend)
Sets the legend that the item is attached. |
void |
setSeries(Series<M> series)
Sets the series that the item represents. |
void |
setX(double x)
Sets the x-coordinate of the legend item. |
void |
setY(double y)
Sets the y-coordinate of the legend item. |
void |
setYFieldIndex(int yFieldIndex)
Sets the index of the y field of the series that the item represents. |
void |
updatePosition(double relativeX,
double relativeY)
Updates the position of the legend item based on the given relative point. |
| Methods inherited from class com.sencha.gxt.chart.client.draw.sprite.SpriteList |
|---|
add, add, clear, get, getBBox, getSurface, hide, remove, set, setSurface, show, size |
| Methods inherited from class java.util.AbstractList |
|---|
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public LegendItem(Legend<M> legend,
Series<M> series,
int yFieldIndex)
legend - the legend that the item is attachedseries - the series represented by the itemyFieldIndex - the index of the y field the item represents| Method Detail |
|---|
public Legend<M> getLegend()
public Series<M> getSeries()
public double getX()
public double getY()
public int getYFieldIndex()
public void onMouseDown()
public void onMouseMove()
public void onMouseOut()
public void setLegend(Legend<M> legend)
legend - the legend that the item is attachedpublic void setSeries(Series<M> series)
series - the series that the item representspublic void setX(double x)
x - the x-coordinate of the legend itempublic void setY(double y)
y - the y-coordinate of the legend itempublic void setYFieldIndex(int yFieldIndex)
yFieldIndex - the index of the y field of the series that the item
represents
public void updatePosition(double relativeX,
double relativeY)
relativeX - the relative x-coordinaterelativeY - the relative y-coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||