|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
public interface Stroke
StrokeÀÎÅÍÆäÀ̽º¿¡ ÀÇÇØ Graphics2D °´Ã¼´Â ÁöÁ¤µÈ Shape
Àå½ÄµÈ À±°û (¾ç½ÄÈµÈ À±°û Ç¥Çö)À» ³ªÅ¸³»´Â Shape¸¦
ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù. Shape
strokeÀÇ ·»´õ¸µ¶õ
ÀûÀýÇÑ »çÀÌÁî ¹× Çü»óÀÇ ¸¶Ä¿ ÆæÀ¸·Î ±× À±°ûÀ» À§¸¦ µ¡¾²´Â °Í °°Àº °ÍÀÔ´Ï´Ù. Ææ¿¡ ÀÇÇØ À×Å©°¡ ³õ¿©Áö´Â ¿µ¿ªÀÌ, À±°û Shape·Î
µÑ·¯½ÎÀÌ´Â ¿µ¿ª¿¡ »ó´çÇÕ´Ï´Ù.
Stroke °´Ã¼¿¡ ÀÇÇØ ¸®ÅϵÈ
À±°û Shape¸¦ »ç¿ëÇÏ´Â Graphics2DÀÎÅÍÆäÀ̽ºÀÇ ¸Þ¼µå¿¡´Â draw ¸Þ¼µå¿Í ±× ¸Þ¼µå¿¡ °ü·ÃÇØ ±¸ÇöµÇ´Â ¸Þ¼µå°¡ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, drawLine, drawRect, drawRoundRect, drawOval, drawArc, drawPolyline ¹× drawPolygon ÀÔ´Ï´Ù.
Stroke¸¦ ±¸ÇöÇϴ Ŭ·¡½ºÀÇ °´Ã¼´Â Àбâ
Àü¿ëÀÌ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. À̰ÍÀº setStroke ¸Þ¼µå¸¦ »ç¿ëÇØ ¼Ó¼ºÀ¸·Î¼ ¼³Á¤µÇ¾úÀ» ¶§³ª, Graphics2D °´Ã¼ ÀÚ½ÅÀÌ º¹Á¦µÇ¾úÀ» ¶§¿¡
Graphics2D´Â ÀÌ·¯ÇÑ °´Ã¼¸¦ º¹Á¦ÇÏÁö ¾Ê±â ¶§¹®ÀÔ´Ï´Ù. Graphics2D ÄÁÅØ½ºÆ®
À¸·Î ¼³Á¤µÈ ÈÄ¿¡ Stroke °´Ã¼°¡ º¯°æµÇ¾úÀ» °æ¿ì, ±× ÀÌÈÄÀÇ ·»´õ¸µÀÇ µ¿ÀÛÀº º¸ÁõµÇÁö ¾Ê½À´Ï´Ù.
BasicStroke,
Graphics2D.setStroke(java.awt.Stroke) | ¸Þ¼µå °³¿ä | |
|---|---|
Shape |
createStrokedShape (Shape p)
StrokeÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â °´Ã¼¿¡ ÀÇÇØ Á¤ÀǵǴ ±ÔÄ¢¿¡ µû¶ó
Shape
stroke°¡ ·»´õ¸µ µÉ ¶§ ·»´õ¸µ µÇ´Â ¿µ¿ªÀ» µÑ·¯½Î´Â À±°û Shape¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
Shape createStrokedShape(Shape p)
StrokeÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â °´Ã¼¿¡ ÀÇÇØ Á¤ÀǵǴ ±ÔÄ¢¿¡ µû¶ó
Shape
stroke°¡ ·»´õ¸µ µÉ ¶§ ·»´õ¸µ µÇ´Â ¿µ¿ªÀ» µÑ·¯½Î´Â À±°û Shape¸¦ ¸®ÅÏÇÕ´Ï´Ù.
p - stroke·Î ·»´õ¸µ µÇ´Â Shape
Shape
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.