Class AbstractPlaceableJavaSE

  • Direct Known Subclasses:
    DisplayJavaSE, ImageDisplayJavaSE

    public abstract class AbstractPlaceableJavaSE
    extends java.lang.Object
    Base class for AWT and Swing implementation of actors the implement PortablePlaceable.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Edward A. Lee, Ishwinder Singh
    Pt.AcceptedRating:
    Red (ishwinde)
    Pt.ProposedRating:
    Red (ishwinde)
    • 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.
    • Constructor Detail

      • AbstractPlaceableJavaSE

        public AbstractPlaceableJavaSE()
    • Method Detail

      • 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.
        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.