|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.general.MapElement
public abstract class MapElement
A map element is a point, line or shape that appears on the map. This class holds all the common routines that are shared across all elements.
Constructor Summary | |
---|---|
protected |
MapElement()
|
protected |
MapElement(MapElement orig)
|
Method Summary | |
---|---|
abstract MapElement |
copy()
Provide a copy of this MapElement without geometry. |
java.lang.String |
getCity()
|
java.lang.String |
getCountry()
|
ExtTypeAttributes |
getExtTypeAttributes()
|
java.lang.String |
getHouseNumber()
|
java.lang.String |
getIsIn()
|
abstract Coord |
getLocation()
Get the 'location' of the element. |
int |
getMaxResolution()
|
int |
getMinResolution()
Get the resolutions that an element should be displayed at. |
java.lang.String |
getName()
|
java.lang.String |
getPhone()
|
java.lang.String |
getRef()
|
java.lang.String |
getRegion()
|
java.lang.String |
getStreet()
|
int |
getType()
This is the type code that goes in the .img file so that the GPS device knows what to display. |
java.lang.String |
getZip()
|
boolean |
hasExtendedType()
|
boolean |
isSimilar(MapElement other)
|
void |
setCity(java.lang.String city)
|
void |
setCountry(java.lang.String country)
|
void |
setExtTypeAttributes(ExtTypeAttributes eta)
|
void |
setHouseNumber(java.lang.String houseNumber)
|
void |
setIsIn(java.lang.String isIn)
|
void |
setMaxResolution(int maxResolution)
|
void |
setMinResolution(int minResolution)
|
void |
setName(java.lang.String name)
|
void |
setPhone(java.lang.String phone)
|
void |
setRef(java.lang.String ref)
|
void |
setRegion(java.lang.String region)
|
void |
setStreet(java.lang.String street)
|
void |
setType(int type)
|
void |
setZip(java.lang.String zip)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MapElement()
protected MapElement(MapElement orig)
Method Detail |
---|
public abstract MapElement copy()
public java.lang.String getName()
public java.lang.String getRef()
public void setName(java.lang.String name)
public void setRef(java.lang.String ref)
public ExtTypeAttributes getExtTypeAttributes()
public void setExtTypeAttributes(ExtTypeAttributes eta)
public java.lang.String getCity()
public void setCity(java.lang.String city)
public java.lang.String getZip()
public void setZip(java.lang.String zip)
public java.lang.String getCountry()
public void setCountry(java.lang.String country)
public java.lang.String getRegion()
public void setRegion(java.lang.String region)
public java.lang.String getStreet()
public void setStreet(java.lang.String street)
public java.lang.String getPhone()
public void setPhone(java.lang.String phone)
public java.lang.String getHouseNumber()
public void setHouseNumber(java.lang.String houseNumber)
public java.lang.String getIsIn()
public void setIsIn(java.lang.String isIn)
public int getType()
public void setType(int type)
public boolean isSimilar(MapElement other)
public boolean hasExtendedType()
public abstract Coord getLocation()
public int getMinResolution()
public void setMinResolution(int minResolution)
public int getMaxResolution()
public void setMaxResolution(int maxResolution)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |