oracle.cabo.image.util
Class MapArea
java.lang.Object
|
+--oracle.cabo.image.util.MapArea
- public class MapArea
- extends java.lang.Object
MapArea describes an area of an image map.
Constructor Summary |
MapArea(java.awt.Polygon polygon)
Creates a polygon MapArea |
MapArea(java.awt.Rectangle rectangle)
Creates a rectangle MapArea. |
MapArea(java.lang.String shape,
int[] coordinates)
Crates a MapArea. |
MapArea(java.lang.String shape,
java.lang.String coordinatesString)
Creates a MapArea. |
Method Summary |
java.lang.String |
getCoordinatesString()
Returns a String representing the area's coordinates, suitable
for inclusion in an HTML image map. |
java.lang.String |
getShape()
Returns a String indicating the shape of the MapArea,
suitable for use in an HTML image map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RECTANGLE_SHAPE
public static final java.lang.String RECTANGLE_SHAPE
- Shape for rectangles
POLYGON_SHAPE
public static final java.lang.String POLYGON_SHAPE
- Shape for polygons
MapArea
public MapArea(java.lang.String shape,
int[] coordinates)
- Crates a MapArea.
- Parameters:
shape
- The shape of the area. This is one of the *_SHAPE constants
defined by MapArea.coordinates
- The coordinates of the area.
MapArea
public MapArea(java.lang.String shape,
java.lang.String coordinatesString)
- Creates a MapArea.
- Parameters:
shape
- The shape of the area. This is one of the *_SHAPE constants
defined by MapArea.coordinates
- The String representing the coordinates of the area.
MapArea
public MapArea(java.awt.Rectangle rectangle)
- Creates a rectangle MapArea.
MapArea
public MapArea(java.awt.Polygon polygon)
- Creates a polygon MapArea
getShape
public java.lang.String getShape()
- Returns a String indicating the shape of the MapArea,
suitable for use in an HTML image map.
getCoordinatesString
public java.lang.String getCoordinatesString()
- Returns a String representing the area's coordinates, suitable
for inclusion in an HTML image map.