Class AbstractPlaceableActor

    • Field Detail

      • _frame

        protected javax.swing.JFrame _frame
        The associated frame.
      • _paneSize

        protected SizeAttribute _paneSize
        A specification of the size of the pane if it's in its own window.
      • _windowProperties

        protected WindowPropertiesAttribute _windowProperties
        A specification for the window properties of the frame.
      • _windowClosingAdapter

        protected ptolemy.actor.gui.AbstractPlaceableActor.WindowClosingAdapter _windowClosingAdapter
        A reference to the listener for removal purposes.
    • Method Detail

      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone the actor.
        Overrides:
        clone in class TypedAtomicActor
        Parameters:
        workspace - The workspace in which to place the cloned variable.
        Returns:
        The cloned variable.
        Throws:
        java.lang.CloneNotSupportedException - Not thrown in this base class.
        See Also:
        Object.clone()
      • place

        public abstract void place​(java.awt.Container container)
        Specify the container into which this object should be placed. Obviously, this method needs to be called before the object is actually placed in a container. Otherwise, the object will be expected to create its own frame into which to place itself. For actors, this method should be called before initialize().
        Specified by:
        place in interface Placeable
        Parameters:
        container - The container in which to place the object, or null to specify that there is no current container.
      • 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.
        Parameters:
        frame - The associated frame.
      • cleanUp

        protected void cleanUp()
        Free up memory when closing.
      • _exportMoMLContents

        protected void _exportMoMLContents​(java.io.Writer output,
                                           int depth)
                                    throws java.io.IOException
        Write a MoML description of the contents of this object. This overrides the base class to make sure that the current frame properties, if there is a frame, are recorded.
        Overrides:
        _exportMoMLContents in class Entity<TypedIOPort>
        Parameters:
        output - The output stream to write to.
        depth - The depth in the hierarchy, to determine indenting.
        Throws:
        java.io.IOException - If an I/O error occurs.
        See Also:
        NamedObj.exportMoML(Writer, int)