|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.ibase.MapSegmentEntry
public class MapSegmentEntry
MapSegmentEntry encapsulates individual polygons in a map segment. They are specified by the coordinates of the points along the path. Each map segment may consist of multiple segment entries.
Field Summary | |
---|---|
boolean |
hasBorder
flag specifying whether this polygon has a border |
boolean |
isLake
flag specifying whether this polygon is a "lake" |
double |
maxX
extents of the polygon (bounding box) |
double |
maxY
extents of the polygon (bounding box) |
double |
minX
extents of the polygon (bounding box) |
double |
minY
extents of the polygon (bounding box) |
double[] |
xp
coordinates of the polygon points |
double[] |
yp
coordinates of the polygon points |
Constructor Summary | |
---|---|
MapSegmentEntry()
create a new, empty map segment entry. |
|
MapSegmentEntry(double[] xpt,
double[] ypt,
boolean lake,
boolean border)
designated constructor of a map segment entry. |
|
MapSegmentEntry(double[] xpt,
double[] ypt,
int offset,
int length,
boolean lake,
boolean border)
constructor of a map segment entry, allowing the use of a part of an array. length is shrunk to reflect xpt.length where necessary and where relevant xpt.length>ypt.length causes ypt to be padded with zeros. |
Method Summary | |
---|---|
void |
fixBoundingBox()
re-calculate bounding box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double[] xp
public double[] yp
public boolean isLake
public boolean hasBorder
public double minX
public double maxX
public double minY
public double maxY
Constructor Detail |
---|
public MapSegmentEntry()
public MapSegmentEntry(double[] xpt, double[] ypt, boolean lake, boolean border)
xpt
- x-coordinates of the points (length of this array specifies the number of points of this entry)ypt
- y-coordinates of the points (padded with 0 if too short)lake
- flag specifying whether this polygon is a lakeborder
- border flag of this segment entrypublic MapSegmentEntry(double[] xpt, double[] ypt, int offset, int length, boolean lake, boolean border)
xpt
- x-coordinates of the pointsypt
- y-coordinates of the points (padded with 0 if too short)offset
- offset at which to startlength
- number of entries to use (will be reduced if offset+length is larger that the xpt array)lake
- flag specifying whether this polygon is a lakeborder
- border flag of this segment entryMethod Detail |
---|
public void fixBoundingBox()
xp
or yp
arrays.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |