public class Gui
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
AlgoritmusOkno |
algoritmusOkno |
static int |
CEKEJ |
InitOkno |
initOkno |
VysledkyPredzpracovaniOkno |
predzpracovaniOkno |
Constructor and Description |
---|
Gui()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
beh()
Executes the algorithm.
|
void |
centruj(javax.swing.JFrame okno)
Makes centering of selected window.
|
void |
csv(java.io.File soubor)
Generates a CSV file from the information about clusters.
|
void |
dokonciPredzpracovani()
Executes pre-processing results window.
|
dip.model.algoritmus.Algoritmus |
getAlg()
Get instance of algorithm class.
|
Data |
getData()
Gets the input dataset.
|
static Gui |
getInstance()
Get instance of this class as a singleton.
|
void |
inicializace()
Executed algorithm initialization.
|
void |
krok()
Executes the algorithm step.
|
void |
setAlg(dip.model.algoritmus.Algoritmus alg)
Sets the algorithm.
|
void |
setData(Data data)
Sets the input dataset.
|
void |
spustitInicializaci()
Executes initialization window.
|
void |
spustitVysledky()
Executes algorithm results window.
|
void |
xmlExport(javax.swing.JFrame frame,
java.io.File soubor)
Makes export into the XML file.
|
void |
xmlImport(javax.swing.JFrame frame,
java.io.File soubor)
Imports an XML file and sends it to the view layer classes.
|
void |
zacatekPredzpracovani()
Starts the pre-processing.
|
public static final int CEKEJ
public InitOkno initOkno
public VysledkyPredzpracovaniOkno predzpracovaniOkno
public AlgoritmusOkno algoritmusOkno
public Gui()
public static Gui getInstance()
public dip.model.algoritmus.Algoritmus getAlg()
public void setAlg(dip.model.algoritmus.Algoritmus alg)
instance
- of algorithm classpublic Data getData()
public void setData(Data data)
instance
- of class representing input datapublic void spustitInicializaci()
public void spustitVysledky()
public void dokonciPredzpracovani()
public void xmlExport(javax.swing.JFrame frame, java.io.File soubor)
frame
- a JFrame instancesoubor
- output XML filepublic void xmlImport(javax.swing.JFrame frame, java.io.File soubor)
frame
- a JFrame instancesoubor
- input XML filepublic void centruj(javax.swing.JFrame okno)
okno
- a Frame instancepublic void zacatekPredzpracovani()
public void krok()
public void beh()
public void inicializace()
public void csv(java.io.File soubor)