Class AwtWindowProperties


  • public class AwtWindowProperties
    extends java.lang.Object
    Use the JMRI UserPreferencesManager to store the size and location for the Editor windows.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.awt.Dimension dim  
      (package private) java.awt.Point pt  
    • Constructor Summary

      Constructors 
      Constructor Description
      AwtWindowProperties​(java.awt.Window window, java.lang.String filename, java.lang.String windowName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void saveWindowState​(java.awt.Window window, java.lang.String windowName)  
      void saveWindowStateAndClose​(java.awt.Window window, java.lang.String windowName)  
      void setWindowState​(java.awt.Window window, java.lang.String windowName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pt

        java.awt.Point pt
      • dim

        java.awt.Dimension dim
    • Constructor Detail

      • AwtWindowProperties

        public AwtWindowProperties​(java.awt.Window window,
                                   java.lang.String filename,
                                   java.lang.String windowName)
    • Method Detail

      • setWindowState

        public final void setWindowState​(java.awt.Window window,
                                         java.lang.String windowName)
      • saveWindowState

        public void saveWindowState​(java.awt.Window window,
                                    java.lang.String windowName)
      • saveWindowStateAndClose

        public void saveWindowStateAndClose​(java.awt.Window window,
                                            java.lang.String windowName)