|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--OMGraphicHandlerLayer | +--ix.ip2.map.WorldStateLayer
Class that creates a new layer based on the I-X state format. Objects to appear in this layer need to have two attributes at least: latitude and longitude.
Field Summary | |
protected StateViewer |
sv
|
Constructor Summary | |
WorldStateLayer(StateViewer sv)
The default constructor for the layer. |
Method Summary | |
void |
addPatternValue(LList pattern,
java.lang.Object value)
Adds a pattern-value pair. |
static java.lang.String |
addTilde(java.lang.Object property)
Method auxiliar to put a tilde in the place of the. |
void |
changePatternValue(LList pattern,
java.lang.Object value)
Changes a pattern-value pair. |
void |
deletePatternValue(LList pattern,
java.lang.Object value)
Deletes a pattern-value pair. |
OMGraphicList |
getList()
Overriding the OMGraphicHandlerMethod, creating a list if it's null. |
MapMouseListener |
getMapMouseListener()
|
java.lang.String[] |
getMouseModeServiceList()
|
void |
loadObjectImage(java.lang.Object name,
java.util.Hashtable wObject)
Loads a gif image to represent an object. |
boolean |
mouseClicked(java.awt.event.MouseEvent e)
|
boolean |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved()
|
boolean |
mouseMoved(java.awt.event.MouseEvent e)
|
boolean |
mousePressed(java.awt.event.MouseEvent e)
|
boolean |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
projectionChanged(com.bbn.openmap.event.ProjectionEvent pe)
Method from the ProjectionListener interface. |
void |
refresh()
Resets the map and replace the objects. |
void |
reset()
Clears both the list of graphic objects and the hashtable that contains the objects of the environment |
static LList |
returnPattern(java.lang.Object property,
java.lang.Object object)
Method auxiliar to put a object in the correct place inside the pattern format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected StateViewer sv
Constructor Detail |
public WorldStateLayer(StateViewer sv)
Method Detail |
public void reset()
public void addPatternValue(LList pattern, java.lang.Object value)
public void changePatternValue(LList pattern, java.lang.Object value)
public void deletePatternValue(LList pattern, java.lang.Object value)
public void projectionChanged(com.bbn.openmap.event.ProjectionEvent pe)
public OMGraphicList getList()
public void loadObjectImage(java.lang.Object name, java.util.Hashtable wObject)
IF there is an icon in the directory specified in "map-object-icons" parameter with the same name of the object (without the extension .gif), this icon will be used. ELSE IF the object has a type pattern (e.g. Buckingham.type=palace) AND there is an icon in the directory specified in "map-object-icons" parameter with the same name of the type value (in the example, palace), this icon will be used. ELSE IF the "map-default-icon" parameter was specified, the related icon will be used. ELSE the system will use its default icon.
public java.lang.String[] getMouseModeServiceList()
public void mouseMoved()
public void mouseExited(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e)
public boolean mouseMoved(java.awt.event.MouseEvent e)
public boolean mouseClicked(java.awt.event.MouseEvent e)
public boolean mousePressed(java.awt.event.MouseEvent e)
public boolean mouseDragged(java.awt.event.MouseEvent e)
public boolean mouseReleased(java.awt.event.MouseEvent e)
public MapMouseListener getMapMouseListener()
public void refresh()
public static LList returnPattern(java.lang.Object property, java.lang.Object object)
public static java.lang.String addTilde(java.lang.Object property)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |