ComponentPeerNameComponentPeer
DescriptionComponentPeer is an interface that defines the basis for all non-menu GUI peer interfaces. Interface Definition
public abstract interface java.awt.peer.ComponentPeer { // Interface Methods public abstract int checkImage (Image image, int width, int height, ImageObserver observer); public abstract Image createImage (ImageProducer producer); public abstract Image createImage (int width, int height); public abstract void disable(); public abstract void dispose(); public abstract void enable(); public abstract ColorModel getColorModel(); public abstract FontMetrics getFontMetrics (Font f); public abstract Graphics getGraphics(); public abstract Point getLocationOnScreen(); public abstract Dimension getMinimumSize(); public abstract Dimension getPreferredSize(); public abstract Toolkit getToolkit(); public abstract boolean handleEvent (Event e); public abstract void hide(); public abstract boolean isFocusTraversable(); public abstract Dimension minimumSize(); public abstract void paint (Graphics g); public abstract Dimension preferredSize (); public abstract boolean prepareImage (Image image, int width, int height, ImageObserver observer); public abstract void print (Graphics g); public abstract void repaint (long tm, int x, int y, int width, int height); public abstract void requestFocus(); public abstract void reshape (int x, int y, int width, int height); public abstract void setBackground (Color c); public abstract void setBounds (int x, int y, int width, int height); public abstract void setCursor (Cursor cursor); public abstract void setEnabled (boolean b); public abstract void setFont (Font f); public abstract void setForeground (Color c); public abstract void setVisible (boolean b); public abstract void show(); } Interface MethodscheckImagepublic abstract int checkImage (Image image, int width, int height, ImageObserver observer)
createImagepublic abstract Image createImage (ImageProducer producer)
public abstract Image createImage (int width, int height)
disablepublic abstract void disable()
disposepublic abstract void dispose()
enablepublic abstract void enable()
getColorModelpublic abstract ColorModel getColorModel()
getFontMetricspublic abstract FontMetrics getFontMetrics (Font f)
getGraphicspublic abstract Graphics getGraphics()
getLocationOnScreenpublic abstract Point getLocationOnScreen()
getMinimumSizepublic abstract Dimension getMinimumSize()
getPreferredSizepublic abstract Dimension getPreferredSize()
getToolkitpublic abstract Toolkit getToolkit()
handleEventpublic abstract boolean handleEvent (Event e)
hidepublic abstract void hide()
isFocusTraversablepublic abstract boolean isFocusTraversable()
minimumSizepublic abstract Dimension minimumSize()
paintpublic abstract void paint (Graphics g)
preferredSizepublic abstract Dimension preferredSize()
prepareImagepublic abstract boolean prepareImage (Image image, int width, int height, ImageObserver observer)
public abstract void print (Graphics g)
repaintpublic abstract void repaint (long tm, int x, int y, int width, int height)
requestFocuspublic abstract void requestFocus()
reshapepublic abstract void reshape (int x, int y, int width, int height)
setBackgroundpublic abstract void setBackground (Color c)
setBoundspublic abstract void setBounds (int x, int y, int width, int height)
setCursorpublic abstract void setCursor (Cursor cursor)
setEnabledpublic abstract void setEnabled (boolean b)
setFontpublic abstract void setFont (Font f)
setForegroundpublic abstract void setForeground (Color c)
setVisiblepublic abstract void setVisible (boolean b)
showpublic abstract void show()
See AlsoButtonPeer, CanvasPeer, CheckboxPeer, ChoicePeer, Color, ColorModel, ContainerPeer, Cursor, Dimension, Event, Font, FontMetrics, Graphics, Image, ImageObserver, ImageProducer, LabelPeer, ListPeer, ScrollbarPeer, TextComponentPeer, Toolkit |
|