The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

It's not me...

Posted by Kishori Sharan on November 08, 2000 at 12:07 AM

Hi Lucas
Here is the class hierarchy for Graphics class. So when you call getGraphics ( ) on a component then it returns you an instance of class WGraphics which uses a lot of native methods. Note the presence of sun.java2d and sun.awt.windows packages.

public java.lang.Object
public abstract java.awt.Graphics
public abstract java.awt.Graphics2D
public abstract sun.java2d.SunGraphics2D
public sun.awt.windows.WGraphics extends SunGraphics2D implements PixelDrawPipe, PixelFillPipe, TranslateablePipe, SimpleRenderPipe, TextPipe, DeviceClipping


Thanx
Kishori



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us