Package org.opt4j.viewer
Provides the classes for the optimization visualization, i.e., the Viewer
.
The Viewer
is a JFrame
consisting of the
following elements:
The Viewport
is a desktop for Widget
elements.
A widget is similar to a JInternalFrame
, several properties are
defined in the WidgetParameters
. Widgets are added
directly to the viewport.
Additional buttons are added to the ToolBar
using the
ToolBarService
. Each ToolBarService
is added in
the VisualizationModule
.
One predefined specific widget is the ArchiveWidget
.
This widget shows all Individual
s which are currently in the
Archive
. By default, these are the best Individual
s found so far during the optimization process. In practice a user
might want to visualize one of these Individual
s or their Phenotype
, respectively. The IndividualMouseListener
is used to listen to the double-clicking of an Individual
in the
Archive
as well as a popup handling which is usually invoked by a
right-click. An IndividualMouseListener
is added in the
VisualizationModule
.
-
Interface Summary Interface Description IndividualMouseListener Listener for mouse events onIndividual
s.ObjectivesMonitor.ObjectivesListener TheObjectivesMonitor.ObjectivesListener
is an interface for classes that need the objectives.ToolBarService TheToolBarService
is an interface for arbitrary components that are added to the tool bar in the viewer.Widget -
Class Summary Class Description ArchiveWidget A widget that monitors the archive.AutoZoomButton ControlButtons TheControlButtons
containsJButton
s for the controls:ControlToolBarService TheControlToolBarService
is aToolBarService
that allows toControl
theOptimizer
.This service has anToolBarOrder
with-100
.ConvergencePlotWidget TheConvergencePlotWidget
plots the convergence for eachObjective
.DelayTask TheDelayTask
executes tasks immediately or delayed if they arrive too close (delay).ObjectivesMonitor TheObjectivesMonitor
informs its listeners about theObjective
s of the optimization problem as soon as it is available.ParetoPlotWidget PopulationWidget A widget that monitors thePopulation
.Progress StatusBar TheStatusBar
contains informations about the optimization progress and time per iteration.ToolBar TheToolBar
is a collection of theToolBarService
s.Viewer TheViewer
.ViewerModule TheViewerModule
configures the optimization process viewer.Viewport ViewsToolBarService VisualizationModule TheVisualizationModule
. -
Enum Summary Enum Description Viewer.CloseEvent TheViewer.CloseEvent
that is triggered if this viewer is closed. -
Annotation Types Summary Annotation Type Description ToolBarOrder TheToolBarOrder
Annotation is used forToolBarService
ordering.WidgetParameters TheWidgetParameters
.