Documentation of 'org.jhotdraw.app.OSXApplication' Java class
OSXApplication
org.jhotdraw.app

Class OSXApplication

    • Constructor Detail

      • OSXApplication

        public OSXApplication()
        Creates a new instance.
    • Method Detail

      • init

        public void init()
        Description copied from interface: Application
        Initializes the application. configure() should have been invoked before the application is inited. Alternatively an application can be configured using setter methods.
        Specified by:
        init in interface Application
        Overrides:
        init in class AbstractApplication
      • launch

        public void launch(java.lang.String[] args)
        Description copied from class: AbstractApplication
        Launches the application.
        Specified by:
        launch in interface Application
        Overrides:
        launch in class AbstractApplication
        Parameters:
        args - This implementation supports the command-line parameter "-open" which can be followed by one or more filenames or URI's.
      • addWindow

        public void addWindow(java.awt.Window window,
                              View view)
        Description copied from interface: Application
        Adds a (non-palette) window to the application.
        Specified by:
        addWindow in interface Application
        Overrides:
        addWindow in class AbstractApplication
        Parameters:
        window - The window.
        view - The View to which this window is associated, or null if the window is associated to the application.
      • show

        public void show(View view)
        Description copied from interface: Application
        Shows a view.
      • hide

        public void hide(View p)
        Description copied from interface: Application
        Hides a view.
      • createViewMenu

        @Nullable
        public javax.swing.JMenu createViewMenu(View view)
        Description copied from interface: Application
        Creates a view menu for the specified view or for the entire application.
        Parameters:
        view - A view or null.
        Returns:
        A JMenu or null, if the menu is empty.
      • createWindowMenu

        public javax.swing.JMenu createWindowMenu(View view)
        Description copied from interface: Application
        Creates a window menu for the specified view or for the entire application.
        Parameters:
        view - A view or null.
        Returns:
        A JMenu or null, if the menu is empty.
      • createFileMenu

        @Nullable
        public javax.swing.JMenu createFileMenu(View view)
        Description copied from interface: Application
        Creates a file menu for the specified view or for the entire application.
        Parameters:
        view - A view or null.
        Returns:
        A JMenu or null, if the menu is empty.
      • createEditMenu

        @Nullable
        public javax.swing.JMenu createEditMenu(View view)
        Description copied from interface: Application
        Creates an edit menu for the specified view or for the entire application.
        Parameters:
        view - A view or null.
        Returns:
        A JMenu or null, if the menu is empty.
      • createHelpMenu

        public javax.swing.JMenu createHelpMenu(View view)
        Description copied from interface: Application
        Creates a help menu for the specified view of for the entire application.
        Parameters:
        view - A view or null.
        Returns:
        A JMenu or null, if the menu is empty.
      • isSharingToolsAmongViews

        public boolean isSharingToolsAmongViews()
        Description copied from interface: Application
        Returns true, if this application shares tools among multiple views.
      • getComponent

        public java.awt.Component getComponent()
        Returns the Frame which holds the frameless JMenuBar.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.