Interface ToolUI


  • public interface ToolUI
    Tool's user interface attributes: name, description, icon and a properties bar.
    Author:
    Mathieu Bastian
    • Method Detail

      • getPropertiesBar

        JPanel getPropertiesBar​(Tool tool)
        Returns the tools properties bar.

        The properties bar is used for tools settings.

        Parameters:
        tool - the tool instance
        Returns:
        a JPanel for the the tool's properties bar
      • getIcon

        Icon getIcon()
        Returns the tool icon, for the toobar.
        Returns:
        tool's icon
      • getName

        String getName()
        Returns the tool's name.
        Returns:
        tool's name
      • getDescription

        String getDescription()
        Returns the tool's description.
        Returns:
        tool's description
      • getPosition

        int getPosition()
        Returns the tool's relative position.

        Smaller is the position, higher is the position in the toolbar.

        Returns:
        A number between 0 and 200