jebl.gui.trees.treeviewer_dev.painters
Class ScaleBarPainterController

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

public class ScaleBarPainterController
extends AbstractController

Author:
Andrew Rambaut

Constructor Summary
ScaleBarPainterController(ScaleBarPainter scaleBarPainter)
           
 
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.
 String getTitle()
           
 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

ScaleBarPainterController

public ScaleBarPainterController(ScaleBarPainter scaleBarPainter)
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

getTitle

public String getTitle()