Class AbstractViewPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.app.project.documents.view.gui.AbstractViewPanel
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.swing.api.Component
Direct Known Subclasses:
DefaultViewPanel

public abstract class AbstractViewPanel extends JPanel implements IView, org.gvsig.andami.ui.mdiManager.IWindowTransform, PropertyChangeListener, org.gvsig.tools.swing.api.Component
Author:
gvSIG Team
See Also:
  • Field Details

  • Constructor Details

    • AbstractViewPanel

      public AbstractViewPanel()
      Creates a new View object. Before using it, it must be initialized using the initialize() method.
      See Also:
  • Method Details

    • windowActivated

      public void windowActivated()
      Specified by:
      windowActivated in interface org.gvsig.andami.ui.mdiManager.IWindowListener
    • asJComponent

      public JComponent asJComponent()
      Specified by:
      asJComponent in interface org.gvsig.tools.swing.api.Component
    • getViewInformationArea

      public ViewInformationArea getViewInformationArea()
      Specified by:
      getViewInformationArea in interface IView
    • toPalette

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

      public void restore()
      Specified by:
      restore in interface org.gvsig.andami.ui.mdiManager.IWindowTransform
    • initialize

      protected void initialize()
      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.
    • getWindowInfo

      public org.gvsig.andami.ui.mdiManager.WindowInfo getWindowInfo()
      This method is used to get an initial ViewInfo object for this View. It is not intended to retrieve the ViewInfo object in a later time. Use PluginServices.getMDIManager().getViewInfo(view) to retrieve the ViewInfo object at any time after the creation of the object.
      Specified by:
      getWindowInfo in interface org.gvsig.andami.ui.mdiManager.IWindow
      See Also:
      • invalid reference
        com.iver.mdiApp.ui.MDIManager.IWindow#getWindowInfo()
    • windowClosed

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

      public ViewDocument getModel()
    • getViewDocument

      public ViewDocument getViewDocument()
      Specified by:
      getViewDocument in interface IView
    • getMapOverview

      public MapOverview getMapOverview()
      Specified by:
      getMapOverview in interface IView
    • getMapControl

      public org.gvsig.fmap.mapcontrol.MapControl getMapControl()
      Specified by:
      getMapControl in interface IView
    • getTOC

      public TOC getTOC()
      Specified by:
      getTOC in interface IView
    • getWindowModel

      public Object getWindowModel()
      Specified by:
      getWindowModel in interface org.gvsig.andami.ui.mdiManager.SingletonWindow
    • isPalette

      public boolean isPalette()
      This method is used to get an initial ViewInfo object for this View. It is not intended to retrieve the ViewInfo object in a later time. Use PluginServices.getMDIManager().getViewInfo(view) to retrieve the ViewInfo object at any time after the creation of the object.
      Specified by:
      isPalette in interface org.gvsig.andami.ui.mdiManager.IWindowTransform
      See Also:
      • invalid reference
        com.iver.mdiApp.ui.MDIManager.IWindow#getWindowInfo()
    • repaintMap

      public void repaintMap()
    • getImage

      public BufferedImage getImage()
      Returns:
    • setProjection

      public void setProjection(org.gvsig.crs.projection.lib.Projection proj)
    • getProjection

      public org.gvsig.crs.projection.lib.Projection getProjection()
    • getWindowLayout

      public WindowLayout getWindowLayout()
      Description copied from interface: IDocumentWindow
      Método para obtener un windowData con las propiedades de la ventana del documento como pueden ser tamaños, posiciones y estados de sliders, divisores etc. Este método será llamado para guardar los datos a disco. Lo llamará la clase project para obtener los datos y asi guardarlos.
      Specified by:
      getWindowLayout in interface IDocumentWindow
      Returns:
      un windowData con los datos de la ventana.
    • setWindowLayout

      public void setWindowLayout(WindowLayout data)
      Description copied from interface: IDocumentWindow
      Método para cargar los datos de la ventana de proyecto. El widowData guardado se le pasa a la clase de interfaz de usuario correspondiente a la ventana del documento.
      Specified by:
      setWindowLayout in interface IDocumentWindow
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener