Package org.opt4j.viewer
Class Viewport
java.lang.Object
org.opt4j.viewer.Viewport
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final JDesktopPane
protected static final int
protected final JPanel
protected final Map<Widget,
JInternalFrame> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToDesktop
(JInternalFrame inFrame) Adds aJInternalFrame
.void
Adds a widget.protected JInternalFrame
createInternalFrame
(Widget widget) Creates a widget as aJInternalFrame
.get()
Returns the component.getInternalFrame
(Widget widget) void
init()
Initialization.
-
Field Details
-
desktop
-
panel
-
OFFSET
protected static final int OFFSET- See Also:
-
widgets
-
-
Constructor Details
-
Viewport
public Viewport()
-
-
Method Details
-
init
public void init()Initialization. This method has to be called once after construction. -
addWidget
Adds a widget.- Parameters:
widget
- the widget to be added
-
createInternalFrame
Creates a widget as aJInternalFrame
.- Parameters:
widget
- the widget- Returns:
- the constructed JInternalFrame
-
addToDesktop
Adds aJInternalFrame
.- Parameters:
inFrame
- the JInternalFrame to be added
-
getInternalFrame
- Parameters:
widget
- the widget- Returns:
- the internal frame
-
get
Returns the component.- Returns:
- the component
-