.


:




:

































 

 

 

 





; Java :

1. Rectangle, , (x1, y1) ( ), (x2, y2) ( ). , :

4 (x1, y1), (x2, y2);

2 , (0,0);

(0,0) (0,0).

Rectangle rect_print(), ( ). move (int dx, int dy), dx, dy. Union( ), ( , ).

Rectangle Test, main(). Rectangle : Rectangle , . move() . Union .

2. Rectangle DrawableRect, draw(Graphics g) outColor Color ( java.awt.*). . java.awt.* Graphics ( import java.awt.*;). (, setColor(Color.red)) 2 (x,y), w h drawRect(x,y,h,w) ( , ).

3. DrawableRect ColoredRect, inColor Color. draw(Graphics g) : outColor, inColor. fillRect(x,y,h,w) ( ). Rectangle DrawableRect ColoredRect .

 

1. ;

2. ;

3. - , ;

4. ( ), ;

5. ( );

6. .

 

1. , Java 8. / . - .: , 2015. - 720 c.

2. , WEB- Java JavaScript / , . - : . [ .]: , 2017. - 718 c.

3. , Java EE 7 / . - .: , 2016. - 640 c.

4. , Java EE 7. / . - .: , 2014. - 336 c.

5. , Java. / . - .: , 2015. - 928 c.

 

 

3

: java, java.awt

: java, java.awt .

 





:


: 2018-10-18; !; : 461 |


:

:

.
==> ...

1263 - | 1246 -


© 2015-2024 lektsii.org - -

: 0.006 .