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
-
KeyMapBean(TwoDBean)
- Create a MapCanvas to display the given Map.
-
doLayout()
- Whenever layout is called (i.e.
-
getMap()
- What Map is currently being displayed?
-
getOrigin()
- returns the upper left corner coordinate of the key map
-
getPreferredSize()
- The preferred size of this panel--hardwired.
-
getScale()
- returns the scale of the map
-
getWind()
- returns the zoom window
-
makeBox(int, int)
- Makes the zoom window
-
paint(Graphics)
- Draw the Map (from the offscreen image), the tooltip, and the
selection box, making sure they're translated properly.
-
setMap(Map)
- Set the Map to display.
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
setMap
public void setMap(Map theMap)
- Set the Map to display.
getWind
public Rectangle getWind()
- returns the zoom window
getMap
public Map getMap()
- What Map is currently being displayed?
getPreferredSize
public Dimension getPreferredSize()
- The preferred size of this panel--hardwired. Should really be
as big as possible.
getScale
public float getScale()
- returns the scale of the map
getOrigin
public Point getOrigin()
- returns the upper left corner coordinate of the key map
doLayout
public void doLayout()
- Whenever layout is called (i.e. this panel's size has changed),
make sure the offscreen image is redrawn.
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.
makeBox
public void makeBox(int x,
int y)
- Makes the zoom window
All Packages Class Hierarchy This Package Previous Next Index