| java.lang.Object org.krysalis.jcharts.imageMap.ImageMapArea
All known Subclasses: org.krysalis.jcharts.imageMap.CircleMapArea, org.krysalis.jcharts.imageMap.PolyMapArea, org.krysalis.jcharts.imageMap.RectMapArea,
Field Summary | |
int[] | x | int[] | y |
Method Summary | |
abstract AreaShape | getAreaShape() | protected void | getCoordinates(StringBuffer html) Appends the coordinates to the passed html buffer. | final public String | getLengendLabel() Returns the legend label represented by this map area. | final public int | getNumberOfCoordinates() | final public double | getValue() Returns the data set value represented by this map. | final public String | getXAxisLabel() Rather than create an AxisChart specifc map area class just for this field, i put it
here. | final public int | getXCoordinate(int index) Returns the x coordinate at the specified index. | final public int | getYCoordinate(int index) Returns the y coordinate at the specified index. | final public String | toHTML(String mapElementAttributes) Returns a HTML element.
The mapElementAttributes frees this method from having to declare all attributes of the HTML map
element.
Parameters: mapElementAttributes - allows you to place any map attributes you want:href, alt, onClick, onMouseOver, etc... |
ImageMapArea | ImageMapArea(int numberOfPoints, double value, String xAxisLabel, String legendLabel)(Code) | | Parameters: numberOfPoints - Parameters: value - Parameters: xAxisLabel - Parameters: legendLabel - |
ImageMapArea | ImageMapArea(int numberOfPoints, Point2D.Double point, String legendLabel)(Code) | | Parameters: numberOfPoints - Parameters: point - Parameters: legendLabel - |
getCoordinates | protected void getCoordinates(StringBuffer html)(Code) | | Appends the coordinates to the passed html buffer. This is needed to facilitate the
'circle' map areas 'radius' value.
Parameters: html - pass a reference to the StringBuffer so I can minimize Object creation |
getLengendLabel | final public String getLengendLabel()(Code) | | Returns the legend label represented by this map area. Will be NULL if you did not
pass a name to the data set constructor.
String |
getNumberOfCoordinates | final public int getNumberOfCoordinates()(Code) | | Returns the number of x,y coordinate pairs stored for the area
int |
getValue | final public double getValue()(Code) | | Returns the data set value represented by this map.
double |
getXAxisLabel | final public String getXAxisLabel()(Code) | | Rather than create an AxisChart specifc map area class just for this field, i put it
here. This is not applicable for PieCharts.
String will return NULL for PieCharts |
getXCoordinate | final public int getXCoordinate(int index)(Code) | | Returns the x coordinate at the specified index. Not returned as a Point Object so we
can avoid uneeded Object creation/destruction overhead.
int |
getYCoordinate | final public int getYCoordinate(int index)(Code) | | Returns the y coordinate at the specified index. Not returned as a Point Object so we
can avoid uneeded Object creation/destruction overhead.
int |
toHTML | final public String toHTML(String mapElementAttributes)(Code) | | Returns a HTML element.
The mapElementAttributes frees this method from having to declare all attributes of the HTML map
element.
Parameters: mapElementAttributes - allows you to place any map attributes you want:href, alt, onClick, onMouseOver, etc... String the HTML |
|
|