|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.Gui1.InternalFrame
public class InternalFrame
This class is responsible to built up and manage the internal frames in the desktop. It manages both the explorer frame, the ACS frames, the view frames, the diagram frames, the text frames, the 'All views' frames and the Structure frame. An internalFrame may have a null title if the number of frames is more than 20. It works with the InternalFrameModel class. It implements the singleton pattern.
Field Summary | |
---|---|
static java.awt.Color |
BACKCOLOR
|
static java.awt.Color |
BACKCOLOR_2
|
static java.awt.Color |
BACKCOLOR_3
|
static java.awt.Color |
BACKCOLOR_4
|
static java.awt.Color |
BACKCOLOR_5
|
static java.awt.Color |
BACKCOLOR_6
|
static java.awt.Color |
BACKCOLOR_8
|
static java.awt.Color |
FORECOLOR
|
static java.awt.Color |
FORECOLOR_2
|
static java.awt.Color |
FORECOLOR_3
|
static java.awt.Color |
FORECOLOR_4
|
static java.awt.Color |
FORECOLOR_BLACK
|
private static IconPolice |
iconPolice__
|
private static int |
INITIAL_CAPACITY
|
private static InternalFrame |
instance__
the only instance of this class, following the singleton pattern |
private static InternalFrameModel |
model__
the instance, following the MVC pattern, which manages the internal frames data |
static java.awt.Color |
NON_EDITABLECOLOR
|
static java.awt.Color |
SOFTGREY
|
Constructor Summary | |
---|---|
InternalFrame()
only one private constructor |
Method Summary | |
---|---|
static InternalFrame |
getInstance()
Only method to get an instance. |
static void |
openBeamer(javax.swing.JComponent _pane)
Opens the Beamer if it is closed, or updates the beamer if it is open. |
static void |
openExplorer()
Opens the Explorer if it is closed. |
static void |
openSketcher(GraphicSketchView _pane)
Opens the sketcher if it is closed, or no operation. |
private static javax.swing.JInternalFrame |
prepareFrame(javax.swing.JInternalFrame _frame,
javax.swing.JComponent _component)
Creates a frame including a JComponent at the center, with a scroll pane, and with the standard icon police. |
private static javax.swing.JInternalFrame |
prepareFrameWithoutScrolling(javax.swing.JInternalFrame _frame,
javax.swing.JComponent _component)
Creates a frame including a JComponent at the center, without any scroll pane, and with the standard icon police. |
static javax.swing.JInternalFrame |
prepareInformationFrame(javax.swing.JInternalFrame _frame,
int _width,
int _height)
Displays a frame with an information message. |
private static javax.swing.JInternalFrame |
setFrameDisposition(javax.swing.JInternalFrame _frame)
Sets the frame to the down right corner of the desktop, in a 400x400 square. |
static javax.swing.JInternalFrame |
showACSTreeFrame(ImmutableName _name,
javax.swing.JTree _tree,
BaseObject _object)
Creates and displays a frame including an ACS tree, with a frame listener which fires events to ActionCloseACS, and register _object as a base object. |
static javax.swing.JInternalFrame |
showAllFullViewsFrame(javax.swing.JPanel _panel)
Creates and displays a frame including a tabbed pane of all graphical views for the open full views, with a frame listener which fires events to ActionClose. |
static javax.swing.JInternalFrame |
showAllNoThanViewsFrame(javax.swing.JPanel _panel)
Creates and displays a frame including a tabbed pane of all graphical views for the open NoThan views, with a frame listener which fires events to ActionClose. |
static javax.swing.JInternalFrame |
showArchitectureFrame(GraphicView _gview,
ViewInBase _view)
Creates and displays a frame including an unique view of the ACS architecture. |
(package private) static void |
showBeamerFrame(javax.swing.JComponent _pane)
Creates and displays the beamer panel for a base object. |
static javax.swing.JInternalFrame |
showEmptyFrame(java.lang.String _message,
javax.swing.JComponent _pane,
int _width,
int _height)
Create and display the panel for a dialog without buttons, but just the ability to close the frame. |
private static javax.swing.JInternalFrame |
showExplorerFrame(javax.swing.JTree _tree)
Creates and displays an explorer frame including a tree, at the top left of the main window. |
static javax.swing.JInternalFrame |
showStructureFrame(javax.swing.JPanel _panel,
javax.swing.JTree _tree)
Creates and displays the 'IS Structure' frame including a beamer-like panel and the IS trees, with a frame listener which fires events to ActionClose. |
static javax.swing.JInternalFrame |
showTextFrame(javax.swing.JTextPane _text,
java.lang.String _title,
java.net.URI _uriIcon)
Creates and displays a frame including a JTextPane. |
static javax.swing.JInternalFrame |
showViewFrame(GraphicView _gview,
BaseObject _object)
Creates and displays a frame including a graphical view, with a frame listener which fires events to ActionCloseView, and registers _object as a base object. |
(package private) static void |
updateBeamerObject(javax.swing.JComponent _pane)
Updates the beamer panel for a base object. |
static javax.swing.JInternalFrame |
updateTextFrame(javax.swing.JTextPane _text,
javax.swing.JInternalFrame _frame)
Creates and displays a frame including a text in html. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static InternalFrame instance__
private static InternalFrameModel model__
public static final java.awt.Color BACKCOLOR
public static final java.awt.Color FORECOLOR
public static final java.awt.Color FORECOLOR_BLACK
public static final java.awt.Color BACKCOLOR_2
public static final java.awt.Color BACKCOLOR_3
public static final java.awt.Color NON_EDITABLECOLOR
public static final java.awt.Color BACKCOLOR_8
public static final java.awt.Color SOFTGREY
public static final java.awt.Color BACKCOLOR_4
public static final java.awt.Color BACKCOLOR_5
public static final java.awt.Color BACKCOLOR_6
public static final java.awt.Color FORECOLOR_2
public static final java.awt.Color FORECOLOR_3
public static final java.awt.Color FORECOLOR_4
private static final int INITIAL_CAPACITY
private static IconPolice iconPolice__
Constructor Detail |
---|
public InternalFrame()
Method Detail |
---|
public static InternalFrame getInstance()
public static javax.swing.JInternalFrame showACSTreeFrame(ImmutableName _name, javax.swing.JTree _tree, BaseObject _object) throws ProcessError
_name
- of the object shown, with 2 components at least.
Equal to the name of _object in the base._tree
- to display_object
- is associated to the tree in the base. May be null.
ProcessError
- if _object is null.public static javax.swing.JInternalFrame showViewFrame(GraphicView _gview, BaseObject _object) throws ProcessError
_gview
- to display_object
- is the view associated to the frame in the base.
Its name must have at least two components.
ProcessError
- if _object is null.static void showBeamerFrame(javax.swing.JComponent _pane)
_pane
- to display, which is updated by the caller of this
method.
May be null. It is not used so far.public static javax.swing.JInternalFrame showAllFullViewsFrame(javax.swing.JPanel _panel) throws ProcessError
_panel
- of a tabbed pane to display
ProcessError
- if _object is null.public static javax.swing.JInternalFrame showAllNoThanViewsFrame(javax.swing.JPanel _panel) throws ProcessError
_panel
- of a tabbed pane to display
ProcessError
- if _object is null.public static javax.swing.JInternalFrame showArchitectureFrame(GraphicView _gview, ViewInBase _view) throws ProcessError
_gview
- to display_view
- is the view associated to the architecture in the base.
Its name has only one component.
ProcessError
- if _object is null.public static javax.swing.JInternalFrame showStructureFrame(javax.swing.JPanel _panel, javax.swing.JTree _tree) throws ProcessError
_panel
- to display, including a tabbed pane and a tree_tree
- of the global structure, set at the bottom of _panel
ProcessError
- if _object is null.public static javax.swing.JInternalFrame showEmptyFrame(java.lang.String _message, javax.swing.JComponent _pane, int _width, int _height)
_message
- displayed at the top of the frame_pane
- to display, which is updated by the caller of this
method. May be null._width
- of the frame_height
- of the frame
public static javax.swing.JInternalFrame prepareInformationFrame(javax.swing.JInternalFrame _frame, int _width, int _height)
_frame
- to display._width
- of the frame_height
- of the frame
static void updateBeamerObject(javax.swing.JComponent _pane)
_pane
- to display, which is updated by the caller of this method.public static void openBeamer(javax.swing.JComponent _pane)
_pane
- to display, which is updated by the caller of this method.
May be null.public static void openExplorer()
public static void openSketcher(GraphicSketchView _pane)
_pane
- to display, which is a non-null GraphicSketchView.public static javax.swing.JInternalFrame showTextFrame(javax.swing.JTextPane _text, java.lang.String _title, java.net.URI _uriIcon)
_text
- to display, possibly with image(s)_title
- of the frame_uriIcon
- URI of the image to use as frame icon
public static javax.swing.JInternalFrame updateTextFrame(javax.swing.JTextPane _text, javax.swing.JInternalFrame _frame)
_text
- to display, possibly with image(s)_frame
- to update
private static javax.swing.JInternalFrame prepareFrameWithoutScrolling(javax.swing.JInternalFrame _frame, javax.swing.JComponent _component) throws DialogError
_frame
- JInternalFrame to process._component
- JComponent to display
DialogError
- if there is more than 20 open frames.private static javax.swing.JInternalFrame prepareFrame(javax.swing.JInternalFrame _frame, javax.swing.JComponent _component) throws DialogError
_frame
- JInternalFrame to process._component
- JComponent to display
DialogError
- if there is more than 20 open frames.private static javax.swing.JInternalFrame showExplorerFrame(javax.swing.JTree _tree)
_tree
- to display
private static javax.swing.JInternalFrame setFrameDisposition(javax.swing.JInternalFrame _frame)
_frame
- JInternalFrame to handle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |