Ques : What is Graphics Context and class ?

, , No Comments

Graphics Context and Graphics Class

• Enables drawing on screen
• Graphics object manages graphics context
• Controls how objects is drawn
• Class Graphics is abstract
• Cannot be instantiated
• Contributes to Java’s portability
• Class Component method paint takes Graphics object.

The Graphics class is the abstract base class for all graphics contexts. It allows an application to draw onto components that are realized on various devices, as well as on to off-screen images.


0 टिप्पणियाँ:

Post a Comment