*/
public Tableau createTableau(Effigy effigy) throws Exception {
if (effigy instanceof TokenEffigy) {
// First see whether the effigy already contains an
// TokenTableau.
TokenTableau tableau = (TokenTableau) effigy
.getEntity("tokenTableau");
if (tableau != null) {
return tableau;
}
// NOTE: Normally need to check effigy tokens for
// compatibility here, but they are always compatible,
// so we don't bother.
return new TokenTableau(effigy, "tokenTableau");
}
return null;
}