jebl.gui.trees.treeviewer_dev.treelayouts
Class RectilinearTreeLayoutController

java.lang.Object
  extended by org.virion.jam.controlpalettes.AbstractController
      extended by jebl.gui.trees.treeviewer_dev.treelayouts.RectilinearTreeLayoutController
All Implemented Interfaces:
Controller

public class RectilinearTreeLayoutController
extends AbstractController

Author:
Andrew Rambaut

Constructor Summary
RectilinearTreeLayoutController(RectilinearTreeLayout treeLayout)
           
 
Method Summary
 JPanel getPanel()
          Get a JPanel which is the main section for the palette.
 void getSettings(Map<String,Object> settings)
          Collect the settings for this controller.
 JComponent getTitleComponent()
          Get a component that will be put in the title bar of the palette section.
 void initialize()
          Initialize this controller when a new document is created.
 boolean isInitiallyVisible()
           
 void setSettings(Map<String,Object> settings)
          Set the settings for this controller.
 
Methods inherited from class org.virion.jam.controlpalettes.AbstractController
addControllerListener, fireControllerChanged, removeControllerListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectilinearTreeLayoutController

public RectilinearTreeLayoutController(RectilinearTreeLayout treeLayout)
Method Detail

getTitleComponent

public JComponent getTitleComponent()
Description copied from interface: Controller
Get a component that will be put in the title bar of the palette section. If a simple text title is required, this should return a JLabel.

Returns:
A component

getPanel

public JPanel getPanel()
Description copied from interface: Controller
Get a JPanel which is the main section for the palette.

Returns:
A panel

isInitiallyVisible

public boolean isInitiallyVisible()
Returns:
whether the panel should be open or closed initially

initialize

public void initialize()
Description copied from interface: Controller
Initialize this controller when a new document is created. At this point, settings can be adjusted to match the contents of the document.


setSettings

public void setSettings(Map<String,Object> settings)
Description copied from interface: Controller
Set the settings for this controller. These will have been stored as a map by the getSettings function.

Parameters:
settings - the settings map

getSettings

public void getSettings(Map<String,Object> settings)
Description copied from interface: Controller
Collect the settings for this controller. These should be stored in the given settings map using string keys.

Parameters:
settings - the settings map