|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.postprocess.Postprocess
statalign.postprocess.plugins.ConsensusNetwork
public class ConsensusNetwork
This is the postprocessmanager for showing the consensus network.
Field Summary | |
---|---|
javax.swing.JPanel |
pan
|
Fields inherited from class statalign.postprocess.Postprocess |
---|
active, alignmentType, file, hasToolBar, mcmc, outputable, outputFile, postprocessable, postprocessWrite, rnaAssociated, sampling, screenable, selected, show |
Constructor Summary | |
---|---|
ConsensusNetwork()
It construct a postprocess that is screenable (=can be shown on the GUI), outputable (= can be written into th elog file) but not postprocessable (= cannot generate its own output file). |
Method Summary | |
---|---|
void |
afterLastSample()
Empty function, since there is nothing to do after the last sample in this postprocess thread. |
void |
beforeFirstSample(InputData inputData)
Initializes the graphical interface. |
java.lang.String |
getFileExtension()
Returns default file extension that is to appended to the input file name to get the file this plugin is writing into. |
javax.swing.Icon |
getIcon()
It generates a new icon based on the figure in file icons/calignment.gif |
javax.swing.JPanel |
getJPanel()
It constructs a new JPanel, and returns with it |
java.lang.String |
getTabName()
It returns with its tab name, 'Alignment' |
double |
getTabOrder()
Specifies the order of the tab for this plugin in the GUI. |
java.lang.String |
getTip()
It returns with the tip of the tabulated panel 'Current alignment in the Markov chain' (shown when mouse is moved over the panel) |
void |
newSample(State state,
int no,
int total)
At each MCMC sampling point, the current alignment is shown on the GUI. |
void |
setSampling(boolean enabled)
Toggles sampling mode. |
Methods inherited from class statalign.postprocess.Postprocess |
---|
addTrack, getDependences, getModExtPlugins, getToolBarItems, getTracks, init, newPeek, newSample, newStep, refToDependences, reloadPanel, setSelected |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public javax.swing.JPanel pan
Constructor Detail |
---|
public ConsensusNetwork()
Method Detail |
---|
public javax.swing.JPanel getJPanel()
getJPanel
in class Postprocess
public javax.swing.Icon getIcon()
getIcon
in class Postprocess
public java.lang.String getTabName()
getTabName
in class Postprocess
public java.lang.String getTip()
getTip
in class Postprocess
public double getTabOrder()
Postprocess
E.g. we probably always want the "sequence input"-tab to appear first and therefore it returns a 1.0d here. The "current alignment"-tab returns 2.0d here and so if we want to make a tab get ordered between the "sequence input" and the "current alignment"-tabs we just make that plugin return 1.5d or something similar here. By default tabs get ordered last.
getTabOrder
in class Postprocess
public java.lang.String getFileExtension()
Postprocess
getFileExtension
in class Postprocess
public void beforeFirstSample(InputData inputData)
beforeFirstSample
in class Postprocess
public void newSample(State state, int no, int total)
newSample
in class Postprocess
state
- A State
object representing the current state of the chainno
- The number of the current sampletotal
- The number of the total samplespublic void setSampling(boolean enabled)
setSampling
in class Postprocess
enabled
- Set it true if you need samples.public void afterLastSample()
afterLastSample
in class Postprocess
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |