org.free.garminimg
Class SubDivision
java.lang.Object
org.free.garminimg.SubDivision
public class SubDivision
- extends java.lang.Object
A sub division. Represents a part of a map for a given zoom level.
Method Summary |
boolean |
checkResolutions()
|
long |
getDataEnd()
|
long |
getDataOffset()
|
int |
getIndex()
|
int |
getLatitude(int latitudeDelta,
int additionalAccuracy)
|
int |
getLatitudeCenter()
|
int |
getLevel()
|
int |
getLongitude(int longitudeDelta,
int additionalAccuracy)
|
int |
getLongitudeCenter()
|
int |
getLongitudeWidth()
|
int |
getNbObjectTypes()
|
int |
getNextLevel()
|
int |
getObjectTypes()
|
int |
getResolution()
|
java.util.List<SubDivision> |
getSubDivisions()
|
TreSubFile |
getTre()
|
boolean |
guessResolutions()
|
boolean |
includedInCoordinates(int minLong,
int maxLong,
int minLat,
int maxLat)
|
boolean |
parse(TreSubFile file,
ImgSubFile.FileContext context,
int recordSize)
|
void |
printDebug(java.io.PrintStream out)
|
void |
readMap(int minLong,
int maxLong,
int minLat,
int maxLat,
int targetLevel,
int objectKindFilter,
java.util.BitSet objectTypeFilter,
org.free.garminimg.RgnSubFile rgn,
org.free.garminimg.LblSubFile lbl,
org.free.garminimg.NetSubFile net,
MapListener listener,
org.free.garminimg.RgnContext rgnContext)
|
void |
setDataEnd(long dataEnd)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubDivision
public SubDivision(int index,
int level,
TreSubFile subFile)
parse
public boolean parse(TreSubFile file,
ImgSubFile.FileContext context,
int recordSize)
throws java.io.IOException
- Throws:
java.io.IOException
getDataOffset
public long getDataOffset()
getDataEnd
public long getDataEnd()
setDataEnd
public void setDataEnd(long dataEnd)
throws java.io.IOException
- Throws:
java.io.IOException
getLongitudeWidth
public int getLongitudeWidth()
getLatitudeCenter
public int getLatitudeCenter()
getLongitudeCenter
public int getLongitudeCenter()
getNextLevel
public int getNextLevel()
getObjectTypes
public int getObjectTypes()
getNbObjectTypes
public int getNbObjectTypes()
getSubDivisions
public java.util.List<SubDivision> getSubDivisions()
guessResolutions
public boolean guessResolutions()
throws java.io.IOException
- Throws:
java.io.IOException
checkResolutions
public boolean checkResolutions()
printDebug
public void printDebug(java.io.PrintStream out)
throws java.io.IOException
- Throws:
java.io.IOException
getLongitude
public int getLongitude(int longitudeDelta,
int additionalAccuracy)
getLatitude
public int getLatitude(int latitudeDelta,
int additionalAccuracy)
includedInCoordinates
public boolean includedInCoordinates(int minLong,
int maxLong,
int minLat,
int maxLat)
readMap
public void readMap(int minLong,
int maxLong,
int minLat,
int maxLat,
int targetLevel,
int objectKindFilter,
java.util.BitSet objectTypeFilter,
org.free.garminimg.RgnSubFile rgn,
org.free.garminimg.LblSubFile lbl,
org.free.garminimg.NetSubFile net,
MapListener listener,
org.free.garminimg.RgnContext rgnContext)
throws java.io.IOException
- Throws:
java.io.IOException
getResolution
public int getResolution()
getLevel
public int getLevel()
getTre
public TreSubFile getTre()
getIndex
public int getIndex()
Copyright © 2008. All Rights Reserved.