All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.env.presentation.MapPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ncsa.env.presentation.MapPanel
- public class MapPanel
- extends Panel
- implements MouseMotionListener, MouseListener, ActionListener
-
MapPanel(boolean, PacSession)
- Constructor
-
actionPerformed(ActionEvent)
-
-
addParticipant(InfoPart)
- addParticipant
Add a participant location to the MapPanel
Unless the MapPanel is not writable, you should not add the local user.
-
finishLoadImage()
-
-
getMinimumSize()
-
-
getPreferredSize()
-
-
getSize()
-
-
locateMe()
- locateMe
Returns the position of the local user.
-
mouseClicked(MouseEvent)
-
-
mouseDragged(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mouseMoved(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
-
-
removeParticipant(InfoPart)
- removeParticipant
Remove a participant from the MapPanel
-
setMyName(String)
- setMyName
Sets the name of the local user.
MapPanel
public MapPanel(boolean writable,
PacSession pacs)
- Constructor
- Parameters:
- writable - Can the user set his position by clicking on the map?
addParticipant
public void addParticipant(InfoPart inParticipant)
- addParticipant
Add a participant location to the MapPanel
Unless the MapPanel is not writable, you should not add the local user.
- Parameters:
- inParticipant - The object that represents the participant to be added
removeParticipant
public void removeParticipant(InfoPart inParticipant)
- removeParticipant
Remove a participant from the MapPanel
- Parameters:
- inParticipant - The object that represents the participant to be removed
locateMe
public Point locateMe()
- locateMe
Returns the position of the local user. Should only be called when the MapPanel is writable...
setMyName
public void setMyName(String inName)
- setMyName
Sets the name of the local user. If this information is not set, "Me!" will be used instead.
- Parameters:
- inName - Name of the user
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
mouseMoved
public void mouseMoved(MouseEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
mouseEntered
public void mouseEntered(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
mouseDragged
public void mouseDragged(MouseEvent e)
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Container
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Container
getSize
public Dimension getSize()
- Overrides:
- getSize in class Component
finishLoadImage
public void finishLoadImage()
actionPerformed
public void actionPerformed(ActionEvent e)
All Packages Class Hierarchy This Package Previous Next Index