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