program
Class MainWinController

java.lang.Object
  extended by program.MainWinController
All Implemented Interfaces:
IObserver

public class MainWinController
extends java.lang.Object
implements IObserver


Constructor Summary
MainWinController(java.io.File filePlugins)
          Creates a new instance.
 
Method Summary
 void choosePlugin(int index)
          Changes the plugin to be in use.
 void draw()
          Calculates and draws the actual arcs.
 void getItems()
          A function called when the plugins getItems functions should be called.
 java.util.List getItems2()
          Returns the actual list of items.
 IArcPlugin getPlugin()
          Returns the actually used plugin.
static void main(java.lang.String[] args)
          Main function.
 void reDraw()
          A function called when the plugins items should be re-anaylized.
 void setAutoDraw(boolean autoDraw)
          Sets the auto-draw option.
 void setMaxSubstrLength(int iMaxSubstrLength)
          Sets the minimal 'substring' length.
 void setMinSubstrLength(int iMinSubstrLength)
          Sets the minimal 'substring' length.
 void showDescription(boolean descr)
          Sets the 'description visible' option.
 void zoomFit()
          Zooms to a position making it possible to see all arcs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainWinController

public MainWinController(java.io.File filePlugins)
Creates a new instance.

Parameters:
filePlugins - An plugin definition XML file, defining the plugins to integrate. See plugins.xml for an example.
Method Detail

choosePlugin

public void choosePlugin(int index)
Changes the plugin to be in use.

Parameters:
index - the plugins index in the plugin definition XML file.

zoomFit

public void zoomFit()
Zooms to a position making it possible to see all arcs.


draw

public void draw()
Calculates and draws the actual arcs.


reDraw

public void reDraw()
Description copied from interface: IObserver
A function called when the plugins items should be re-anaylized.

Specified by:
reDraw in interface IObserver

getItems

public void getItems()
Description copied from interface: IObserver
A function called when the plugins getItems functions should be called.

Specified by:
getItems in interface IObserver
See Also:
IArcPlugin.getItems()

setAutoDraw

public void setAutoDraw(boolean autoDraw)
Sets the auto-draw option.


showDescription

public void showDescription(boolean descr)
Sets the 'description visible' option.

See Also:
IArcPlugin.getDescription()

setMinSubstrLength

public void setMinSubstrLength(int iMinSubstrLength)
Sets the minimal 'substring' length.


setMaxSubstrLength

public void setMaxSubstrLength(int iMaxSubstrLength)
Sets the minimal 'substring' length.

Parameters:
iMaxSubstrLength -

main

public static void main(java.lang.String[] args)
Main function.


getPlugin

public IArcPlugin getPlugin()
Returns the actually used plugin.


getItems2

public java.util.List getItems2()
Returns the actual list of items.