'Graphics 2D'에 해당되는 글 1건

  1. 2013.01.23 Graphics

Graphics

개발 및 관리/Java 2013. 1. 23. 13:58 posted by HighLighter
반응형

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문서를 확인해보면 다른 메소들도 있음을 알 수 있다.

반응형

'개발 및 관리 > Java' 카테고리의 다른 글

paintComponent  (0) 2013.01.23
Event  (0) 2013.01.23
순탄지 않았던 그 동안의 이야기  (0) 2013.01.23
Exception에 관련된 규칙  (0) 2013.01.22
Exception  (0) 2013.01.22