statalign.postprocess.plugins
Class CurrentTreeVisualizer

java.lang.Object
  extended by statalign.postprocess.Postprocess
      extended by statalign.postprocess.TreeVisualizer
          extended by statalign.postprocess.plugins.CurrentTreeVisualizer

public class CurrentTreeVisualizer
extends TreeVisualizer


Field Summary
 
Fields inherited from class statalign.postprocess.Postprocess
active, alignmentType, file, hasToolBar, mcmc, outputable, outputFile, postprocessable, postprocessWrite, rnaAssociated, sampling, screenable, selected, show
 
Constructor Summary
CurrentTreeVisualizer()
           
 
Method Summary
 void afterLastSample()
          This function is called after the MCMC runs.
 void beforeFirstSample(InputData input)
          Called before MCMC start.
 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()
           
 java.lang.String getTabName()
           
 double getTabOrder()
          Specifies the order of the tab for this plugin in the GUI.
 java.lang.String getTip()
          Returns with the tip information (shown when the mouse cursor is moved over the label of the tabulated panel)
 void init(ModelExtManager manager)
          Called by PostprocessManager after setting the Postprocess.show field to allow initialisation, possibly involving GUI (toolbar etc.)
 void newPeek(State state)
          Allows peeking into the Markov chain before actual sampling begins.
 void newSample(State state, int no, int total)
          This function is called when we sample from the Markov chain.
 
Methods inherited from class statalign.postprocess.TreeVisualizer
getJPanel, getToolBarItems, init, refreshGUI, setSampling
 
Methods inherited from class statalign.postprocess.Postprocess
addTrack, getDependences, getModExtPlugins, getTracks, newSample, newStep, refToDependences, reloadPanel, setSelected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentTreeVisualizer

public CurrentTreeVisualizer()
Method Detail

init

public void init(ModelExtManager manager)
Description copied from class: Postprocess
Called by PostprocessManager after setting the Postprocess.show field to allow initialisation, possibly involving GUI (toolbar etc.)

Overrides:
init in class Postprocess

getIcon

public javax.swing.Icon getIcon()
Specified by:
getIcon in class Postprocess
Returns:
Returns with the icon that will appear on the label of the tabulated panel.

getTabName

public java.lang.String getTabName()
Specified by:
getTabName in class Postprocess
Returns:
Returns with the name that will appear on the label of the tabulated panel.

getTip

public java.lang.String getTip()
Description copied from class: Postprocess
Returns with the tip information (shown when the mouse cursor is moved over the label of the tabulated panel)

Specified by:
getTip in class Postprocess

getTabOrder

public double getTabOrder()
Description copied from class: Postprocess
Specifies the order of the tab for this plugin in the GUI.

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.

Overrides:
getTabOrder in class Postprocess
Returns:
the tab order of the tab associated with this plugin, if running in a GUI.

newPeek

public void newPeek(State state)
Description copied from class: Postprocess
Allows peeking into the Markov chain before actual sampling begins. Frequency is determined by the MCMC sampling parameter set by the user, just like for Postprocess.newSample(State, int, int). Unlike that method, this one is called both during and after the burn-in period.

Overrides:
newPeek in class Postprocess
Parameters:
state - A State object representing the current state of the chain

getFileExtension

public java.lang.String getFileExtension()
Description copied from class: Postprocess
Returns default file extension that is to appended to the input file name to get the file this plugin is writing into.

Overrides:
getFileExtension in class Postprocess

beforeFirstSample

public void beforeFirstSample(InputData input)
Description copied from class: Postprocess
Called before MCMC start. This is the first time you can use PostprocessManager.mcmc to access internal data structure

Overrides:
beforeFirstSample in class TreeVisualizer

newSample

public void newSample(State state,
                      int no,
                      int total)
Description copied from class: Postprocess
This function is called when we sample from the Markov chain. Frequency is determined by the MCMC sampling parameter set by the user. Unlike Postprocess.newPeek(State state), this method is only called after the burn-in period.

Overrides:
newSample in class Postprocess
Parameters:
state - A State object representing the current state of the chain
no - The number of the current sample
total - The number of the total samples

afterLastSample

public void afterLastSample()
Description copied from class: Postprocess
This function is called after the MCMC runs.

Overrides:
afterLastSample in class Postprocess