public class RandomWalkView extends Object implements ActionListener, ItemListener
This is view only. It contains UI definition and handles events related to its internal state. All other events are handled in controller.
Constructor and Description |
---|
RandomWalkView()
Build View but not show it.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Create dynamic panel on window depending on state of radio buttons group.
|
void |
addBgController(ActionListener list)
Assign listener to BG button.
|
void |
addCancelController(ActionListener list)
Assign listener to Cancel button.
|
void |
addCloneController(ActionListener list)
Assign listener to Clone button.
|
void |
addFgController(ActionListener list)
Assign listener to FG button.
|
void |
addHelpController(ActionListener list)
Assign listener to Help button.
|
void |
addImageController(ActionListener list)
Assign listener to original image selector.
|
void |
addLoadQconfController(ActionListener list)
Assign listener to Load Qconf button.
|
void |
addQconfShowSeedImageController(ActionListener list)
Assign listener to Show loaded Qconfbutton.
|
void |
addRunActiveController(ActionListener list)
Assign listener to Run selected slice button.
|
void |
addRunController(ActionListener list)
Assign listener to Run button.
|
void |
addSeedController(ActionListener list)
Assign listener to all seed selectors.
|
void |
addSeedRoiController(ActionListener list)
Assign listener to Seed ROI button.
|
void |
addWindowController(WindowFocusListener listener)
Assign listener to whole window.
|
void |
enableUI(boolean status)
Enables/disables UI.
|
JToggleButton |
getBnBack()
Get BG button ref.
|
JToggleButton |
getBnFore()
Get FG button ref.
|
String |
getCbCreatedSeedImage()
Get seed image selected in dynamic created mask panel.
|
String |
getCbMaskSeedImage()
Get seed image selected in dynamic binary mask panel.
|
String |
getCbOrginalImage()
Get name of selected original image.
|
String |
getCbRgbSeedImage()
Get seed image selected in dynamic rgb panel.
|
boolean |
getChHatFilter()
Get status of HatSnake filter.
|
boolean |
getChInterFrameFilter()
Get status of chInterFrameFilter.
|
boolean |
getChLocalMean()
Get status of Local mean.
|
boolean |
getChMaskCut()
Get status of mask cut filter.
|
boolean |
getChShowPreview()
Get status of show preview.
|
boolean |
getChShowProbMaps()
Get status of show prob maps.
|
boolean |
getChShowSeed()
Get status of show seed.
|
boolean |
getChTrueBackground()
Get status of True Background.
|
int |
getFilteringMethod()
cbFilteringMethod getter.
|
int |
getFilteringPostMethod()
cbFilteringMethod getter.
|
int |
getSeedSource()
cbFilteringMethod getter.
|
int |
getShrinkMethod()
cbShrinkMethod getter.
|
double |
getSrAlev()
Get value of alev parameter.
|
double |
getSrAlpha()
Get RW alpha parameter.
|
double |
getSrBeta()
Get RW beta parameter.
|
double |
getSrExpandPower()
Get expand power.
|
double |
getSrGamma0()
Get RW gamma 0 parameter.
|
double |
getSrGamma1()
Get RW gamma 1 parameter.
|
int |
getSrIter()
Get RW number of iterations.
|
int |
getSrLocalMeanWindow()
Get value of window parameter for local mean.
|
int |
getSrNum()
Get value of num parameter.
|
double |
getSrRelerr()
Get RW number of iterations.
|
double |
getSrScaleCurvDistDist()
Get distance.
|
double |
getSrScaleEqNormalsDist()
Get distance.
|
double |
getSrScaleMagn()
Get magnitude.
|
double |
getSrScaleSigma()
Get sigma.
|
double |
getSrShrinkPower()
Get shrink power.
|
int |
getSrWindow()
Get value of window parameter.
|
JFrame |
getWnd()
Get window reference.
|
void |
itemStateChanged(ItemEvent arg0)
Set enable/disabled controls depending on hatsnake checkbox.
|
void |
setCancelLabel(String label)
Set text on cancel button.
|
void |
setCbCreatedSeedImage(String[] item,
String sel)
Set seed image in dynamic created mask panel.
|
void |
setCbMaskSeedImage(String[] item,
String sel)
Set seed image in dynamic binary mask panel.
|
void |
setCbOrginalImage(String[] item,
String sel)
Set names of original images and select one.
|
void |
setCbRgbSeedImage(String[] item,
String sel)
Set seed image in dynamic rgb panel.
|
void |
setChHatFilter(boolean chHatFilter)
Set status of HatSnake filter.
|
void |
setChInterFrameFilter(boolean chInterFrameFilter)
Set status of chInterFrameFilter.
|
void |
setChLocalMean(boolean chLocalMean)
Set status of local mean.
|
void |
setChMaskCut(boolean chMaskCut)
Set status of mask cut filter.
|
void |
setChShowPreview(boolean chShowPreview)
Set status of show preview.
|
void |
setChShowProbMaps(boolean chShowProbMaps)
Set status of show prob maps.
|
void |
setChShowSeed(boolean chShowSeed)
Set status of show seed.
|
void |
setChTrueBackground(boolean chTrueBackground)
Set status of True Background.
|
void |
setFilteringMethod(String[] item,
String sel)
Initialiser of cbFilteringMethod.
|
void |
setFilteringPostMethod(String[] item,
String sel)
Initialiser of cbFilteringPostMethod.
|
void |
setLqconfFile(String lab)
Set name of loaded qconf.
|
void |
setLroiSeedsInfo(String lab)
Set ROP info.
|
void |
setSeedSource(String[] item,
String sel)
Initialiser of cbSeedSource.
|
void |
setShrinkMethod(String[] item,
String sel)
Initialiser of cbShrinkMethod.
|
void |
setSrAlev(double srAlev)
Set value of alev parameter.
|
void |
setSrAlpha(double srAlpha)
Set RW alpha parameter.
|
void |
setSrBeta(double srBeta)
Set RW beta parameter.
|
void |
setSrExpandPower(double srExpandPower)
Set expand power.
|
void |
setSrGamma0(double srGamma0)
Set RW gamma 0 parameter.
|
void |
setSrGamma1(double srGamma1)
Set RW gamma 1 parameter.
|
void |
setSrIter(int srIter)
Set RW number of iterations.
|
void |
setSrLocalMeanWindow(int srWindow)
Set value of local mean window parameter.
|
void |
setSrNum(int srNum)
Set value of num parameter.
|
void |
setSrRelerr(double srRelerr)
Set RW number of iterations.
|
void |
setSrScaleCurvDistDist(double srScaleCurvDistDist)
Set distance.
|
void |
setSrScaleEqNormalsDist(double srScaleEqNormalsDist)
Set distance.
|
void |
setSrScaleMagn(double srScaleMagn)
Set magnitude power.
|
void |
setSrScaleSigma(double srScaleSigma)
Set sigma power.
|
void |
setSrShrinkPower(double srShrinkPower)
Set shrink power.
|
void |
setSrWindow(int srWindow)
Set value of window parameter.
|
void |
show()
Show the window.
|
public JFrame getWnd()
public String getCbOrginalImage()
public void setCbOrginalImage(String[] item, String sel)
item
- list of names of imagessel
- index of that to selectpublic void setSeedSource(String[] item, String sel)
item
- list of itemssel
- name of the selection to select.JComboBox.addItem(java.lang.Object)
public int getSeedSource()
public void setLqconfFile(String lab)
lab
- name to setpublic String getCbRgbSeedImage()
public void setCbRgbSeedImage(String[] item, String sel)
item
- list of names of imagessel
- name of that to selectpublic String getCbMaskSeedImage()
public void setCbMaskSeedImage(String[] item, String sel)
item
- list of names of imagessel
- name of that to selectpublic JToggleButton getBnFore()
public JToggleButton getBnBack()
public String getCbCreatedSeedImage()
public void setCbCreatedSeedImage(String[] item, String sel)
item
- list of names of imagessel
- name of that to selectpublic void setLroiSeedsInfo(String lab)
lab
- name to setpublic double getSrAlpha()
public void setSrAlpha(double srAlpha)
srAlpha
- the srAlpha to setpublic double getSrBeta()
public void setSrBeta(double srBeta)
srBeta
- the srBeta to setpublic double getSrGamma0()
public void setSrGamma0(double srGamma0)
srGamma0
- the srGamma0 to setpublic double getSrGamma1()
public void setSrGamma1(double srGamma1)
srGamma1
- the srGamma1 to setpublic int getSrIter()
public void setSrIter(int srIter)
srIter
- the srIter to setpublic double getSrRelerr()
public void setSrRelerr(double srRelerr)
srRelerr
- the srRelerr to setpublic void setShrinkMethod(String[] item, String sel)
item
- list of itemssel
- name of entry to selectJComboBox.addItem(java.lang.Object)
public int getShrinkMethod()
public double getSrShrinkPower()
public void setSrShrinkPower(double srShrinkPower)
srShrinkPower
- the srShrinkPower to setpublic double getSrExpandPower()
public void setSrExpandPower(double srExpandPower)
srExpandPower
- the srExpandPower to setpublic double getSrScaleSigma()
public void setSrScaleSigma(double srScaleSigma)
srScaleSigma
- the srScaleSigma to setpublic double getSrScaleMagn()
public void setSrScaleMagn(double srScaleMagn)
srScaleMagn
- the srScaleMagn to setpublic double getSrScaleEqNormalsDist()
public void setSrScaleEqNormalsDist(double srScaleEqNormalsDist)
srScaleEqNormalsDist
- the srScaleEqNormalsDist to setpublic double getSrScaleCurvDistDist()
public void setSrScaleCurvDistDist(double srScaleCurvDistDist)
srScaleCurvDistDist
- the srScaleCurvDistDist to setpublic void setFilteringMethod(String[] item, String sel)
item
- list of itemssel
- name of the selection to select.JComboBox.addItem(java.lang.Object)
public int getFilteringMethod()
public boolean getChTrueBackground()
public void setChTrueBackground(boolean chTrueBackground)
chTrueBackground
- the chTrueBackground to set (enabled/disabled)public boolean getChInterFrameFilter()
public void setChInterFrameFilter(boolean chInterFrameFilter)
chInterFrameFilter
- the chTrueBackground to set (enabled/disabled)public boolean getChLocalMean()
public void setChLocalMean(boolean chLocalMean)
chLocalMean
- the chLocalMean to set (enabled/disabled)public int getSrLocalMeanWindow()
public void setSrLocalMeanWindow(int srWindow)
srWindow
- the srWindow to setpublic boolean getChHatFilter()
public void setChHatFilter(boolean chHatFilter)
chHatFilter
- the chHatFilter to set (enabled/disabled)public double getSrAlev()
public void setSrAlev(double srAlev)
srAlev
- the srAlev to setpublic int getSrNum()
public void setSrNum(int srNum)
srNum
- the srNum to setpublic int getSrWindow()
public void setSrWindow(int srWindow)
srWindow
- the srWindow to setpublic void setFilteringPostMethod(String[] item, String sel)
item
- list of itemssel
- name of the selection to select.JComboBox.addItem(java.lang.Object)
public int getFilteringPostMethod()
public boolean getChMaskCut()
public void setChMaskCut(boolean chMaskCut)
chMaskCut
- the chHatFilter to set (enabled/disabled)public boolean getChShowSeed()
public void setChShowSeed(boolean chShowSeed)
chShowSeed
- the chShowSeed to setpublic boolean getChShowPreview()
public void setChShowPreview(boolean chShowPreview)
chShowPreview
- the chShowPreview to setpublic boolean getChShowProbMaps()
public void setChShowProbMaps(boolean chShowProbMaps)
chShowProbMaps
- the chShowProbMaps to setpublic void enableUI(boolean status)
status
- true if enabled.public void show()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the epublic void itemStateChanged(ItemEvent arg0)
itemStateChanged
in interface ItemListener
arg0
- the arg 0public void addWindowController(WindowFocusListener listener)
listener
- listenerpublic void addRunController(ActionListener list)
list
- listenerpublic void addHelpController(ActionListener list)
list
- listenerpublic void addRunActiveController(ActionListener list)
list
- listenerpublic void addCancelController(ActionListener list)
list
- listenerpublic void addCloneController(ActionListener list)
list
- listenerpublic void addSeedRoiController(ActionListener list)
list
- listenerpublic void addFgController(ActionListener list)
list
- listenerpublic void addBgController(ActionListener list)
list
- listenerpublic void addLoadQconfController(ActionListener list)
list
- listenerpublic void addQconfShowSeedImageController(ActionListener list)
list
- listenerpublic void addImageController(ActionListener list)
list
- listenerpublic void addSeedController(ActionListener list)
list
- listenerpublic void setCancelLabel(String label)
label
- text to setCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.