|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.imgfmt.app.mdr.ConfigBase
uk.me.parabola.imgfmt.app.mdr.MdrSection
uk.me.parabola.imgfmt.app.mdr.MdrMapSection
public abstract class MdrMapSection
Super class of all sections that contain items that belong to a particular map.
Constructor Summary | |
---|---|
MdrMapSection()
|
Method Summary | |
---|---|
void |
addIndexPointer(int mapNumber,
int recordNumber)
Add a pointer to the reverse index for this section. |
abstract int |
getExtraValue()
Return the value that is put in the header after the section start, len and recsize fields. |
abstract int |
getNumberOfItems()
The number of records in this section. |
abstract int |
getPointerSize()
Get the size of an integer that is sufficient to store a record number from this section. |
void |
init(int sectionNumber)
|
protected void |
putCityIndex(ImgFileWriter writer,
int cityIndex,
boolean isNew)
|
protected void |
putPoiIndex(ImgFileWriter writer,
int poiIndex,
boolean isNew)
|
protected void |
putRegionIndex(ImgFileWriter writer,
int region)
|
void |
setMapIndex(Mdr1 index)
|
Methods inherited from class uk.me.parabola.imgfmt.app.mdr.MdrSection |
---|
getItemSize, getSizes, numberToPointerSize, putMapIndex, putN, putStringOffset, setSizes, writeSectData |
Methods inherited from class uk.me.parabola.imgfmt.app.mdr.ConfigBase |
---|
getConfig, isForDevice, setConfig |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MdrMapSection()
Method Detail |
---|
public void setMapIndex(Mdr1 index)
public void init(int sectionNumber)
public void addIndexPointer(int mapNumber, int recordNumber)
recordNumber
- A record number in this section, belonging to the
given map.public abstract int getNumberOfItems()
public abstract int getPointerSize()
protected void putCityIndex(ImgFileWriter writer, int cityIndex, boolean isNew)
protected void putRegionIndex(ImgFileWriter writer, int region)
protected void putPoiIndex(ImgFileWriter writer, int poiIndex, boolean isNew)
public abstract int getExtraValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |