com.esri.map.popup
Interface MapPopup

All Known Implementing Classes:
PopupDialog, PopupPanel

public interface MapPopup

This interface is implemented by classes that can be created by calling JMap.createPopup(javax.swing.JComponent[], Graphic, boolean).


Method Summary
 void close()
          Close the MapPopup rather than simply hiding it.
 String getTitle()
          Gets the title.
 boolean isMovingWithMap()
          Checks if this MapPopup is set to move with the map.
 void setAnchorPoint(Point anchorPoint)
          Sets the anchor point that the callout tail is pointing at.
 void setMovingWithMap(boolean moveWithMap)
          When this is set true, the MapPopup will move with the map.
 void setNewGraphic(Graphic newGraphic)
          Sets the new graphic.
 void setTitle(String title)
          Sets the title.
 void setVisible(boolean isVisible)
          Sets the MapPopup visibility.
 void updateLocation()
           
 

Method Detail

setTitle

void setTitle(String title)
Sets the title.

Parameters:
title - the new title

getTitle

String getTitle()
Gets the title.

Returns:
the title

setNewGraphic

void setNewGraphic(Graphic newGraphic)
Sets the new graphic. When this is called, the callout tail should be updated to point to the given graphic.

Parameters:
newGraphic - the new new graphic

setVisible

void setVisible(boolean isVisible)
Sets the MapPopup visibility.

Parameters:
isVisible - the new visible

isMovingWithMap

boolean isMovingWithMap()
Checks if this MapPopup is set to move with the map.

Returns:
true, if this is moving with the map

setMovingWithMap

void setMovingWithMap(boolean moveWithMap)
When this is set true, the MapPopup will move with the map. If this is false, the MapPopup will stay where it is on the screen and the callout tail will move with the map to ensure that it still points at the associated graphic.

Parameters:
moveWithMap - true to move with the map, false to stay in place on the screen

updateLocation

void updateLocation()

close

void close()
Close the MapPopup rather than simply hiding it.


setAnchorPoint

void setAnchorPoint(Point anchorPoint)
Sets the anchor point that the callout tail is pointing at. If this is not set, the anchor point will be derived from the location of the currently set graphic.

Parameters:
anchorPoint - the new anchor point


Copyright © 2012. All Rights Reserved.