|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmain.Position
main.City
main.ImageMapCity
public class ImageMapCity
The ImageMapCity
class contains all of the necessary
information to plot a city on an image map.
Field Summary | |
---|---|
private java.awt.geom.Ellipse2D.Double |
circle
|
private java.lang.Integer |
id
|
Constructor Summary | |
---|---|
ImageMapCity(Position cityPos,
java.lang.String cityName,
int x,
int y,
java.lang.Integer cityID,
int size)
Constructs a new ImageMapCity with the point and name
indicated by the arguments. |
Method Summary | |
---|---|
boolean |
cityEquals(City other)
is other City equal to this one? |
boolean |
equals(ImageMapCity other)
is other object equal to this one? |
java.lang.Integer |
getCityID()
Returns the city id. |
java.awt.geom.Ellipse2D.Double |
getCityLocation()
Returns the location and size of the node at city as an Ellipse2D.Double . |
void |
setCityID(java.lang.Integer cityID)
Sets the city id |
java.lang.String |
toString()
Returns a string representation of this City . |
Methods inherited from class main.City |
---|
equals, getCityName, setCityName |
Methods inherited from class main.Position |
---|
coordinateDistanceTo, distanceTo, equals, getLatitude, getLongitude, isDefined, setLatitude, setLongitude |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.Integer id
private java.awt.geom.Ellipse2D.Double circle
Constructor Detail |
---|
public ImageMapCity(Position cityPos, java.lang.String cityName, int x, int y, java.lang.Integer cityID, int size)
ImageMapCity
with the point and name
indicated by the arguments.
cityPos
- the position of the citycityName
- a String
x
- - the x-coordinate
an int
y
- - the y-coordinate
an int
cityID
- - the id of the city
an Integer
size
- an int
Method Detail |
---|
public void setCityID(java.lang.Integer cityID)
cityID
- an Integer
public java.lang.Integer getCityID()
public java.awt.geom.Ellipse2D.Double getCityLocation()
Ellipse2D.Double
.
public java.lang.String toString()
City
. This is for
debugging purposes only.
toString
in class City
City
public boolean cityEquals(City other)
other
-
public boolean equals(ImageMapCity other)
other
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |