java.awt.peer
Interface ComponentPeer

All Known Subinterfaces:
ButtonPeer, CanvasPeer, CheckboxPeer, ChoicePeer, ContainerPeer, DialogPeer, FileDialogPeer, FramePeer, LabelPeer, LightweightPeer, ListPeer, PanelPeer, ScrollbarPeer, ScrollPanePeer, TextAreaPeer, TextComponentPeer, TextFieldPeer, WindowPeer

public interface ComponentPeer

The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.


Method Summary
 boolean canDetermineObscurity()
           
 int checkImage(Image img, int w, int h, ImageObserver o)
           
 void coalescePaintEvent(PaintEvent e)
           
 void createBuffers(int numBuffers, BufferCapabilities caps)
           
 Image createImage(ImageProducer producer)
           
 Image createImage(int width, int height)
           
 VolatileImage createVolatileImage(int width, int height)
           
 void destroyBuffers()
           
 void disable()
          DEPRECATED: Replaced by setEnabled(boolean).
 void dispose()
           
 void enable()
          DEPRECATED: Replaced by setEnabled(boolean).
 void flip(BufferCapabilities.FlipContents flipAction)
           
 Image getBackBuffer()
           
 ColorModel getColorModel()
           
 FontMetrics getFontMetrics(Font font)
           
 Graphics getGraphics()
           
 GraphicsConfiguration getGraphicsConfiguration()
           
 Point getLocationOnScreen()
           
 Dimension getMinimumSize()
           
 Dimension getPreferredSize()
           
 Toolkit getToolkit()
           
 void handleEvent(AWTEvent e)
           
 boolean handlesWheelScrolling()
           
 void hide()
          DEPRECATED: Replaced by setVisible(boolean).
 boolean isFocusable()
           
 boolean isObscured()
           
 Dimension minimumSize()
          DEPRECATED: Replaced by getMinimumSize().
 void paint(Graphics g)
           
 Dimension preferredSize()
          DEPRECATED: Replaced by getPreferredSize().
 boolean prepareImage(Image img, int w, int h, ImageObserver o)
           
 void print(Graphics g)
           
 void repaint(long tm, int x, int y, int width, int height)
           
 boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)
           
 void reshape(int x, int y, int width, int height)
          DEPRECATED: Replaced by setBounds(int, int, int, int).
 void setBackground(Color c)
           
 void setBounds(int x, int y, int width, int height)
           
 void setEnabled(boolean b)
           
 void setFont(Font f)
           
 void setForeground(Color c)
           
 void setVisible(boolean b)
           
 void show()
          DEPRECATED: Replaced by setVisible(boolean).
 void updateCursorImmediately()
           
 

Method Detail

isObscured

public boolean isObscured()

canDetermineObscurity

public boolean canDetermineObscurity()

setVisible

public void setVisible(boolean b)

setEnabled

public void setEnabled(boolean b)

paint

public void paint(Graphics g)

repaint

public void repaint(long tm,
                    int x,
                    int y,
                    int width,
                    int height)

print

public void print(Graphics g)

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)

handleEvent

public void handleEvent(AWTEvent e)

coalescePaintEvent

public void coalescePaintEvent(PaintEvent e)

getLocationOnScreen

public Point getLocationOnScreen()

getPreferredSize

public Dimension getPreferredSize()

getMinimumSize

public Dimension getMinimumSize()

getColorModel

public ColorModel getColorModel()

getToolkit

public Toolkit getToolkit()

getGraphics

public Graphics getGraphics()

getFontMetrics

public FontMetrics getFontMetrics(Font font)

dispose

public void dispose()

setForeground

public void setForeground(Color c)

setBackground

public void setBackground(Color c)

setFont

public void setFont(Font f)

updateCursorImmediately

public void updateCursorImmediately()

requestFocus

public boolean requestFocus(Component lightweightChild,
                            boolean temporary,
                            boolean focusedWindowChangeAllowed,
                            long time)

isFocusable

public boolean isFocusable()

createImage

public Image createImage(ImageProducer producer)

createImage

public Image createImage(int width,
                         int height)

createVolatileImage

public VolatileImage createVolatileImage(int width,
                                         int height)

prepareImage

public boolean prepareImage(Image img,
                            int w,
                            int h,
                            ImageObserver o)

checkImage

public int checkImage(Image img,
                      int w,
                      int h,
                      ImageObserver o)

getGraphicsConfiguration

public GraphicsConfiguration getGraphicsConfiguration()

handlesWheelScrolling

public boolean handlesWheelScrolling()

createBuffers

public void createBuffers(int numBuffers,
                          BufferCapabilities caps)
                   throws AWTException
Throws:
AWTException

getBackBuffer

public Image getBackBuffer()

flip

public void flip(BufferCapabilities.FlipContents flipAction)

destroyBuffers

public void destroyBuffers()

preferredSize

public Dimension preferredSize()
DEPRECATED: Replaced by getPreferredSize().


minimumSize

public Dimension minimumSize()
DEPRECATED: Replaced by getMinimumSize().


show

public void show()
DEPRECATED: Replaced by setVisible(boolean).


hide

public void hide()
DEPRECATED: Replaced by setVisible(boolean).


enable

public void enable()
DEPRECATED: Replaced by setEnabled(boolean).


disable

public void disable()
DEPRECATED: Replaced by setEnabled(boolean).


reshape

public void reshape(int x,
                    int y,
                    int width,
                    int height)
DEPRECATED: Replaced by setBounds(int, int, int, int).