|
||||||||||
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.GHSOMCreationDialog
public class GHSOMCreationDialog
This class implements a dialog for specifying the parameters of a GHSOM. It is shown when the user wished to create a GHSOM.
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
flag indicating for the creating instance, if the dialog was closed by clicking of "Create SOM" |
(package private) int[] |
initMethods
a Vector and an int array storing the possible initialisation methods the Vector stores the String-representation, the int[] the numbers i.e. |
(package private) Vector<String> |
initMethodsString
String represenations of the initialisation methods |
static int |
TRAIN_LENGTH
|
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 | |
---|---|
GHSOMCreationDialog(Frame parent)
Creates a new instance of the SOM-parameter dialog and initializes it. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent actionEvent)
|
double |
getExpandThreshold()
Returns the growThreshold the user has selected with the slider. |
double |
getGrowThreshold()
Returns the growThreshold the user has selected with the slider. |
int |
getInitMethod()
Returns the chosen initialisation method as an int as specified in the class SOM. |
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 |
getMaxDepth()
Returns the maximum depth of the GHSOM the user has selected with the slider. |
int |
getMaxSize()
Returns the maximum size of a map of the GHSOM the user has selected with the slider. |
int |
getTrainingLength()
Returns the training length in epochs the user has selected with the slider. |
boolean |
isCircular()
|
boolean |
isFirstCircular()
|
boolean |
isOrientated()
|
void |
setConfig(GHSOMConfig ghsomCfg)
Sets the values of the configuration dialog to the ones specified by the given GHSOMConfig-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 |
---|
public static final int TRAIN_LENGTH
int[] initMethods
Vector<String> initMethodsString
public boolean confirmOperation
Constructor Detail |
---|
public GHSOMCreationDialog(Frame parent)
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 double getGrowThreshold()
public double getExpandThreshold()
public int getTrainingLength()
public int getMaxSize()
public int getMaxDepth()
public boolean isCircular()
public boolean isFirstCircular()
public boolean isOrientated()
public void setConfig(GHSOMConfig ghsomCfg)
ghsomCfg
- the GHSOMConfig-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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |