|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Dialog javax.swing.JDialog comirva.ui.SOMCreationDialog
public class SOMCreationDialog
This class implements a dialog for specifying the parameters of a SOM. It is shown when the user wished to create a SOM.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
boolean |
confirmOperation
|
(package private) int[] |
initMethods
|
(package private) Vector |
initMethodsString
|
(package private) Vector |
trainingMethods
|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SOMCreationDialog(Frame parent,
int mapUnitsInRowDefault,
int mapUnitsInColumnDefault)
Creates a new instance of the SOM-parameter dialog and initializes it. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent actionEvent)
|
int |
getInitMethod()
Returns the chosen initialisation method as an int as specified in the class SOM. |
Vector |
getInitMethodsString()
|
int |
getMapUnitsInColumn()
Returns the number of map units per column the user has selected with the slider. |
int |
getMapUnitsInRow()
Returns the number of map units per row the user has selected with the slider. |
int |
getTrainingLength()
Returns the training length in epochs the user has selected with the slider. |
int |
getTrainingMethod()
Returns the method used for training the user has selected in the combo box. |
boolean |
isCircular()
|
boolean |
isMapUnitsInColumnDefault(int mapUnitsInColumn)
returns true>/code> if parameter is equal to its standard value |
boolean |
isMapUnitsInRowDefault(int mapUnitsInRow)
returns true if parameter is equal to its standard value |
void |
setConfig(SOMConfig somCfg)
Sets the values of the configuration dialog to the ones specified by the given SOMConfig-instance. |
void |
stateChanged(ChangeEvent e)
|
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int[] initMethods
Vector initMethodsString
public boolean confirmOperation
Vector trainingMethods
Constructor Detail |
---|
public SOMCreationDialog(Frame parent, int mapUnitsInRowDefault, int mapUnitsInColumnDefault)
parent
- the Frame of the parent window where the dialog should be displayedmapUnitsInRowDefault
- the default number of map units per row (used for the "Default Values"-button)mapUnitsInColumnDefault
- the default number of map units per column (used for the "Default Values"-button)SOM.setSOMSizeEstimation()
Method Detail |
---|
public int getMapUnitsInRow()
public int getMapUnitsInColumn()
public int getInitMethod()
public int getTrainingMethod()
SOM
public int getTrainingLength()
public boolean isCircular()
public void setConfig(SOMConfig somCfg)
somCfg
- the SOMConfig-instance containing the values for the dialogpublic void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
ChangeListener.stateChanged(javax.swing.event.ChangeEvent)
public void actionPerformed(ActionEvent actionEvent)
actionPerformed
in interface ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public Vector getInitMethodsString()
public boolean isMapUnitsInRowDefault(int mapUnitsInRow)
true
if parameter is equal to its standard value
mapUnitsInRow
- map units in row
public boolean isMapUnitsInColumnDefault(int mapUnitsInColumn)
true>/code> if parameter is equal to its standard value
- Parameters:
mapUnitsInColumn
- map units in column
- Returns:
- if the parameter is the standard value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |