home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / ComponentPeer.java < prev    next >
Text File  |  1997-05-20  |  3KB  |  94 lines

  1. /*
  2.  * @(#)ComponentPeer.java    1.22 96/12/16 Sami Shaio
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. package java.awt.peer;
  24.  
  25. import java.awt.*;
  26. import java.awt.image.ImageProducer;
  27. import java.awt.image.ImageObserver;
  28. import java.awt.image.ColorModel;
  29.  
  30. public interface ComponentPeer {
  31.     void                setVisible(boolean b);
  32.     void                setEnabled(boolean b);
  33.     void        paint(Graphics g);
  34.     void        repaint(long tm, int x, int y, int width, int height);
  35.     void        print(Graphics g);
  36.     void        setBounds(int x, int y, int width, int height);
  37.     void                handleEvent(AWTEvent e);
  38.     Point        getLocationOnScreen();
  39.     Dimension        getPreferredSize();
  40.     Dimension        getMinimumSize();
  41.     ColorModel        getColorModel();
  42.     java.awt.Toolkit    getToolkit();
  43.     Graphics        getGraphics();
  44.     FontMetrics        getFontMetrics(Font font);
  45.     void        dispose();
  46.     void        setForeground(Color c);
  47.     void        setBackground(Color c);
  48.     void        setFont(Font f);
  49.     void         setCursor(Cursor cursor);
  50.     void        requestFocus();
  51.     boolean        isFocusTraversable();
  52.  
  53.     Image         createImage(ImageProducer producer);
  54.     Image         createImage(int width, int height);
  55.     boolean        prepareImage(Image img, int w, int h, ImageObserver o);
  56.     int            checkImage(Image img, int w, int h, ImageObserver o);
  57.  
  58.     /**
  59.      * DEPRECATED:  Replaced by getPreferredSize().
  60.      */
  61.     Dimension        preferredSize();
  62.  
  63.     /**
  64.      * DEPRECATED:  Replaced by getMinimumSize().
  65.      */
  66.     Dimension        minimumSize();
  67.  
  68.     /**
  69.      * DEPRECATED:  Replaced by setVisible(boolean).
  70.      */
  71.     void        show();
  72.  
  73.     /**
  74.      * DEPRECATED:  Replaced by setVisible(boolean).
  75.      */
  76.     void        hide();
  77.  
  78.     /**
  79.      * DEPRECATED:  Replaced by setEnabled(boolean).
  80.      */
  81.     void        enable();
  82.  
  83.     /**
  84.      * DEPRECATED:  Replaced by setEnabled(boolean).
  85.      */
  86.     void        disable();
  87.  
  88.     /**
  89.      * DEPRECATED:  Replaced by setBounds(int, int, int, int).
  90.      */
  91.     void        reshape(int x, int y, int width, int height);
  92.  
  93. }
  94.