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

Constructor Index

 o MapPanel(boolean, PacSession)
Constructor

Method Index

 o actionPerformed(ActionEvent)
 o addParticipant(InfoPart)
addParticipant Add a participant location to the MapPanel Unless the MapPanel is not writable, you should not add the local user.
 o finishLoadImage()
 o getMinimumSize()
 o getPreferredSize()
 o getSize()
 o locateMe()
locateMe Returns the position of the local user.
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
 o removeParticipant(InfoPart)
removeParticipant Remove a participant from the MapPanel
 o setMyName(String)
setMyName Sets the name of the local user.

Constructors

 o MapPanel
 public MapPanel(boolean writable,
                 PacSession pacs)
Constructor

Parameters:
writable - Can the user set his position by clicking on the map?

Methods

 o 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
 o removeParticipant
 public void removeParticipant(InfoPart inParticipant)
removeParticipant Remove a participant from the MapPanel

Parameters:
inParticipant - The object that represents the participant to be removed
 o locateMe
 public Point locateMe()
locateMe Returns the position of the local user. Should only be called when the MapPanel is writable...

 o 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
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o mouseMoved
 public void mouseMoved(MouseEvent e)
 o mouseClicked
 public void mouseClicked(MouseEvent e)
 o mouseEntered
 public void mouseEntered(MouseEvent e)
 o mouseReleased
 public void mouseReleased(MouseEvent e)
 o mouseExited
 public void mouseExited(MouseEvent e)
 o mousePressed
 public void mousePressed(MouseEvent e)
 o mouseDragged
 public void mouseDragged(MouseEvent e)
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Container
 o getSize
 public Dimension getSize()
Overrides:
getSize in class Component
 o finishLoadImage
 public void finishLoadImage()
 o actionPerformed
 public void actionPerformed(ActionEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index