Package view

Interface View

All Known Implementing Classes:
TreeGUI

public interface View
The View interface define the behaviour needs to use the library within a custom GUI or CLI.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Launch the View
    void
    Print the text
    <T> void
    renderTree(T dto)
    Render the DTO in a Tree structure
    void
    Method called by the controller to say if it's possible to save the analysis.
    void
    Method called by the controller to say if it's possible to start the analysis.
    void
    Method called by the controller to say if it's possible to stop the analysis.
    void
    showError(String message, String title)
    Display an error message
  • Method Details

    • setStopEnabled

      void setStopEnabled(Boolean enabled)
      Method called by the controller to say if it's possible to stop the analysis.
      Parameters:
      enabled - - is possible to stop the analysis
    • setStartEnabled

      void setStartEnabled(Boolean enabled)
      Method called by the controller to say if it's possible to start the analysis.
      Parameters:
      enabled - - is possible to start the analysis
    • setSaveEnabled

      void setSaveEnabled(Boolean enabled)
      Method called by the controller to say if it's possible to save the analysis.
      Parameters:
      enabled - - is possible to save the analysis
    • launch

      void launch()
      Launch the View
    • showError

      void showError(String message, String title)
      Display an error message
      Parameters:
      message - message to display
      title - title of the view
    • printText

      void printText(String text)
      Print the text
      Parameters:
      text - the text to print
    • renderTree

      <T> void renderTree(T dto)
      Render the DTO in a Tree structure
      Type Parameters:
      T - a ClassInterfaceDTO or PackageDTO or ProjectDTO
      Parameters:
      dto - the report