Class MatrixTokenTableau

    • Constructor Detail

      • MatrixTokenTableau

        public MatrixTokenTableau​(Effigy container,
                                  java.lang.String name)
                           throws IllegalActionException,
                                  NameDuplicationException
        Construct a new tableau for the model represented by the given effigy. Use setFrame() to specify the plot frame after construction.
        Parameters:
        container - The container.
        name - The name.
        Throws:
        IllegalActionException - If the container does not accept this entity (this should not occur).
        NameDuplicationException - If the name coincides with an attribute already in the container.
    • Method Detail

      • append

        public void append​(Token token)
        Display the specified token. If the display is not a MatrixPane, or the token is not a MatrixToken, do nothing.
        Overrides:
        append in class TokenTableau
        Parameters:
        token - The token to append.
      • append

        public void append​(java.util.List list)
        Display the specified tokens. If the display is not a MatrixPane, or the tokens are not instances of MatrixToken, do nothing.
        Overrides:
        append in class TokenTableau
        Parameters:
        list - A list of tokens.
      • canDisplay

        public static boolean canDisplay​(Token token)
        Return true if this tableau can display the specified token.
        Parameters:
        token - A candidate token to display.
        Returns:
        True if the argument is a MatrixToken.
      • clear

        public void clear()
        Clear the display.
        Overrides:
        clear in class TokenTableau