Class DefaultViewPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, org.gvsig.andami.ui.mdiManager.IWindow, org.gvsig.andami.ui.mdiManager.IWindowListener, org.gvsig.andami.ui.mdiManager.IWindowTransform, org.gvsig.andami.ui.mdiManager.SingletonWindow, IDocumentWindow, IView, org.gvsig.tools.observer.Observer, org.gvsig.tools.swing.api.Component, org.gvsig.tools.util.PropertiesSupport

public class DefaultViewPanel extends AbstractViewPanel implements org.gvsig.tools.observer.Observer, org.gvsig.tools.util.PropertiesSupport

Class View. This class represents the gvSIG specific internal window where the maps are displayed and where the events coming from the user are captured.

It is composed by three main visual areas:

  1. Map control: the map area located in the right area of the window. It takes up the biggest part of the window.
  2. Table of contents (TOC): is a list of layers displayed in the view. The TOC is located on the left-top corner of the View and is the place where the user can modify the order, the legends, the visibility and other properties of the layers.
  3. Map overview: is a small MapControl located in the left-bottom corner of the View where the user can put some layers which summarizes the view. It is used to make the navigation easier and faster.
Author:
2005- Vicente Caballero, 2009- Joaquin del Cerro
See Also:
  • Field Details

    • consoleResponseAdapter

      protected org.gvsig.app.project.documents.view.gui.DefaultViewPanel.ResponseAdapter consoleResponseAdapter
    • isShowConsole

      protected boolean isShowConsole
  • Constructor Details

    • DefaultViewPanel

      public DefaultViewPanel()
      Creates a new View object. Before being used, the object must be initialized.
      See Also:
    • DefaultViewPanel

      public DefaultViewPanel(Document document)
  • Method Details

    • initialize

      protected void initialize(org.gvsig.fmap.mapcontext.MapContext mapContext)
      Create the internal componentes and populate the window with them. If the layout properties were set using the setWindowData(WindowData) method, the window will be populated according to this properties.
      Parameters:
      mapContext -
    • setDocument

      public void setDocument(Document document)
      Specified by:
      setDocument in interface IDocumentWindow
    • getDocument

      public Document getDocument()
      Specified by:
      getDocument in interface IDocumentWindow
    • setModel

      public void setModel(ViewDocument model)
    • getConsolePanel

      public org.gvsig.utils.console.JConsole getConsolePanel()
    • addConsoleListener

      public void addConsoleListener(String prefix, org.gvsig.utils.console.ResponseListener listener)
    • removeConsoleListener

      public void removeConsoleListener(org.gvsig.utils.console.ResponseListener listener)
    • focusConsole

      public void focusConsole(String text)
    • hideConsole

      public void hideConsole()
    • showConsole

      public void showConsole()
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in interface org.gvsig.tools.util.PropertiesSupport
    • setProperty

      public void setProperty(String name, Object value)
      Specified by:
      setProperty in interface org.gvsig.tools.util.PropertiesSupport
    • getProperties

      public Map<String,Object> getProperties()
      Specified by:
      getProperties in interface org.gvsig.tools.util.PropertiesSupport
    • initComponents

      protected void initComponents(org.gvsig.fmap.mapcontext.MapContext mapContext)
    • windowActivated

      public void windowActivated()
      Specified by:
      windowActivated in interface org.gvsig.andami.ui.mdiManager.IWindowListener
      Overrides:
      windowActivated in class AbstractViewPanel
    • windowClosed

      public void windowClosed()
      Specified by:
      windowClosed in interface org.gvsig.andami.ui.mdiManager.IWindowListener
      Overrides:
      windowClosed in class AbstractViewPanel
      See Also:
      • IWindowListener.windowClosed()
    • toPalette

      public void toPalette()
      Specified by:
      toPalette in interface org.gvsig.andami.ui.mdiManager.IWindowTransform
      Overrides:
      toPalette in class AbstractViewPanel
    • restore

      public void restore()
      Specified by:
      restore in interface org.gvsig.andami.ui.mdiManager.IWindowTransform
      Overrides:
      restore in class AbstractViewPanel
    • setDefaultMapOverViewBackColor

      public static void setDefaultMapOverViewBackColor(Color color)
      Sets the default map overview background color that will be used in subsequent projects.
      Parameters:
      color -
    • getDefaultMapOverViewBackColor

      public static Color getDefaultMapOverViewBackColor()
      Returns the current default map overview background color defined which is the color defined when the user does not define any other one
      Returns:
      java.awt.Color
    • getDefaultBackColor

      public static Color getDefaultBackColor()
      Returns the current default view background color defined which is the color defined when the user does not define any other one
      Returns:
      java.awt.Color
    • setDefaultBackColor

      public static void setDefaultBackColor(Color color)
      Parameters:
      color -
    • getWindowProfile

      public Object getWindowProfile()
      Specified by:
      getWindowProfile in interface org.gvsig.andami.ui.mdiManager.IWindow
    • update

      public void update(org.gvsig.tools.observer.Observable observable, Object notification)
      Specified by:
      update in interface org.gvsig.tools.observer.Observer
    • setDisableConsole

      public static void setDisableConsole(boolean disable)