All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cmu.owl.ui.twoD.KeyMapBean

edu.cmu.owl.ui.twoD.KeyMapBean

public class KeyMapBean
the panel which displays the key map and allows the user to navigate in 2D

Version:
5/11/97

Constructor Index

 o KeyMapBean(TwoDBean)
Create a MapCanvas to display the given Map.

Method Index

 o doLayout()
Whenever layout is called (i.e.
 o getMap()
What Map is currently being displayed?
 o getOrigin()
returns the upper left corner coordinate of the key map
 o getPreferredSize()
The preferred size of this panel--hardwired.
 o getScale()
returns the scale of the map
 o getWind()
returns the zoom window
 o makeBox(int, int)
Makes the zoom window
 o paint(Graphics)
Draw the Map (from the offscreen image), the tooltip, and the selection box, making sure they're translated properly.
 o setMap(Map)
Set the Map to display.

Constructors

 o KeyMapBean
 public KeyMapBean(TwoDBean twoD)
Create a MapCanvas to display the given Map. For any Applet to have this canvas show up in the applet, construct the MapCanvas with the applet as argument to the cunstructor and that's it.

Parameters:
tempparent - the parent applet for this canvas

Methods

 o setMap
 public void setMap(Map theMap)
Set the Map to display.

 o getWind
 public Rectangle getWind()
returns the zoom window

 o getMap
 public Map getMap()
What Map is currently being displayed?

 o getPreferredSize
 public Dimension getPreferredSize()
The preferred size of this panel--hardwired. Should really be as big as possible.

 o getScale
 public float getScale()
returns the scale of the map

 o getOrigin
 public Point getOrigin()
returns the upper left corner coordinate of the key map

 o doLayout
 public void doLayout()
Whenever layout is called (i.e. this panel's size has changed), make sure the offscreen image is redrawn.

 o paint
 public void paint(Graphics g)
Draw the Map (from the offscreen image), the tooltip, and the selection box, making sure they're translated properly.

 o makeBox
 public void makeBox(int x,
                     int y)
Makes the zoom window


All Packages  Class Hierarchy  This Package  Previous  Next  Index