Interface IToolbox

All Known Implementing Classes:
Toolbox

public interface IToolbox
Interface for container of ITools Can be used as a builder-pattern.
  • Method Details

    • getToolsByCategory

      Map<String,List<ITool>> getToolsByCategory()
      Get all tools in the toolbox by category
      Returns:
      A mapping of category names to lists of tools
    • addDefaultTool

      IToolbox addDefaultTool(ITool tool)
      Add the tool that will be selected by default
      Parameters:
      tool - The tool to be selected by default
      Returns:
      A builder-pattern style reference to this
    • add

      IToolbox add(ITool... tool)
      Add a list of tools to the toolbox
      Parameters:
      tool - Varargs of tools to add
      Returns:
      A builder-pattern style reference to this
    • add

      IToolbox add(String category, ITool... tool)
      Add a list of tools to the toolbox and put them in a category
      Parameters:
      category - The category of the provided tools
      tool - Varargs of tools to add
      Returns:
      A builder-pattern style reference to this
    • getDefaultTool

      ITool getDefaultTool()
      Get the default tool
      Returns:
      A tool instance
    • selectTool

      void selectTool(ITool tool)
      Change which tool is currently selected
      Parameters:
      tool - The tool to select
    • getSelectedTool

      javafx.beans.property.ObjectProperty<ITool> getSelectedTool()
      Get the currently selected tool observable
      Returns:
      An observable pointing to the currenlty selected tool