|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectframework.POIObject
public class POIObject
POIObject.java
Contains all POI information. A POI is selectable by default. Use setNotSelectable() if the POI is not supposed to be selectable. This is originally POIObject.java in no.tellu.commonplatform.serviceframe.common.map, Methods for finding x and y coordinates to a POI in a map, variables 'id', 'selected', 'info', and 'selectable' have been added and the variables 'longitude' and 'latitude' have been changed to 'easting' and 'northing'. Redundant code from no.tellu.commonplatform.serviceframe.common.map.POIObject has been removed from this file.
Constructor Summary | |
---|---|
POIObject(java.lang.String easting,
java.lang.String northing,
java.lang.String id,
POIInformation info)
Constructor POIObject |
Method Summary | |
---|---|
java.lang.String |
getEasting()
|
java.lang.String |
getId()
|
POIInformation |
getInfo()
Gets the POI information not coordinate related. |
java.lang.String |
getNorthing()
|
java.lang.String |
getPoiImage()
|
int |
getXCoordinate(int startX,
int width,
no.tellu.commonplatform.serviceframe.common.map.MapBoundingBox mbb)
Finds the x coordinate of a POI within a given area |
int |
getYCoordinate(int startY,
int height,
no.tellu.commonplatform.serviceframe.common.map.MapBoundingBox mbb)
Finds the y coordinate of a POI within a given area |
boolean |
isSelectable()
|
boolean |
isSelected()
|
void |
setEasting(java.lang.String easting)
Sets the easting coordinate of the POI. |
void |
setId(java.lang.String id)
Sets the ID of the POI. |
void |
setInfo(POIInformation info)
Sets the POI information not coordinate related. |
void |
setNorthing(java.lang.String northing)
Sets the northing coordinate of the POI. |
void |
setNotSelectable()
Sets the POI to not be possible to select. |
void |
setPoiImage(java.lang.String poiImage)
Sets the POI icon. |
void |
setSelected(boolean selected)
Sets the POI to be selected or unselects it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public POIObject(java.lang.String easting, java.lang.String northing, java.lang.String id, POIInformation info)
easting
- The easting coordinatenorthing
- The northing coordinateid
- ID of the POIinfo
- A POIInformation object containing general location information not related to coordinatesMethod Detail |
---|
public java.lang.String getEasting()
public void setEasting(java.lang.String easting)
easting
- the easting coordinate of the POIpublic java.lang.String getNorthing()
public void setNorthing(java.lang.String northing)
northing
- the northing coordinate of the POIpublic POIInformation getInfo()
public void setInfo(POIInformation info)
info
- the object with POI informationpublic java.lang.String getPoiImage()
public void setPoiImage(java.lang.String poiImage)
poiImage
- the icon ofthe POIpublic void setSelected(boolean selected)
selected
- true if the POI shoud be selected, false if notpublic boolean isSelected()
public void setNotSelectable()
public boolean isSelectable()
public int getXCoordinate(int startX, int width, no.tellu.commonplatform.serviceframe.common.map.MapBoundingBox mbb)
startX
- The area's leftmost x coordinatewidth
- The width of the areambb
- The area's coordinates
public int getYCoordinate(int startY, int height, no.tellu.commonplatform.serviceframe.common.map.MapBoundingBox mbb)
startY
- The area's upper coordinateheight
- The area's heightmbb
- The area's coordinates
public java.lang.String getId()
public void setId(java.lang.String id)
id
- the ID of the POI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |