Class GuiConsoleImpl

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener, java.util.Observer

    public class GuiConsoleImpl
    extends java.lang.Object
    implements java.util.Observer, java.awt.event.ActionListener
    Implementation of a graphic user interface for Clif
    Author:
    Julien Buret, Nicolas Droze, Bruno Dillenseger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CLIFAPP_NAME
      name of the CLIF Application component in the registry
      static int clifHeight  
      static int clifWidth  
    • Constructor Summary

      Constructors 
      Constructor Description
      GuiConsoleImpl()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      void configureAndGetRegistry()
      Configure context and set the registry
      javax.swing.JFrame getFrame()  
      void initGui()  
      static void main​(java.lang.String[] args)  
      void toggleAnalysisTool​(int i, boolean state)  
      void toggleBoxAnalysisTool​(int box)
      Toggle the checkbox with to the given state
      void update​(java.util.Observable supervisor, java.lang.Object observation)
      Receive alarms and blade state changes from the supervisor
      void updateMenus()
      Enables or disables menu items depending on the current state
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CLIFAPP_NAME

        public static final java.lang.String CLIFAPP_NAME
        name of the CLIF Application component in the registry
        See Also:
        Constant Field Values
      • clifWidth

        public static int clifWidth
      • clifHeight

        public static int clifHeight
    • Constructor Detail

      • GuiConsoleImpl

        public GuiConsoleImpl()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • initGui

        public void initGui()
      • configureAndGetRegistry

        public void configureAndGetRegistry()
        Configure context and set the registry
      • updateMenus

        public void updateMenus()
        Enables or disables menu items depending on the current state
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • toggleAnalysisTool

        public void toggleAnalysisTool​(int i,
                                       boolean state)
      • update

        public void update​(java.util.Observable supervisor,
                           java.lang.Object observation)
        Receive alarms and blade state changes from the supervisor
        Specified by:
        update in interface java.util.Observer
      • toggleBoxAnalysisTool

        public void toggleBoxAnalysisTool​(int box)
        Toggle the checkbox with to the given state
        Parameters:
        box -
      • getFrame

        public javax.swing.JFrame getFrame()