Class DefaultLayoutPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, org.gvsig.andami.ui.mdiManager.IWindow, org.gvsig.andami.ui.mdiManager.IWindowListener, org.gvsig.andami.ui.mdiManager.SingletonWindow, org.gvsig.app.project.documents.gui.IDocumentWindow, org.gvsig.tools.observer.Observer, org.gvsig.tools.persistence.Persistent
Direct Known Subclasses:
LayoutPanelImpl

public class DefaultLayoutPanel extends LayoutPanel
Layout document window
Author:
Vicente Caballero Navarro
See Also:
  • Field Details

  • Constructor Details

    • DefaultLayoutPanel

      public DefaultLayoutPanel()
      Creates a new Layout object.
  • Method Details

    • setDocument

      public void setDocument(org.gvsig.app.project.documents.Document document)
    • createToc

      protected void createToc()
    • setToc

      protected void setToc()
    • showPagePropertiesWindow

      public void showPagePropertiesWindow(PrinterJob job)
      Open the dialog of Layout properties.
      Parameters:
      job - PrinterJob
    • obtainRect

      public void obtainRect(boolean isPrint)
      Description copied from class: LayoutPanel
      It obtains the rectángulo that represents the sheet with the characteristics that contains attributes and differentiating if is to visualize in screen or for print.
      Specified by:
      obtainRect in class LayoutPanel
    • showFConfig

      public void showFConfig()
      Description copied from class: LayoutPanel
      It shows the dialog of configuration of the Layout.
      Specified by:
      showFConfig in class LayoutPanel
    • showFProperties

      public boolean showFProperties()
      Description copied from class: LayoutPanel
      It shows the dialog of Layout´s properties.
      Specified by:
      showFProperties in class LayoutPanel
    • showPrintDialog

      public void showPrintDialog(PrinterJob job)
      Description copied from class: LayoutPanel
      It shows the dialog of printing of the Layout.
      Specified by:
      showPrintDialog in class LayoutPanel
      Parameters:
      job - PrinterJob
    • createFFrameDialog

      public IFFramePanel createFFrameDialog(IFFrame fframe)
      Description copied from class: LayoutPanel
      The dialogs are created here each time that are needed.
      Specified by:
      createFFrameDialog in class LayoutPanel
      Parameters:
      fframe - Rectangle that represents the place that occupied the element added.
      Returns:
      IFFrame Returns the FFrame added or null if the fframe has not been added.
    • getWindowInfo

      public org.gvsig.andami.ui.mdiManager.WindowInfo getWindowInfo()
      This method is used to get an initial ViewInfo object for this Map. 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.
      See Also:
      • invalid reference
        com.iver.mdiApp.ui.MDIManager.IWindow#getWindowInfo()
    • getLayoutContext

      public LayoutContext getLayoutContext()
      Description copied from class: LayoutPanel
      Returns the LayoutContext.
      Specified by:
      getLayoutContext in class LayoutPanel
      Returns:
      LayoutContext.
    • getLayoutControl

      public LayoutControl getLayoutControl()
      Description copied from class: LayoutPanel
      Returns LayoutControl.
      Specified by:
      getLayoutControl in class LayoutPanel
      Returns:
      LayoutControl.
    • windowActivated

      public void windowActivated()
      See Also:
      • invalid reference
        com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
    • getWindowModel

      public Object getWindowModel()
      See Also:
      • invalid reference
        com.iver.mdiApp.ui.MDIManager.SingletonWindow#getWindowModel()
    • getDocument

      public org.gvsig.app.project.documents.Document getDocument()
    • windowClosed

      public void windowClosed()
      See Also:
      • IWindowListener.windowClosed()
    • backColorChanged

      public void backColorChanged(org.gvsig.fmap.mapcontext.events.ColorEvent e)
      See Also:
      • ViewPortListener.backColorChanged(org.gvsig.fmap.mapcontext.events.ColorEvent)
    • layoutToPDF

      public void layoutToPDF(File file)
      Specified by:
      layoutToPDF in class LayoutPanel
    • layoutToPDF

      public void layoutToPDF(String suggestedName)
      Description copied from class: LayoutPanel
      Opens a dialog where to pick a PDF-file to save the current Layout suggesting a name for the file given by the first argument
      Specified by:
      layoutToPDF in class LayoutPanel
      Parameters:
      suggestedName -
    • layoutToPS

      public void layoutToPS(String suggestedName)
      Description copied from class: LayoutPanel
      Opens a dialog where to pick a PS-file to save the current Layout suggesting a name for the file given by the first argument
      Specified by:
      layoutToPS in class LayoutPanel
      Parameters:
      suggestedName -
    • layoutToPDF

      public void layoutToPDF()
      Description copied from class: LayoutPanel
      It opens a dialog to select pdf file where to save the Layout in this format.
      Specified by:
      layoutToPDF in class LayoutPanel
    • layoutToPS

      public void layoutToPS()
      Description copied from class: LayoutPanel
      It opens a dialog to select ps file where to save the Layout in this format.
      Specified by:
      layoutToPS in class LayoutPanel
    • isShowIconTag

      public boolean isShowIconTag()
      Specified by:
      isShowIconTag in class LayoutPanel
      Returns:
      Returns the bShowIconTag.
    • setShowIconTag

      public void setShowIconTag(boolean modeDebug)
      Specified by:
      setShowIconTag in class LayoutPanel
      Parameters:
      modeDebug - The bModeDebug to set.
    • update

      public void update(org.gvsig.tools.observer.Observable observable, Object notification)
    • getWindowProfile

      public Object getWindowProfile()
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • registerPersistent

      public static void registerPersistent()
    • getWindowLayout

      public org.gvsig.app.project.documents.gui.WindowLayout getWindowLayout()
    • setWindowLayout

      public void setWindowLayout(org.gvsig.app.project.documents.gui.WindowLayout layout)
    • setLayoutManager

      public void setLayoutManager(LayoutManager layoutManager)
      Specified by:
      setLayoutManager in class LayoutPanel
    • drawLayoutPrint

      public void drawLayoutPrint(Graphics2D g2)
      Method to print the Layout without modify the Affinetransform.
      Specified by:
      drawLayoutPrint in class LayoutPanel
      Parameters:
      g2 - Geaphics2D
    • hideToc

      public void hideToc()
      Specified by:
      hideToc in class LayoutPanel
    • showToc

      public void showToc()
      Specified by:
      showToc in class LayoutPanel