|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.dataAccess.shape.ShapeUtils com.bbn.openmap.layer.shape.ESRIRecord com.bbn.openmap.layer.shape.ESRIPointRecord
public class 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 |
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.dataAccess.shape.ShapeUtils |
---|
getStringForType, 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 starts
java.io.IOException
public ESRIPointRecord(byte[] b, int off, javax.swing.ImageIcon imageIcon) throws java.io.IOException
b
- the bufferoff
- the offset into the buffer where the data starts
java.io.IOException
Method 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 describe 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 |