|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.esri.map.popup.PopupDialog
public class PopupDialog

The Class PopupDialog.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Point |
_currentLocation
|
protected Rectangle |
_resizingBounds
|
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PopupDialog(JComponent[] content)
Instantiates a new popup dialog to display the given content. |
|
PopupDialog(JMap map,
JComponent[] content,
Graphic graphic)
Instantiates a new popup dialog to display the given content with a callout tail that will point at the given graphic. |
|
| Method Summary | |
|---|---|
void |
close()
Close the MapPopup rather than simply hiding it. |
protected void |
closeDialog()
Close dialog. |
Point |
getAnchorPoint()
Gets the anchor point that the callout tail will point at. |
protected void |
handleDrag(MouseEvent e)
Handle mouse drag. |
protected void |
handleMousePress(MouseEvent e)
Handle mouse press. |
protected void |
init(JComponent[] content)
Initialise the dialog |
boolean |
isMovingWithMap()
Checks if this MapPopup is set to move with the map. |
static void |
main(String[] args)
The main method. |
void |
setAnchorPoint(Point anchorPoint)
Sets the anchor point that the callout tail is pointing at. |
void |
setBounds(int x,
int y,
int width,
int height)
|
void |
setBounds(Rectangle r)
|
void |
setLocation(int x,
int y)
|
void |
setLocation(Point p)
|
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 |
setSize(Dimension d)
|
void |
setSize(int width,
int height)
|
void |
setTitle(String title)
Sets the title. |
void |
updateLocation()
|
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.esri.map.popup.MapPopup |
|---|
getTitle, setVisible |
| Field Detail |
|---|
protected Point _currentLocation
protected Rectangle _resizingBounds
| Constructor Detail |
|---|
public PopupDialog(JComponent[] content)
setAnchorPoint(Point), the dialog will have no callout tail.
content - the content to display in the dialog
public PopupDialog(JMap map,
JComponent[] content,
Graphic graphic)
map - the map containing the given graphiccontent - the content to displaygraphic - the graphic that the callout tail will point at| Method Detail |
|---|
public static void main(String[] args)
args - the argumentspublic Point getAnchorPoint()
public void setAnchorPoint(Point anchorPoint)
MapPopup
setAnchorPoint in interface MapPopupanchorPoint - the new anchor pointpublic boolean isMovingWithMap()
MapPopup
isMovingWithMap in interface MapPopuppublic void setMovingWithMap(boolean moveWithMap)
MapPopup
setMovingWithMap in interface MapPopupmoveWithMap - true to move with the map, false to stay in place on
the screenpublic void setTitle(String title)
MapPopup
setTitle in interface MapPopupsetTitle in class Dialogtitle - the new title
public void setLocation(int x,
int y)
setLocation in class Componentpublic void setLocation(Point p)
setLocation in class Componentpublic void setSize(Dimension d)
setSize in class Window
public void setSize(int width,
int height)
setSize in class Window
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class Windowpublic void setBounds(Rectangle r)
setBounds in class Windowpublic void setNewGraphic(Graphic newGraphic)
MapPopup
setNewGraphic in interface MapPopupnewGraphic - the new new graphicpublic void close()
MapPopup
close in interface MapPopuppublic void updateLocation()
updateLocation in interface MapPopupprotected void init(JComponent[] content)
content - the contentprotected void handleDrag(MouseEvent e)
e - the mosue eventprotected void handleMousePress(MouseEvent e)
e - the mouse eventprotected void closeDialog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||