|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jCharts.imageMap.ImageMapArea
Field Summary | |
private java.lang.String |
legendLabel
|
private double |
value
|
(package private) int[] |
x
|
private java.lang.String |
xAxisLabel
|
(package private) int[] |
y
|
Constructor Summary | |
(package private) |
ImageMapArea(int numberOfPoints,
double value,
java.lang.String xAxisLabel,
java.lang.String legendLabel)
|
(package private) |
ImageMapArea(int numberOfPoints,
java.awt.geom.Point2D.Double point,
java.lang.String legendLabel)
|
Method Summary | |
(package private) abstract AreaShape |
getAreaShape()
|
protected void |
getCoordinates(java.lang.StringBuffer html)
Appends the coordinates to the passed html buffer. |
java.lang.String |
getLengendLabel()
Returns the legend label represented by this map area. |
int |
getNumberOfCoordinates()
Returns the number of x,y coordinate pairs stored for the area |
double |
getValue()
Returns the data set value represented by this map. |
java.lang.String |
getXAxisLabel()
Rather than create an AxisChart specifc map area class just for this field, i put it here. |
int |
getXCoordinate(int index)
Returns the x coordinate at the specified index. |
int |
getYCoordinate(int index)
Returns the y coordinate at the specified index. |
java.lang.String |
toHTML(java.lang.String mapElementAttributes)
Returns a |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int[] x
int[] y
private double value
private java.lang.String xAxisLabel
private java.lang.String legendLabel
Constructor Detail |
ImageMapArea(int numberOfPoints, double value, java.lang.String xAxisLabel, java.lang.String legendLabel)
numberOfPoints
- value
- xAxisLabel
- legendLabel
- ImageMapArea(int numberOfPoints, java.awt.geom.Point2D.Double point, java.lang.String legendLabel)
numberOfPoints
- point
- legendLabel
- Method Detail |
abstract AreaShape getAreaShape()
public final int getNumberOfCoordinates()
public final int getXCoordinate(int index)
public final int getYCoordinate(int index)
public final double getValue()
public final java.lang.String getXAxisLabel()
public final java.lang.String getLengendLabel()
protected void getCoordinates(java.lang.StringBuffer html)
html
- pass a reference to the StringBuffer so I can minimize Object creationpublic final java.lang.String toHTML(java.lang.String mapElementAttributes)
mapElementAttributes
- allows you to place any map attributes you want:
href, alt, onClick, onMouseOver, etc...
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |