Class WorldMapPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class WorldMapPane extends JPanel
This class displays a world map specified by the WorldMapPaneDataModel.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

  • Method Details

    • doLayout

      public void doLayout()
      Overrides:
      doLayout in class Container
    • getSelectedProduct

      public Product getSelectedProduct()
    • getProducts

      public Product[] getProducts()
    • getScale

      public float getScale()
    • zoomToProduct

      public void zoomToProduct(Product product)
    • zoomAll

      public void zoomAll()
    • setNavControlVisible

      public void setNavControlVisible(boolean navControlShown)
      None API. Don't use this method!
      Parameters:
      navControlShown - true, if this canvas uses a navigation control.
    • setPanSupport

      public void setPanSupport(WorldMapPane.PanSupport panSupport)
    • getLayerCanvas

      public LayerCanvas getLayerCanvas()
    • addZoomListener

      public boolean addZoomListener(WorldMapPane.ZoomListener zoomListener)
    • removeZoomListener

      public boolean removeZoomListener(WorldMapPane.ZoomListener zoomListener)
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • getOverlayActions

      protected Action[] getOverlayActions()
    • fireScrolled

      protected void fireScrolled()
    • cropToMaxModelBounds

      protected Rectangle2D cropToMaxModelBounds(Rectangle2D modelBounds)