Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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.


Field Summary
static java.lang.String POLYGON_SHAPE
          Shape for polygons
static java.lang.String RECTANGLE_SHAPE
          Shape for rectangles
 
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
 

Field Detail

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
Constructor Detail

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
Method Detail

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.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.