| Name | Format | Description |
| mapimage |
url OR url,color |
The URL of the map image file and optionally the background color to use for any transparent pixels. If no color is specified, the default is white. |
| For all color parameters, color may be one of the following: black, blue, cyan, darkgray, gray, green, lightgray, magenta, orange, pink, red, white or yellow. Or you can specify an RGB hex triplet, e.g. #ffcc99. | ||
| fgcolor (optional) |
color | The color of the text displayed in the pop-up boxes. The default is black. |
| bgcolor (optional) |
color | The background color of the pop-up boxes. The default is white. |
| border (optional) |
n OR n,color |
The size of the border drawn around each pop-up box and optionally the color to use. If n is less than one, no border is drawn. The default is no border. If only a size is given color will default to the text color. |
| font (optional) |
name,style,size | The font used for the pop-up box text. The defaults are dialog,plain,12. |
| For the font parameter, name may be one of: courier, dialog, helvetica, symbol or timesroman and style may be one of: bold, bolditalic, italic or plain. | ||
| margins (optional) |
m,n | The size of the horizontal and vertical margins (respectively) placed around the text in the pop-up boxes. The defaults are 10,10. |
| outline (optional) |
color | If specified, an outline will be drawn around the active area in the given color. The default is no outline. |
| default (optional) |
url OR url,target |
The default URL that will be linked to if the user clicks on a part of the map not covered by any defined area. Optionally a target window or frame may be specified. |
| status (optional) |
string | The message to display in the status window in place of the default URL. |
| You may define any number of areas, numbered 1-n. For each area, specify the following: | ||
| shape-i |
rect,x1,y1,x2,y2 OR circle,x,y,r OR ellipse,x,y,a,b OR poly,x1,y1,x2,y2,...xn,yn |
Defines an area. For a rectangle you must supply the upper-left and lower-right corners. For a circle, the center and the radius. For an ellipse the center, length of the horizontal semi-axis and length of verticle semi-axis. Polygons are defined as a series of connected points where the last point is considered to be connected to the first. |
| url-i (optional) |
url OR url,target |
The url to link to when this area is clicked on. Optionally a target window or frame may be specified. |
| status-i (optional) |
string | The message to display in the status window in place of the link URL. |
| For each area i you can specify any number of lines of text, numbered 1-m as follows: | ||
| text-i-j (optional) |
string OR n|string |
A line of text that will be displayed in the pop-up box. You may optionally specify a number which will cause the text to be indented by that many columns. |
| Files | ||
| Source: IMap.java | Classes: IMap.class and IMapArea.class | |