Class ImageTableau

    • Constructor Detail

      • ImageTableau

        public ImageTableau​(Effigy container,
                            java.lang.String name,
                            TableauFrame frame,
                            int width,
                            int height)
                     throws IllegalActionException,
                            NameDuplicationException
        Construct a new tableau for the model represented by the given effigy, using the specified frame.
        Parameters:
        container - The container.
        name - The name.
        frame - The frame to use.
        width - The width of the picture display in pixels.
        height - The height of the picture display in pixels.
        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​(java.util.List list)
                    throws IllegalActionException
        Display the specified tokens. If the tokens are not instances of ImageToken, do nothing.
        Overrides:
        append in class TokenTableau
        Parameters:
        list - A list of tokens.
        Throws:
        IllegalActionException - If the tokens are not instances of ImageToken.
      • 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, since this tableau can display any token.
      • clear

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