org.jCharts.imageMap
public abstract class ImageMapArea extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
legendLabel |
private double |
value |
(package private) int[] |
x |
private String |
xAxisLabel |
(package private) int[] |
y |
Constructor and Description |
---|
ImageMapArea(int numberOfPoints,
double value,
String xAxisLabel,
String legendLabel) |
ImageMapArea(int numberOfPoints,
Point2D.Double point,
String legendLabel) |
Modifier and Type | Method and Description |
---|---|
(package private) abstract AreaShape |
getAreaShape() |
protected void |
getCoordinates(StringBuffer html)
Appends the coordinates to the passed html buffer.
|
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.
|
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.
|
String |
toHTML(String mapElementAttributes)
Returns a
|
int[] x
int[] y
private double value
private String xAxisLabel
private String legendLabel
ImageMapArea(int numberOfPoints, double value, String xAxisLabel, String legendLabel)
numberOfPoints
- value
- xAxisLabel
- legendLabel
- ImageMapArea(int numberOfPoints, Point2D.Double point, String legendLabel)
numberOfPoints
- point
- legendLabel
- 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 String getXAxisLabel()
public final String getLengendLabel()
protected void getCoordinates(StringBuffer html)
html
- pass a reference to the StringBuffer so I can minimize Object creationpublic final String toHTML(String mapElementAttributes)
mapElementAttributes
- allows you to place any map attributes you want:
href, alt, onClick, onMouseOver, etc...