|
||||||||||
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.SDHCreationDialog
public class SDHCreationDialog
This class implements a dialog for specifying the parameters of an SDH. It is shown when the user wished to create an SDH.
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
|
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 | |
---|---|
SDHCreationDialog(Frame parent,
int maxSpread,
int maxIterations)
Creates a new instance of the SDH-parameter dialog and initializes it. |
|
SDHCreationDialog(Frame parent,
int maxSpread,
int maxIterations,
String[] underlyingSOMs,
int preselection)
Creates a new instance of the SDH-parameter dialog and initializes it. |
|
SDHCreationDialog(Frame parent,
SOM[] som,
String[] somNames,
int preselection,
int maxIterations)
Creates a new instance of the SDH-parameter dialog and initializes it. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent actionEvent)
|
int |
getFractalComponent()
Returns the strength of the fractal component used to unsharpen the SDH in order to give it a more natural appearance. |
int |
getIndexOfSelectedSOM()
Returns the index of the selected underlying SOM. |
int |
getIterations()
Returns the number of iterations for the interpolation of the voting matrix the user has selected with the slider. |
int |
getSpread()
Returns the spread the user has selected with the slider. |
void |
setConfig(SDHConfig sdhCfg)
Sets the values of the configuration dialog to the ones specified by the given SDHConfig-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 boolean confirmOperation
Constructor Detail |
---|
public SDHCreationDialog(Frame parent, int maxSpread, int maxIterations, String[] underlyingSOMs, int preselection)
parent
- the Frame of the parent window where the dialog should be displayedmaxSpread
- the maximum spread the user can select with the slidermaxIterations
- the maximum iterations the user can select with the sliderunderlyingSOMs
- a list of available SOM that can be used for the new SDHpreselection
- the index specifying which of the underlyingSOMs should be selected by defaultpublic SDHCreationDialog(Frame parent, SOM[] som, String[] somNames, int preselection, int maxIterations)
parent
- the frame of the parent window where the dialog should be displayedsom
- a list of SOMs that can be used as bese for the new SDHsomNames
- the names of the soms given bei the som parameterpreselection
- the index that should be preselected.maxIterations
- the maximum iterations the user can select with the sliderpublic SDHCreationDialog(Frame parent, int maxSpread, int maxIterations)
parent
- the Frame of the parent window where the dialog should be displayedmaxSpread
- the maximum spread the user can select with the slidermaxIterations
- the maximum iterations the user can select with the sliderMethod Detail |
---|
public int getSpread()
public int getIterations()
public int getFractalComponent()
public int getIndexOfSelectedSOM()
public void setConfig(SDHConfig sdhCfg)
sdhCfg
- the SDHConfig-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 |