Class MatrixViewer

    • Field Detail

      • width

        public Parameter width
        The width of the table in pixels. This must contain an integer. If the table is larger than this specified width, then scrollbars will appear, or the column width is adjusted. The default value is 500.
      • height

        public Parameter height
        The height of the table in pixels. This must contain an integer. If the table is larger than this specified width, then scrollbars will appear. The default value is 300.
    • Method Detail

      • attributeChanged

        public void attributeChanged​(Attribute attribute)
                              throws IllegalActionException
        Notification that an attribute has changed. If the attribute is width or height then read the value of the attribute.
        Overrides:
        attributeChanged in class NamedObj
        Parameters:
        attribute - The attribute that changed.
        Throws:
        IllegalActionException - If the expression of the attribute cannot be parsed or cannot be evaluated.
      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone the actor into the specified workspace. This calls the base class and then removes association with graphical objects belonging to the original class.
        Overrides:
        clone in class AbstractPlaceableActor
        Parameters:
        workspace - The workspace for the new object.
        Returns:
        A new actor.
        Throws:
        java.lang.CloneNotSupportedException - If a derived class contains an attribute that cannot be cloned.
        See Also:
        Object.clone()
      • place

        public void place​(java.awt.Container container)
        Specify the container in which the data should be displayed. An instance of JTable will be added to that container. The table is configured such that a user cannot reorder the columns of the table. Also, the table maintains a fixed preferred size, and will employ scrollbars if the table is larger than the preferred size. If this method is not called, the JTable will be placed in its own frame. The table is also placed in its own frame if this method is called with a null argument. The background of the table is set equal to that of the container (unless it is null).
        Specified by:
        place in interface Placeable
        Specified by:
        place in class AbstractPlaceableActor
        Parameters:
        container - The container into which to place the table.
      • setDisplayName

        public void setDisplayName​(java.lang.String name)
        Set a name to present to the user.

        If the MatrixViewer window has been rendered, then the title of the MatrixViewer window will be updated to the value of the name parameter.

        Overrides:
        setDisplayName in class NamedObj
        Parameters:
        name - A name to present to the user.
        See Also:
        NamedObj.getDisplayName()
      • setFrame

        public void setFrame​(javax.swing.JFrame frame)
        Specify the associated frame and set its properties (size, etc.) to match those stored in the _windowProperties attribute. In this class, if the frame is null, close the tableau and set it to null. Once closed, the matrix window will not reopen unless _tableau is null.
        Overrides:
        setFrame in class AbstractPlaceableActor
        Parameters:
        frame - The associated frame.
      • setName

        public void setName​(java.lang.String name)
                     throws IllegalActionException,
                            NameDuplicationException
        Set or change the name. If a null argument is given the name is set to an empty string. Increment the version of the workspace. This method is write-synchronized on the workspace.

        If the MatrixViewer window has been rendered, then the title of the MatrixViewer window will be updated to the value of the name parameter.

        Specified by:
        setName in interface Nameable
        Overrides:
        setName in class ComponentEntity<TypedIOPort>
        Parameters:
        name - The new name.
        Throws:
        IllegalActionException - If the name contains a period or if the object is a derived object and the name argument does not match the current name.
        NameDuplicationException - Not thrown in this base class. May be thrown by derived classes if the container already contains an object with this name.
        See Also:
        NamedObj.getName(), NamedObj.getName(NamedObj)