Class MatrixTokenTableau.Factory

    • Method Detail

      • createTableau

        public Tableau createTableau​(Effigy effigy)
                              throws java.lang.Exception
        If the specified effigy already contains a tableau named "tokenTableau", then return that tableau; otherwise, create a new instance of MatrixTokenTableau in the specified effigy, and name it "tokenTableau". If the specified effigy is not an instance of TokenEffigy, then do not create a tableau and return null. This method will also create a frame for viewing the token data. Which frame is created depends on the type of the data in the effigy. The fallback is a TextEditor. 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 effigy, which is expected to be a TokenEffigy.
        Returns:
        An instance of MatrixTokenTableau, or null if one cannot be found or created.
        Throws:
        java.lang.Exception - If the factory should be able to create a tableau for the effigy, but something goes wrong.