|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.layer.shape.ShapeUtils | +--com.bbn.openmap.layer.shape.ESRIRecord | +--com.bbn.openmap.layer.shape.ESRIPointRecord
An ESRI Point record.
Field Summary | |
protected javax.swing.ImageIcon |
ii
A BufferedImage to use at the point. |
protected double |
x
The x coordinate. |
protected double |
y
The y coordinate. |
Fields inherited from class com.bbn.openmap.layer.shape.ESRIRecord |
contentLength, recordNumber |
Fields inherited from interface com.bbn.openmap.dataAccess.shape.ShapeConstants |
DBF_CHARACTER, DBF_DATE, DBF_LOGICAL, DBF_MEMO, DBF_NUMERIC, DBF_TYPE_CHARACTER, DBF_TYPE_DATE, DBF_TYPE_LOGICAL, DBF_TYPE_MEMO, DBF_TYPE_NUMERIC, PARAM_DBF, PARAM_SHP, PARAM_SHX, SHAPE_DBF_DASHPATTERN, SHAPE_DBF_DASHPHASE, SHAPE_DBF_DESCRIPTION, SHAPE_DBF_FILLCOLOR, SHAPE_DBF_LINECOLOR, SHAPE_DBF_LINEWIDTH, SHAPE_DBF_SELECTCOLOR, SHAPE_FILE_HEADER_LENGTH, SHAPE_FILE_RECORD_HEADER_LENGTH, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYLINE |
Constructor Summary | |
ESRIPointRecord(byte[] b,
int off)
Initialize a point record from the given buffer. |
|
ESRIPointRecord(byte[] b,
int off,
javax.swing.ImageIcon imageIcon)
Initialize a point record from the given buffer. |
|
ESRIPointRecord(double x,
double y)
Initializes this point from the given point. |
Method Summary | |
OMGeometry |
addOMGeometry(OMGeometryList list)
Generates Points and adds them to the given list. |
void |
addOMGraphics(OMGraphicList list,
DrawingAttributes drawingAttributes)
Generates Points and adds them to the given list. |
ESRIBoundingBox |
getBoundingBox()
Gets this record's bounding box. |
int |
getRecordLength()
Yields the length of this record's data portion. |
int |
getShapeType()
Gets this record's shape type as an int. |
double |
getX()
Get the x coordinate for this record. |
double |
getY()
Get the y coordinate for this record. |
int |
write(byte[] b,
int off)
Writes this point to the given buffer at the given offset. |
Methods inherited from class com.bbn.openmap.layer.shape.ESRIRecord |
getBinaryStoreSize, getContentLength, getRecordNumber |
Methods inherited from class com.bbn.openmap.layer.shape.ShapeUtils |
readBEInt, readBox, readLEDouble, readLEInt, readLEInt, readLELong, readPoint, writeBEInt, writeBox, writeLEDouble, writeLEInt, writeLELong, writePoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double x
protected double y
protected javax.swing.ImageIcon ii
Constructor Detail |
public ESRIPointRecord(double x, double y)
x
- the x coordinatey
- the y coordinatepublic ESRIPointRecord(byte[] b, int off) throws java.io.IOException
b
- the bufferoff
- the offset into the buffer where the data startspublic ESRIPointRecord(byte[] b, int off, javax.swing.ImageIcon imageIcon) throws java.io.IOException
b
- the bufferoff
- the offset into the buffer where the data startsMethod Detail |
public ESRIBoundingBox getBoundingBox()
getBoundingBox
in class ESRIRecord
public int getRecordLength()
getRecordLength
in class ESRIRecord
public int write(byte[] b, int off)
write
in class ESRIRecord
b
- the bufferoff
- the offset
public void addOMGraphics(OMGraphicList list, DrawingAttributes drawingAttributes)
addOMGraphics
in class ESRIRecord
list
- the graphics listdrawingAttributes
- DrawingAttributes to decribe how to
represent the points, if an ImageIcon is not defined.public OMGeometry addOMGeometry(OMGeometryList list)
addOMGeometry
in class ESRIRecord
list
- the graphics listpublic int getShapeType()
getShapeType
in class ESRIRecord
public double getX()
public double getY()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |