Home » openjdk-7 » sun » awt » [javadoc | source]
sun.awt
public class: NullComponentPeer [javadoc | source]
java.lang.Object
   sun.awt.NullComponentPeer

All Implemented Interfaces:
    PanelPeer, LightweightPeer, CanvasPeer

Direct Known Subclasses:
    NullEmbeddedFramePeer

Implements the LightweightPeer interface for use in lightweight components that have no native window associated with them. This gets created by default in Component so that Component and Container can be directly extended to create useful components written entirely in java. These components must be hosted somewhere higher up in the component tree by a native container (such as a Frame). This implementation provides no useful semantics and serves only as a marker. One could provide alternative implementations in java that do something useful for some of the other peer interfaces to minimize the native code. This was renamed from java.awt.LightweightPeer (a horrible and confusing name) and moved from java.awt.Toolkit into sun.awt as a public class in its own file.
Method from sun.awt.NullComponentPeer Summary:
applyShape,   beginLayout,   beginValidate,   canDetermineObscurity,   checkImage,   coalescePaintEvent,   createBuffers,   createImage,   createImage,   createVolatileImage,   destroyBuffers,   disable,   dispose,   enable,   endLayout,   endValidate,   flip,   getAppropriateGraphicsConfiguration,   getBackBuffer,   getBounds,   getColorModel,   getFontMetrics,   getGraphics,   getGraphicsConfiguration,   getInsets,   getLocationOnScreen,   getMinimumSize,   getPreferredSize,   getToolkit,   handleEvent,   handleEvent,   handlesWheelScrolling,   hide,   insets,   isFocusable,   isObscured,   isPaintPending,   isReparentSupported,   layout,   minimumSize,   paint,   preferredSize,   prepareImage,   print,   repaint,   reparent,   requestFocus,   reshape,   setBackground,   setBounds,   setCursor,   setEnabled,   setFont,   setForeground,   setVisible,   setZOrder,   show,   updateCursorImmediately,   updateGraphicsData
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.awt.NullComponentPeer Detail:
 public  void applyShape(Region shape) 
    Applies the shape to the native component window.
 public  void beginLayout() 
 public  void beginValidate() 
 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() 
 public  void dispose() 
 public  void enable() 
 public  void endLayout() 
 public  void endValidate() 
 public  void flip(int x1,
    int y1,
    int x2,
    int y2,
    FlipContents flipAction) 
 public GraphicsConfiguration getAppropriateGraphicsConfiguration(GraphicsConfiguration gc) 
 public Image getBackBuffer() 
 public Rectangle getBounds() 
 public ColorModel getColorModel() 
 public FontMetrics getFontMetrics(Font font) 
 public Graphics getGraphics() 
 public GraphicsConfiguration getGraphicsConfiguration() 
 public Insets getInsets() 
 public Point getLocationOnScreen() 
 public Dimension getMinimumSize() 
 public Dimension getPreferredSize() 
 public Toolkit getToolkit() 
 public boolean handleEvent(Event e) 
 public  void handleEvent(AWTEvent arg0) 
 public boolean handlesWheelScrolling() 
 public  void hide() 
 public Insets insets() 
 public boolean isFocusable() 
 public boolean isObscured() 
 public boolean isPaintPending() 
 public boolean isReparentSupported() 
 public  void layout() 
 public Dimension minimumSize() 
 public  void paint(Graphics g) 
 public Dimension preferredSize() 
 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 newNativeParent) 
 public boolean requestFocus(Component lightweightChild,
    boolean temporary,
    boolean focusedWindowChangeAllowed,
    long time,
    Cause cause) 
 public  void reshape(int x,
    int y,
    int width,
    int height) 
 public  void setBackground(Color c) 
 public  void setBounds(int x,
    int y,
    int width,
    int height,
    int op) 
 public  void setCursor(Cursor cursor) 
 public  void setEnabled(boolean b) 
 public  void setFont(Font f) 
 public  void setForeground(Color c) 
 public  void setVisible(boolean b) 
 public  void setZOrder(ComponentPeer above) 
    Lowers this component at the bottom of the above HW peer. If the above parameter is null then the method places this component at the top of the Z-order.
 public  void show() 
 public  void updateCursorImmediately() 
 public boolean updateGraphicsData(GraphicsConfiguration gc)