public final class IlvIMapArea extends Object
| Constructor and Description |
|---|
IlvIMapArea(double[] xpoints,
double[] ypoints,
int count,
IlvIMapAttributes attr)
Initializes a polygonal area with the specified coordinates
and attributes.
|
IlvIMapArea(IlvPolygon2D polygon,
IlvIMapAttributes attr)
Initializes a polygonal area with the specified
IlvPolygon2D
and attributes. |
IlvIMapArea(int[] xpoints,
int[] ypoints,
int count,
IlvIMapAttributes attr)
Initializes a polygonal area with the specified coordinates
and attributes.
|
IlvIMapArea(int cx,
int cy,
int radius,
IlvIMapAttributes attr)
Initializes a circular area with the specified center, radius and
attributes
|
IlvIMapArea(Polygon polygon,
IlvIMapAttributes attr)
Initializes a polygonal area with the specified
Polygon
and attributes. |
IlvIMapArea(Rectangle rect,
IlvIMapAttributes attr)
Initializes a rectangular area with the specified
Rectangle
and attributes. |
IlvIMapArea(Shape shape,
double dx,
double dy,
IlvIMapAttributes attr)
Initializes an area with the specified shape and attributes.
|
IlvIMapArea(Shape shape,
IlvIMapAttributes attr)
Initializes an area with the specified shape and attributes.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
createTag(double[] xpoints,
double[] ypoints,
int count,
IlvIMapAttributes attr)
Returns the tag corresponding to a polygonal map area.
|
static String |
createTag(IlvPolygon2D polygon,
IlvIMapAttributes attr)
Returns the tag corresponding to a polygonal map area.
|
static String |
createTag(int[] xpoints,
int[] ypoints,
int count,
IlvIMapAttributes attr)
Returns the tag corresponding to a polygonal map area.
|
static String |
createTag(int cx,
int cy,
int radius,
IlvIMapAttributes attr)
Returns the tag corresponding to a circular map area.
|
static String |
createTag(Rectangle rect,
IlvIMapAttributes attr)
Returns the tag corresponding to a rectangular map area.
|
static String |
createTag(Shape shape,
double dx,
double dy,
IlvIMapAttributes attr)
Returns the tag corresponding to a map area of an arbitrary shape.
|
static String |
createTag(Shape shape,
IlvIMapAttributes attr)
Returns the tag corresponding to a map area of an arbitrary shape.
|
IlvIMapAttributes |
getAttributes()
Returns the attributes of the area.
|
Shape |
getShape()
Returns the shape of the area.
|
String |
getTag()
Returns the tag of the area.
|
public IlvIMapArea(Rectangle rect, IlvIMapAttributes attr)
Rectangle
and attributes.rect - The considered rectangle.attr - The area attributes.public IlvIMapArea(Polygon polygon, IlvIMapAttributes attr)
Polygon
and attributes.polygon - The considered polygon.attr - The area attributes.public IlvIMapArea(int[] xpoints,
int[] ypoints,
int count,
IlvIMapAttributes attr)
xpoints - The x-coordinates of the area.ypoints - The y-coordinates of the area.count - The number of coordinates.attr - The area attributes.public IlvIMapArea(IlvPolygon2D polygon, IlvIMapAttributes attr)
IlvPolygon2D
and attributes.polygon - The considered polygon.attr - The area attributes.public IlvIMapArea(double[] xpoints,
double[] ypoints,
int count,
IlvIMapAttributes attr)
xpoints - The x-coordinates of the area.ypoints - The y-coordinates of the area.count - The number of coordinates.attr - The area attributes.public IlvIMapArea(int cx,
int cy,
int radius,
IlvIMapAttributes attr)
cx - The x-coordinate of the center.cy - The y-coordinate of the center.radius - The circle radius.attr - The area attributes.public IlvIMapArea(Shape shape, IlvIMapAttributes attr)
The provided shape is converted to a polygonal area.
shape - The shape of the area.attr - The area attributes.public IlvIMapArea(Shape shape, double dx, double dy, IlvIMapAttributes attr)
The provided shape is first translated by (dx,dy) and then converted to a polygonal area.
shape - The shape of the area.dx - An optional horizontal translation to be applied to the shape.dy - An optional vertical translation to be applied to the shape.attr - The area attributes.public final Shape getShape()
Rectangle, Polygon, IlvPolygon2D,
Ellipse2D, IlvTranslatedShape, or any other
Shape.public final IlvIMapAttributes getAttributes()
public String getTag()
<area shape=... coords=... attributeList>public static String createTag(Rectangle rect, IlvIMapAttributes attr)
rect - The rectangle that defines the area.attr - The area attributes.public static String createTag(int[] xpoints, int[] ypoints, int count, IlvIMapAttributes attr)
xpoints - The x-coordinates of the area.ypoints - The y-coordinates of the area.count - The number of coordinates.attr - The area attributes.public static String createTag(double[] xpoints, double[] ypoints, int count, IlvIMapAttributes attr)
xpoints - The x-coordinates of the area.ypoints - The y-coordinates of the area.count - The number of coordinates.attr - The area attributes.public static String createTag(IlvPolygon2D polygon, IlvIMapAttributes attr)
polygon - The polygon.attr - The area attributes.public static String createTag(int cx, int cy, int radius, IlvIMapAttributes attr)
cx - The x-coordinate of the center.cy - The y-coordinate of the center.radius - The circle radius.attr - The area attributes.public static String createTag(Shape shape, IlvIMapAttributes attr)
shape - The shape of the area.attr - The area attributes.public static String createTag(Shape shape, double dx, double dy, IlvIMapAttributes attr)
shape - The shape of the area.dx - An optional horizontal translation to be applied to the shape.dy - An optional vertical translation to be applied to the shape.attr - The area attributes.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.