|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.dataAccess.shape.ShapeUtils
com.bbn.openmap.layer.shape.ESRIRecord
public abstract class ESRIRecord
This is the base class for all shape record classes. It stores the record number and content length of a record, also known as the record header.
Field Summary | |
---|---|
int |
contentLength
The length of the data portion of this record. |
int |
recordNumber
The ordinal of this record. |
Constructor Summary | |
---|---|
ESRIRecord()
Initialize an empty record. |
|
ESRIRecord(byte[] b,
int off)
Initialize a record from a buffer. |
Method Summary | |
---|---|
abstract OMGeometry |
addOMGeometry(OMGeometryList list)
Generates OMGeometry and adds them to the given list. |
abstract void |
addOMGraphics(OMGraphicList list,
DrawingAttributes drawingAttributes)
Generates 2D OMGraphics and adds them to the given list. |
int |
getBinaryStoreSize()
Returns the number of bytes needed to store the record header and record data. |
abstract ESRIBoundingBox |
getBoundingBox()
Gets this record's bounding box. |
int |
getContentLength()
Accessor for the content length of this record. |
abstract int |
getRecordLength()
Yields the length of this record's data portion. |
int |
getRecordNumber()
Accessor for record number field. |
abstract int |
getShapeType()
Gets this record's shape type as an int. |
int |
write(byte[] b,
int off)
Writes this record to the given buffer at the given offset. |
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 |
---|
public int recordNumber
public int contentLength
Constructor Detail |
---|
public ESRIRecord()
public ESRIRecord(byte[] b, int off)
b
- the bufferoff
- the offsetMethod Detail |
---|
public abstract void addOMGraphics(OMGraphicList list, DrawingAttributes drawingAttributes)
list
- the graphics listdrawingAttributes
- Attributes that describe how to render
the graphics.public abstract OMGeometry addOMGeometry(OMGeometryList list)
list
- the geometry listpublic abstract ESRIBoundingBox getBoundingBox()
public abstract int getShapeType()
public abstract int getRecordLength()
public int getBinaryStoreSize()
public int write(byte[] b, int off)
b
- the bufferoff
- the offset
public int getRecordNumber()
public int getContentLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |