public class EventUtils
extends java.lang.Object
Red (tfeng) |
Yellow (tfeng) |
Constructor and Description |
---|
EventUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeTableau(Tableau tableau)
Close the given tableau when the Java GUI thread is not busy.
|
static Effigy |
findToplevelEffigy(NamedObj object)
Deprecated.
Use ptolemy.actor.gui.Effigy.findToplevelEffigy() instead
|
static Tableau |
getTableau(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau)
Get the tableau to be used by the event that requires a tableau in its
actions.
|
static TableauParameter |
getTableauParameter(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau)
Get the TableauParameter to be used by the event that requires a tableau
in its actions.
|
static void |
setTableau(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau,
Tableau tableau)
Set the TableauParameter used by the event to represent the given
tableau.
|
public static void closeTableau(Tableau tableau)
tableau
- The tableau to be closed.public static Effigy findToplevelEffigy(NamedObj object) throws IllegalActionException
object
- The object.IllegalActionException
- If attributes cannot be retrieved, or
the container that an attribute points to is invalid.public static Tableau getTableau(Event event, StringParameter referredTableau, TableauParameter defaultTableau) throws IllegalActionException
event
- The event.referredTableau
- The parameter that contains the name of the
TableauParameter to be used, if not empty.defaultTableau
- The default TableauParameter to be used.IllegalActionException
- If the tableau cannot be retrieved.setTableau(Event, StringParameter, TableauParameter, Tableau)
public static TableauParameter getTableauParameter(Event event, StringParameter referredTableau, TableauParameter defaultTableau) throws IllegalActionException
event
- The event.referredTableau
- The parameter that contains the name of the
TableauParameter to be used, if not empty.defaultTableau
- The default TableauParameter to be used.IllegalActionException
- If the TableauParameter cannot be
found.public static void setTableau(Event event, StringParameter referredTableau, TableauParameter defaultTableau, Tableau tableau) throws IllegalActionException
event
- The event.referredTableau
- The parameter that contains the name of the
TableauParameter to be used, if not empty.defaultTableau
- The default TableauParameter to be used.tableau
- The tableau to be set in the TableauParameter.IllegalActionException
- If the TableauParameter cannot be
found.getTableau(Event, StringParameter, TableauParameter)