|
Gridarta Editor
|
Main window of the level editor. More...
Collaboration diagram for net.sf.gridarta.gui.misc.MainView:Public Member Functions | |
| void | addTab (@NotNull final Tab tab) |
| Adds a tab. More... | |
| Tab | getActiveTab (@NotNull final Location location, final boolean alternativeLocation) |
| Returns the active Tab on a given Location of the main view. More... | |
| void | handleThrowable (final Throwable t) |
| This implementation displays the exception in a modal message dialog. More... | |
| MainView (@NotNull final JFrame frame, @NotNull final ActionListener exitAction, @NotNull final Component mapDesktop, @Nullable final ImageIcon icon, @NotNull final Exiter exiter) | |
| Constructs the main view and registers the given main controller. More... | |
Static Private Member Functions | |
| static void | setSeverity (@NotNull final Tab tab, @NotNull final Severity severity) |
| Sets a Tab's Severity. More... | |
Private Attributes | |
| final Component | frame |
| The main window of the editor. More... | |
| final TabbedPanel | tabbedPanel |
| The TabbedPanel that displays frame and all open tabs. More... | |
Static Private Attributes | |
| static final Preferences | PREFERENCES = Preferences.userNodeForPackage(MainControl.class) |
| Preferences. More... | |
| static final String | WINDOW_HEIGHT = "MainWindow.height" |
| The key used to store the main windows height to INI file. More... | |
| static final String | WINDOW_STATE = "WindowState" |
| The key used to store the main window state in the preferences. More... | |
| static final String | WINDOW_WIDTH = "MainWindow.width" |
| The key used to store the main windows width to INI file. More... | |
| static final String | WINDOW_X = "MainWindow.x" |
| The key used to store the main windows x-coordinate to INI file. More... | |
| static final String | WINDOW_Y = "MainWindow.y" |
| The key used to store the main windows y-coordinate to INI file. More... | |
Main window of the level editor.
Contains the desktop for the map windows (internal frames) and the tools.
Definition at line 53 of file MainView.java.
| net.sf.gridarta.gui.misc.MainView.MainView | ( | @NotNull final JFrame | frame, |
| @NotNull final ActionListener | exitAction, | ||
| @NotNull final Component | mapDesktop, | ||
| @Nullable final ImageIcon | icon, | ||
| @NotNull final Exiter | exiter | ||
| ) |
Constructs the main view and registers the given main controller.
| frame | the main window of the editor |
| exitAction | the action to execute when the window is closed |
| mapDesktop | the map desktop to show |
| icon | the application's icon or null |
| exiter | the exiter instance |
Definition at line 105 of file MainView.java.
References net.sf.gridarta.gui.misc.MainView.frame.
| void net.sf.gridarta.gui.misc.MainView.addTab | ( | @NotNull final Tab | tab | ) |
Adds a tab.
| tab | the tab |
Definition at line 161 of file MainView.java.
References net.sf.gridarta.gui.utils.tabbedpanel.TabbedPanel.addTab(), and net.sf.gridarta.gui.misc.MainView.setSeverity().
Here is the call graph for this function:
Here is the caller graph for this function:| Tab net.sf.gridarta.gui.misc.MainView.getActiveTab | ( | @NotNull final Location | location, |
| final boolean | alternativeLocation | ||
| ) |
Returns the active Tab on a given Location of the main view.
| location | the location |
| alternativeLocation | whether the alternative location should be checked |
Definition at line 184 of file MainView.java.
References net.sf.gridarta.gui.utils.tabbedpanel.TabbedPanel.getActiveTab().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.gui.misc.MainView.handleThrowable | ( | final Throwable | t | ) |
This implementation displays the exception in a modal message dialog.
Definition at line 201 of file MainView.java.
Here is the caller graph for this function:
|
staticprivate |
The severity affects the tab's button's color.
| tab | the tab |
| severity | the severity |
Definition at line 194 of file MainView.java.
Referenced by net.sf.gridarta.gui.misc.MainView.addTab().
Here is the caller graph for this function:
|
private |
The main window of the editor.
Definition at line 89 of file MainView.java.
Referenced by net.sf.gridarta.gui.misc.MainView.MainView().
|
staticprivate |
Preferences.
Definition at line 58 of file MainView.java.
|
private |
The TabbedPanel that displays frame and all open tabs.
Definition at line 95 of file MainView.java.
|
staticprivate |
The key used to store the main windows height to INI file.
Definition at line 83 of file MainView.java.
|
staticprivate |
The key used to store the main window state in the preferences.
Definition at line 63 of file MainView.java.
|
staticprivate |
The key used to store the main windows width to INI file.
Definition at line 78 of file MainView.java.
|
staticprivate |
The key used to store the main windows x-coordinate to INI file.
Definition at line 68 of file MainView.java.
|
staticprivate |
The key used to store the main windows y-coordinate to INI file.
Definition at line 73 of file MainView.java.