Class BatchDistanceAction
java.lang.Object
javax.swing.AbstractAction
cz.fidentis.analyst.gui.task.ControlPanelAction<BatchDistancePanel>
cz.fidentis.analyst.gui.task.batch.distance.BatchDistanceAction
- All Implemented Interfaces:
HumanFaceListener
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class BatchDistanceAction
extends ControlPanelAction<BatchDistancePanel>
implements HumanFaceListener
Action listener for batch registration phase.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
enabled, changeSupport
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionBatchDistanceAction
(Canvas canvas, Task task, JTabbedPane topControlPane) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptEvent
(HumanFaceEvent event) Subscription method, which is invoked when an event appears.void
void
Adds listener for similarity computationvoid
Adds listener for facevoid
showFace()
Shows the selected face.Methods inherited from class cz.fidentis.analyst.gui.task.ControlPanelAction
getCanvas, getControlPanel, getPrimaryDrawableFace, getPrimaryFace, getPrimaryFaceId, getPrimaryFeaturePoints, getPrimaryInteractiveMask, getScene, getSecondaryDrawableFace, getSecondaryFace, getSecondaryFaceId, getSecondaryFeaturePoints, getSecondaryInteractiveMask, getTask, hideShowPanelActionPerformed, popup, renderScene, setControlPanel, setShowHideCode
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
BatchDistanceAction
Constructor. A newBatchDistancePanel
is instantiated and added to thetopControlPane
- Parameters:
canvas
- OpenGL canvastask
- Shared faces across multiple batch tabs. The Distance tab checks for changes in the average face stored in the decorator.topControlPane
- A top component when a new control panel is placed
-
-
Method Details
-
addDistanceListener
Adds listener for similarity computation- Parameters:
l
- listener
-
addRegistrationListener
Adds listener for face- Parameters:
l
- listener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- Specified by:
actionPerformed
in classControlPanelAction<BatchDistancePanel>
-
acceptEvent
Description copied from interface:HumanFaceListener
Subscription method, which is invoked when an event appears.- Specified by:
acceptEvent
in interfaceHumanFaceListener
- Parameters:
event
- A fired event.
-
showFace
public void showFace()Shows the selected face. The face is shown in the scene and the listener is notified.
-