Package com.nomagic.magicdraw.ui
Interface ProjectWindowsManager
-
- All Superinterfaces:
WindowsManager
@OpenApiAll public interface ProjectWindowsManager extends WindowsManager
Project windows manager allows adding (and manage) the custom windows to the project.- See Also:
ProjectWindow
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ProjectWindowsManager.ConfiguratorRegistry
Project window configurator registry.
-
Field Summary
-
Fields inherited from interface com.nomagic.magicdraw.ui.WindowsManager
SIDE_EAST, SIDE_NORTH, SIDE_SOUTH, SIDE_WEST, STATE_AUTOHIDE, STATE_DOCKED, STATE_FLOATING, STATE_HIDDEN
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
activateWindow(Project project, java.lang.String id)
Activates the project window.default void
activateWindow(java.lang.String id)
Deprecated.void
addWindow(Project project, ProjectWindow projectWindow)
Adds project window to the active project.default void
addWindow(ProjectWindow projectWindow)
Deprecated.void
addWindowWithoutOpen(Project project, ProjectWindow window)
Adds project window to the active project.default void
addWindowWithoutOpen(ProjectWindow projectWindow)
Deprecated.java.awt.Rectangle
getBounds(Project project, java.lang.String id)
Returns bounds of window with given id.void
hideWindow(Project project, java.lang.String id)
Hides the project window.default void
hideWindow(java.lang.String id)
Deprecated.void
removeWindow(Project project, java.lang.String id)
Removes the project window.default void
removeWindow(java.lang.String id)
Deprecated.void
setBounds(Project project, java.lang.String id, java.awt.Rectangle bounds)
Set bounds of window.void
updateWindow(Project project, ProjectWindow projectWindow)
Updates the given project window.default void
updateWindow(ProjectWindow projectWindow)
Deprecated.
-
-
-
Method Detail
-
addWindow
@Deprecated default void addWindow(ProjectWindow projectWindow)
Deprecated.
-
addWindow
void addWindow(@CheckForNull Project project, ProjectWindow projectWindow)
Adds project window to the active project. Window is opened.- Parameters:
project
- projectprojectWindow
- project window to add
-
addWindowWithoutOpen
@Deprecated default void addWindowWithoutOpen(ProjectWindow projectWindow)
Deprecated.
-
addWindowWithoutOpen
void addWindowWithoutOpen(@CheckForNull Project project, ProjectWindow window)
Adds project window to the active project. Does not try to open window.- Parameters:
project
- projectwindow
- project window to add
-
updateWindow
@Deprecated default void updateWindow(ProjectWindow projectWindow)
Deprecated.
-
updateWindow
void updateWindow(@CheckForNull Project project, ProjectWindow projectWindow)
Updates the given project window.- Parameters:
project
- projectprojectWindow
- project window to update
-
hideWindow
@Deprecated default void hideWindow(java.lang.String id)
Deprecated.
-
hideWindow
void hideWindow(@CheckForNull Project project, java.lang.String id)
Hides the project window. The window is just hidden, but not removed.- Parameters:
project
- projectid
- the id of project window to be hidden
-
removeWindow
@Deprecated default void removeWindow(java.lang.String id)
Deprecated.
-
removeWindow
void removeWindow(@CheckForNull Project project, java.lang.String id)
Removes the project window.- Parameters:
project
- projectid
- the id of project window to be removed
-
activateWindow
@Deprecated default void activateWindow(java.lang.String id)
Deprecated.
-
activateWindow
void activateWindow(@CheckForNull Project project, java.lang.String id)
Activates the project window.- Parameters:
project
- projectid
- the id of project window to be activated.
-
getBounds
@CheckForNull java.awt.Rectangle getBounds(@CheckForNull Project project, java.lang.String id)
Returns bounds of window with given id.- Parameters:
project
- projectid
- window id- Returns:
- bounds of window
-
setBounds
void setBounds(@CheckForNull Project project, java.lang.String id, java.awt.Rectangle bounds)
Set bounds of window. Bounds are changed only if window is "floating". If window is docked inside other container, size is not changed.- Parameters:
project
- projectid
- window idbounds
- bounds
-
-