nl.tudelft.goal.ut2004.visualizer.timeline.map
Class MapController

Package class diagram package MapController
java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by nl.tudelft.goal.ut2004.visualizer.timeline.map.MapController
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener

public class MapController
extends MouseInputAdapter
implements MouseListener, MouseMotionListener

Class for controling viewport in map.

The view of map is specified in MapViewpoint, it consists from

These three components are always orthogonal (the angle between them is 90 degrees).

The user is controlling the view by dragging the mouse while pressing the buttons:

X axis is green, Y axis is red Z axis is up/down (up direction is negative)

Author:
Honza

Constructor Summary
MapController(MapGLPanel panel, MapViewpoint mapViewpoint, cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box bounds)
           
 
Method Summary
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void registerListeners()
           
 void unregisterListeners()
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseMoved
 

Constructor Detail

MapController

public MapController(MapGLPanel panel,
                     MapViewpoint mapViewpoint,
                     cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box bounds)
Method Detail

registerListeners

public void registerListeners()

unregisterListeners

public void unregisterListeners()

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class MouseAdapter

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class MouseAdapter


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.