HighLighter 2013. 1. 23. 13:58
반응형

1.Graphics 레퍼런스를 가지고 호출할 수 있는 메소드
 drawImage();
 drawLine();
 drawPolygon
 drawRect();
 drawOval();
 fillRect();
 fillRoundRect();
 setColor();

 

2.Graphics 객체를 Graphics2D 레퍼런스로 캐스트하는 방법

 Graphics2D g2d = (Graphics2D) g;

 

3.Graphics2D 레퍼런스를 가지고 호출할 수 있는 메소드
 fill3DRect();
 draw3DRect();
 rotate();
 scale();
 shear();
 transform();
 setRenderingHints()

 

cf. API문서를 확인해보면 다른 메소들도 있음을 알 수 있다.

반응형