Class ImageDisplayHelper


  • public class ImageDisplayHelper
    extends java.lang.Object
    Helper for the imageDisplay JavaScript module.
    Since:
    Ptolemy II 11.0
    Version:
    $Id$
    Author:
    Christopher Brooks, based on ImageDisplayJavaSE by Jianwu Wang which in turne was based on code by James Yeh, Edward A. Lee
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Yellow (eal)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int _oldXSize
      The horizontal size of the previous image.
      protected int _oldYSize
      The vertical size of the previous image.
      protected Picture _picture
      The picture panel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void displayImage​(AWTImageToken imageToken)
      Display an image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _oldXSize

        protected int _oldXSize
        The horizontal size of the previous image.
      • _oldYSize

        protected int _oldYSize
        The vertical size of the previous image.
      • _picture

        protected Picture _picture
        The picture panel.
    • Constructor Detail

      • ImageDisplayHelper

        public ImageDisplayHelper()
    • Method Detail

      • displayImage

        public void displayImage​(AWTImageToken imageToken)
        Display an image.
        Parameters:
        imageToken - The image to be displayed.