Question

What does the Java 2D API provide? List at least three classes that define Java2D shapes....

  1. What does the Java 2D API provide? List at least three classes that define Java2D shapes. (Advanced Java Language)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: Here is the answer for your question:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Java 2D is an API for drawing of 2-d graphics .Basically java language is used here.

It is highly used API for drawing purposes such as shapes, point, figures etc

It can be used to create rich user interfaces for applications, varoius games and animations, multimedia applications

It also provides the following capabilities:

1) Controling the quality of the rendering

2) Java 2d API provides enhanced color support

3) documents prints

Also , here is the list of classes provided by java 2D api in java.awt.geom package in shape interface:

1. Rectangle2D.Double: This is widely used to generate a rectangle on the UI

2. Ellipse2D.Double:This is widely used to generate a Ellipse on the UI

3. Line2D.Double, This is widely used to generate a Line on the UI

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

I hope this would help you out

If you have any doubt, you can provide comment /feedback below the answer

Thanks

Add a comment
Know the answer?
Add Answer to:
What does the Java 2D API provide? List at least three classes that define Java2D shapes....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT