Class Console.Factory

    • Method Detail

      • createTableau

        public Tableau createTableau​(Effigy effigy)
                              throws java.lang.Exception
        Create a new instance of Console in the specified effigy. If the specified effigy is not an instance of PtolemyEffigy, then do not create a tableau and return null. It is the responsibility of callers of this method to check the return value and call show().
        Overrides:
        createTableau in class TableauFactory
        Parameters:
        effigy - The model effigy.
        Returns:
        A new control panel tableau if the effigy is a PtolemyEffigy, or null otherwise.
        Throws:
        java.lang.Exception - If the factory should be able to create a tableau for the effigy, but something goes wrong.