|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opt4j.viewer.ArchiveWidget
public class ArchiveWidget
A widget that monitors the archive.
| Nested Class Summary | |
|---|---|
protected class |
ArchiveWidget.Comp
|
protected class |
ArchiveWidget.Model
The model of the table. |
| Field Summary | |
|---|---|
protected org.opt4j.viewer.SynchronizedIndividualSet |
archive
|
protected javax.swing.JCheckBox |
autoUpdate
|
protected boolean |
changed
|
protected static java.lang.String |
INDEX
|
protected java.util.List<IndividualMouseListener> |
individualMouseListeners
|
protected java.util.List<org.opt4j.core.Objective> |
objectives
|
protected static int |
OFFSET
|
protected java.util.List<org.opt4j.core.Objective> |
order
|
protected javax.swing.JPanel |
panel
|
protected javax.swing.JLabel |
sizeLabel
|
protected java.util.List<org.opt4j.core.Individual> |
swtIndividuals
|
protected javax.swing.JTable |
table
|
protected org.opt4j.core.config.visualization.DelayTask |
task
|
| Constructor Summary | |
|---|---|
ArchiveWidget(org.opt4j.core.optimizer.Archive archive)
Constructs an ArchiveWidget. |
|
| Method Summary | |
|---|---|
void |
addIndividualMouseListener(IndividualMouseListener listener)
Adds a IndividualMouseListener. |
void |
addMouseListeners(java.util.Set<IndividualMouseListener> mouseListeners)
Set the IndividualMouseListeners to inform. |
javax.swing.JPanel |
getPanel()
Returns the panel with the content. |
protected javax.swing.JTable |
getTable()
|
void |
individualAdded(org.opt4j.core.IndividualSet collection,
org.opt4j.core.Individual individual)
|
void |
individualRemoved(org.opt4j.core.IndividualSet collection,
org.opt4j.core.Individual individual)
|
void |
init(Viewport viewport)
Called once after the widget is added to the Viewport. |
void |
iterationComplete(int iteration)
|
void |
objectives(java.util.Collection<org.opt4j.core.Objective> obj)
Callback method that passes the objectives of the optimization problem. |
protected void |
paint()
Repaints the table. |
void |
registerAtObjectivesMonitor(ObjectivesMonitor objectivesMonitor)
Register at the ObjectivesMonitor. |
void |
registerAtOptimizer(org.opt4j.core.optimizer.Optimizer optimizer)
Register at the Optimizer. |
void |
removeIndivdiualMouseListener(IndividualMouseListener listener)
Removes a IndividualMouseListener. |
protected void |
sortIndividiualMouseListeners()
|
protected boolean |
updateOrder()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int OFFSET
protected final org.opt4j.viewer.SynchronizedIndividualSet archive
protected java.util.List<org.opt4j.core.Individual> swtIndividuals
protected final java.util.List<org.opt4j.core.Objective> objectives
protected final java.util.List<org.opt4j.core.Objective> order
protected final javax.swing.JPanel panel
protected final javax.swing.JTable table
protected final javax.swing.JCheckBox autoUpdate
protected final javax.swing.JLabel sizeLabel
protected boolean changed
protected final java.util.List<IndividualMouseListener> individualMouseListeners
protected final org.opt4j.core.config.visualization.DelayTask task
protected static final java.lang.String INDEX
| Constructor Detail |
|---|
@Inject public ArchiveWidget(org.opt4j.core.optimizer.Archive archive)
ArchiveWidget.
archive - the archive| Method Detail |
|---|
@Inject(optional=true) public void registerAtOptimizer(org.opt4j.core.optimizer.Optimizer optimizer)
Optimizer.
optimizer - the optimizer@Inject(optional=true) public void registerAtObjectivesMonitor(ObjectivesMonitor objectivesMonitor)
ObjectivesMonitor.
objectivesMonitor - the objectives monitor@Inject(optional=true) public void addMouseListeners(java.util.Set<IndividualMouseListener> mouseListeners)
IndividualMouseListeners to inform.
mouseListeners - the mouse listenersprotected final javax.swing.JTable getTable()
protected void sortIndividiualMouseListeners()
public void init(Viewport viewport)
WidgetViewport.
init in interface Widgetviewport - the base viewportprotected boolean updateOrder()
protected void paint()
public void addIndividualMouseListener(IndividualMouseListener listener)
IndividualMouseListener.
listener - the individual mouse listener to be addedpublic void removeIndivdiualMouseListener(IndividualMouseListener listener)
IndividualMouseListener.
listener - the individual mouse listener to be removedpublic void iterationComplete(int iteration)
iterationComplete in interface org.opt4j.core.optimizer.OptimizerIterationListener
public void individualAdded(org.opt4j.core.IndividualSet collection,
org.opt4j.core.Individual individual)
individualAdded in interface org.opt4j.core.IndividualSetListener
public void individualRemoved(org.opt4j.core.IndividualSet collection,
org.opt4j.core.Individual individual)
individualRemoved in interface org.opt4j.core.IndividualSetListenerpublic javax.swing.JPanel getPanel()
Widget
getPanel in interface Widgetpublic void objectives(java.util.Collection<org.opt4j.core.Objective> obj)
ObjectivesMonitor.ObjectivesListener
objectives in interface ObjectivesMonitor.ObjectivesListenerobj - the objectives
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||