• Post Reply Bookmark Topic Watch Topic
  • New Topic

Grphics2D - fill

 
Ajit B
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all........
public abstract void fill(Shape s)

This is the absract method in class Graphics2D. i tried to search for class which overrides this method in java doc, but cudn't find one.
so all i want to know is where is the implementation of this mehtod? in which class?
..........Ajit
 
Johannes Hartman
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajit
Because it is an abstract class it implies that any class extending this Grahics2D class should implement this method...
Maybe you could use google's search and try and locate an example where it has been implemented...
cheers!
 
Ajit B
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Johannes

thx for replying.........
what u r saying is perfectly ok. i agree with that. but To elaborate bit more on my Q , consider following code.....

now in the above code i hv not extended Graphics2D, still fill method works properly. that means there is some implementation somewhere? so which method of which class is providing it?
hope someone will help me out .......Ajit
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!