Save This Page
Home » openjdk-7 » java » awt » peer » [javadoc | source]
java.awt.peer
public interface: ComponentPeer [javadoc | source]

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

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.
Field Summary
public static final  int SET_LOCATION     
public static final  int SET_SIZE     
public static final  int SET_BOUNDS     
public static final  int SET_CLIENT_SIZE     
public static final  int RESET_OPERATION     
public static final  int NO_EMBEDDED_CHECK     
public static final  int DEFAULT_OPERATION     
Method from java.awt.peer.ComponentPeer Summary:
applyShape,   canDetermineObscurity,   checkImage,   coalescePaintEvent,   createBuffers,   createImage,   createImage,   createVolatileImage,   destroyBuffers,   disable,   dispose,   enable,   flip,   getBackBuffer,   getBounds,   getColorModel,   getFontMetrics,   getGraphics,   getGraphicsConfiguration,   getLocationOnScreen,   getMinimumSize,   getPreferredSize,   getToolkit,   handleEvent,   handlesWheelScrolling,   hide,   isFocusable,   isObscured,   isReparentSupported,   layout,   minimumSize,   paint,   preferredSize,   prepareImage,   print,   repaint,   reparent,   requestFocus,   reshape,   setBackground,   setBounds,   setEnabled,   setFont,   setForeground,   setVisible,   show,   updateCursorImmediately
Method from java.awt.peer.ComponentPeer Detail:
 public  void applyShape(Region shape)
    Applies the shape to the native component window.
 public boolean canDetermineObscurity()
 public int checkImage(Image img,
    int w,
    int h,
    ImageObserver o)
 public  void coalescePaintEvent(PaintEvent e)
 public  void createBuffers(int numBuffers,
    BufferCapabilities caps) throws AWTException
 public Image createImage(ImageProducer producer)
 public Image createImage(int width,
    int height)
 public VolatileImage createVolatileImage(int width,
    int height)
 public  void destroyBuffers()
 public  void disable()
    DEPRECATED: Replaced by setEnabled(boolean).
 public  void dispose()
 public  void enable()
    DEPRECATED: Replaced by setEnabled(boolean).
 public  void flip(BufferCapabilities.FlipContents flipAction)
 public Image getBackBuffer()
 public Rectangle getBounds()
 public ColorModel getColorModel()
 public FontMetrics getFontMetrics(Font font)
 public Graphics getGraphics()
 public GraphicsConfiguration getGraphicsConfiguration()
 public Point getLocationOnScreen()
 public Dimension getMinimumSize()
 public Dimension getPreferredSize()
 public Toolkit getToolkit()
 public  void handleEvent(AWTEvent e)
 public boolean handlesWheelScrolling()
 public  void hide()
    DEPRECATED: Replaced by setVisible(boolean).
 public boolean isFocusable()
 public boolean isObscured()
 public boolean isReparentSupported()
    Returns whether this peer supports reparenting to another parent withour destroying the peer
 public  void layout()
    Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements. For instance, a lightweight Checkbox needs to layout the box, as well as the text label.
 public Dimension minimumSize()
    DEPRECATED: Replaced by getMinimumSize().
 public  void paint(Graphics g)
 public Dimension preferredSize()
    DEPRECATED: Replaced by getPreferredSize().
 public boolean prepareImage(Image img,
    int w,
    int h,
    ImageObserver o)
 public  void print(Graphics g)
 public  void repaint(long tm,
    int x,
    int y,
    int width,
    int height)
 public  void reparent(ContainerPeer newContainer)
    Reparents this peer to the new parent referenced by newContainer peer Implementation depends on toolkit and container.
 public boolean requestFocus(Component lightweightChild,
    boolean temporary,
    boolean focusedWindowChangeAllowed,
    long time,
    CausedFocusEvent.Cause cause)
 public  void reshape(int x,
    int y,
    int width,
    int height)
    DEPRECATED: Replaced by setBounds(int, int, int, int).
 public  void setBackground(Color c)
 public  void setBounds(int x,
    int y,
    int width,
    int height,
    int op)
 public  void setEnabled(boolean b)
 public  void setFont(Font f)
 public  void setForeground(Color c)
 public  void setVisible(boolean b)
 public  void show()
    DEPRECATED: Replaced by setVisible(boolean).
 public  void updateCursorImmediately()