Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java.  In java you can paint your own custom drawing (such as graphs, charts, drawings and, in particular, computer games) because you cannot find standard.

Similar presentations


Presentation on theme: "Java.  In java you can paint your own custom drawing (such as graphs, charts, drawings and, in particular, computer games) because you cannot find standard."— Presentation transcript:

1 Java

2  In java you can paint your own custom drawing (such as graphs, charts, drawings and, in particular, computer games) because you cannot find standard GUI components that meets your requirements.  The java.awt.Graphics is an abstract class, as the actual act of drawing is system-dependent and device-dependent. Each operating platform will provide a subclass of Graphics to perform the actual drawing under the platform, but conform to the specification defined in Graphics.

3 Graphics Class' Drawing Methods The Graphics class provides methods for drawing three types of graphical objects:  Text strings: via the drawString() method.  Vector-graphic primitives and shapes: via methods drawXxx() and fillXxx(), where Xxx could be Line, Rect, Oval, Arc, PolyLine, RoundR ect, or 3DRect.  Bitmap images: via the drawImage() method.

4 Drawing Line

5

6

7 Drawing Oval

8

9

10 Drawing Rectangle

11

12

13 Fill

14

15

16 3Dfill

17

18


Download ppt "Java.  In java you can paint your own custom drawing (such as graphs, charts, drawings and, in particular, computer games) because you cannot find standard."

Similar presentations


Ads by Google