/** * Create a new case editor tableau with the specified container, name, and default library. * * @param container The container. * @param name The name. * @param defaultLibrary The default library, or null to not specify one. * @exception IllegalActionException If the model associated with the container effigy is not an * instance of Case. * @exception NameDuplicationException If the container already contains an object with the * specified name. */ public CaseGraphTableau(PtolemyEffigy container, String name, LibraryAttribute defaultLibrary) throws IllegalActionException, NameDuplicationException { super(container, name); NamedObj model = container.getModel(); if (!(model instanceof Case)) { throw new IllegalActionException(this, "Cannot edit a model that is not an Case."); } createGraphFrame((Case) model, defaultLibrary); }