|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.imgfmt.app.trergn.MapObject
public abstract class MapObject
An object that appears in a map. One of point, polyline, polygon or indexed point. All objects appear in a subdivision and are relative to it. You cannot know where the object is or its size without knowing the subdivision it is in.
Constructor Summary | |
---|---|
MapObject()
|
Method Summary | |
---|---|
void |
addRefLabel(Label refLabel)
|
protected int |
getDeltaLong()
|
protected byte[] |
getExtTypeExtraBytes()
|
Label |
getLabel()
|
int |
getNumber()
|
java.util.List<Label> |
getRefLabels()
|
Subdivision |
getSubdiv()
|
int |
getType()
|
boolean |
hasExtendedType()
|
static boolean |
hasExtendedType(int type)
|
protected void |
setDeltaLat(int deltaLat)
|
protected void |
setDeltaLong(int deltaLong)
|
void |
setExtTypeAttributes(ExtTypeAttributes eta)
|
void |
setLabel(Label label)
|
void |
setLatitude(int lat)
Set an ordinary unshifted latitude. |
void |
setLongitude(int lon)
Set an ordinary unshifted longitude. |
void |
setNumber(int number)
|
protected void |
setSubdiv(Subdivision subdiv)
|
void |
setType(int type)
|
java.lang.String |
toString()
|
abstract void |
write(ImgFileWriter file)
Write this object to the given file. |
abstract void |
write(java.io.OutputStream stream)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapObject()
Method Detail |
---|
public abstract void write(ImgFileWriter file)
file
- The file to write to. It is usually the RGN file.public abstract void write(java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
protected int getDeltaLong()
public void setLabel(Label label)
public void addRefLabel(Label refLabel)
public int getType()
public void setType(int type)
public boolean hasExtendedType()
public static boolean hasExtendedType(int type)
public void setLatitude(int lat)
lat
- The original latitude.public void setLongitude(int lon)
lon
- The original longitude.protected void setDeltaLat(int deltaLat)
protected void setDeltaLong(int deltaLong)
public Subdivision getSubdiv()
protected void setSubdiv(Subdivision subdiv)
public Label getLabel()
public java.util.List<Label> getRefLabels()
protected byte[] getExtTypeExtraBytes()
public void setExtTypeAttributes(ExtTypeAttributes eta)
public java.lang.String toString()
toString
in class java.lang.Object
public int getNumber()
public void setNumber(int number)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |