Class TreeTableau.Factory

    • Method Detail

      • createTableau

        public Tableau createTableau​(Effigy effigy)
                              throws java.lang.Exception
        If the effigy is an instance of PtolemyEffigy referencing an instance of CompositeEntity, then create a TreeTableau contained by the effigy. The tableau will assigned the name "treeTableau". If there is already such a tableau in the effigy, then just show it instead of creating a new one. If the effigy is not an instance of PtolemyEffigy referencing an instance of CompositeEntity, and there no pre-existing tableau named "treeTableau", then 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 - An effigy of a Ptolemy model.
        Returns:
        A new tree-view tableau, or null if the effigy is not that of a composite entity.
        Throws:
        java.lang.Exception - If the effigy is a PtolemyEffigy, but construction of the tree view fails for some reason.