Class InterfaceTableau.Factory

    • Method Detail

      • createTableau

        public Tableau createTableau​(Effigy effigy)
                              throws java.lang.Exception
        If the specified effigy already contains a tableau named "runTableau", then return that tableau; otherwise, create a new instance of RunTableau for the effigy, and name it "runTableau". 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 run 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.