Package view.GUI

Class TreeGUI

java.lang.Object
view.GUI.TreeGUI
All Implemented Interfaces:
View

public class TreeGUI extends Object implements View
View that renders the JTree.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor of the GUI
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Launch GUI
    void
    printText(String textToPrint)
    Print in view text passed as parameter
    <T> void
    renderTree(T dto)
    Set render tree in view to display dto passed as parameter
    static void
    setError(boolean enabled)
    Set true if error is launched from controller.
    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 a dialog to show the message error passed as parameter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TreeGUI

      public TreeGUI(ViewListener listener)
      Constructor of the GUI
      Parameters:
      listener - the listener for the view
  • Method Details

    • launch

      public void launch()
      Launch GUI
      Specified by:
      launch in interface View
      See Also:
      • TreeGUI.VisualiserFrame
    • setStopEnabled

      public void setStopEnabled(Boolean enabled)
      Description copied from interface: View
      Method called by the controller to say if it's possible to stop the analysis.
      Specified by:
      setStopEnabled in interface View
      Parameters:
      enabled - - is possible to stop the analysis
    • setStartEnabled

      public void setStartEnabled(Boolean enabled)
      Description copied from interface: View
      Method called by the controller to say if it's possible to start the analysis.
      Specified by:
      setStartEnabled in interface View
      Parameters:
      enabled - - is possible to start the analysis
    • setSaveEnabled

      public void setSaveEnabled(Boolean enabled)
      Description copied from interface: View
      Method called by the controller to say if it's possible to save the analysis.
      Specified by:
      setSaveEnabled in interface View
      Parameters:
      enabled - - is possible to save the analysis
    • renderTree

      public <T> void renderTree(T dto)
      Set render tree in view to display dto passed as parameter
      Specified by:
      renderTree in interface View
      Type Parameters:
      T - DTO report type
      Parameters:
      dto - the report to show with a render tree
      See Also:
    • printText

      public void printText(String textToPrint)
      Print in view text passed as parameter
      Specified by:
      printText in interface View
      Parameters:
      textToPrint - text to print in the view
    • showError

      public void showError(String message, String title)
      Display a dialog to show the message error passed as parameter
      Specified by:
      showError in interface View
      Parameters:
      message - message to display in dialog
      title - title of the dialog
      See Also:
    • setError

      public static void setError(boolean enabled)
      Set true if error is launched from controller.
      Parameters:
      enabled - - the error status.