uk.me.parabola.imgfmt.app.lbl
Class City
java.lang.Object
uk.me.parabola.imgfmt.app.lbl.City
- All Implemented Interfaces:
- java.lang.Comparable<City>
public class City
- extends java.lang.Object
- implements java.lang.Comparable<City>
A city is in a region. It also has (or can have anyway) a reference to
an indexed point within the map itself.
- Author:
- Steve Ratcliffe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
City
public City(Region region)
City
public City(Country country)
getIndex
public int getIndex()
setIndex
public void setIndex(int index)
setLabel
public void setLabel(Label label)
setPointIndex
public void setPointIndex(byte pointIndex)
setSubdivision
public void setSubdivision(Subdivision subdivision)
compareTo
public int compareTo(City other)
- Specified by:
compareTo
in interface java.lang.Comparable<City>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getSubdivNumber
public int getSubdivNumber()
getPointIndex
public int getPointIndex()
getRegionNumber
public int getRegionNumber()