Package org.opt4j.viewer
Class Viewport
java.lang.Object
org.opt4j.viewer.Viewport
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JDesktopPaneprotected static final intprotected final JPanelprotected final Map<Widget,JInternalFrame> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToDesktop(JInternalFrame inFrame) Adds aJInternalFrame.voidAdds a widget.protected JInternalFramecreateInternalFrame(Widget widget) Creates a widget as aJInternalFrame.get()Returns the component.getInternalFrame(Widget widget) voidinit()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
-