|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.geom.FlatteningPathIterator
public class FlatteningPathIterator
FlatteningPathIterator
Ŭ·¡½º´Â ´Ù¸¥ PathIterator
°´Ã¼ÀÇ ÆòÅºÈ µÈ ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù. ´Ù¸¥ Shape
Ŭ·¡½º¿¡¼ ÀÌ Å¬·¡½º¸¦ »ç¿ëÇØ, °¢ Ŭ·¡½º ÀÚü·Î º¸°£ °è»êÀ» ½Ç½ÃÇÏÁö ¾Ê¾Æµµ, ÆÐ½ºÀÇ ÆòÅºÈ µ¿ÀÛÀ» ½ÇÇàÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÇÊµå °³¿ä |
---|
ÀÎÅÍÆäÀ̽º java.awt.geom. PathIterator ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
SEG_CLOSE,
SEG_CUBICTO,
SEG_LINETO,
SEG_MOVETO,
SEG_QUADTO,
WIND_EVEN_ODD,
WIND_NON_ZERO |
»ý¼ºÀÚ °³¿ä | |
---|---|
FlatteningPathIterator (PathIterator src,
double flatness)
¹Ýº¹ÇÒ ¶§¸¶´Ù ÆÐ½º¸¦ ÆòźÈÇÏ´Â FlatteningPathIterator °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
FlatteningPathIterator (PathIterator src,
double flatness,
int limit)
¹Ýº¹ÇÒ ¶§¸¶´Ù ÆÐ½º¸¦ ÆòźÈÇÏ´Â »õ·Î¿î FlatteningPathIterator °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
int |
currentSegment (double[] coords)
¹Ýº¹ ó¸®ÀÇ ÇöÀçÀÇ ÆÐ½º ¼¼±×¸ÕÆ®(segment)ÀÇ ÁÂÇ¥ ¹× ŸÀÔÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int |
currentSegment (float[] coords)
¹Ýº¹ ó¸®ÀÇ ÇöÀçÀÇ ÆÐ½º ¼¼±×¸ÕÆ®(segment)ÀÇ ÁÂÇ¥ ¹× ŸÀÔÀ» ¸®ÅÏÇÕ´Ï´Ù. |
double |
getFlatness ()
ÀÌ ¹Ýº¹ÀÚÀÇ ÈĶùÆ®³×½º¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getRecursionLimit ()
ÀÌ ¹Ýº¹ÀÚÀÇ Àç±Í Á¦ÇÑÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int |
getWindingRule ()
ÆÐ½ºÀÇ ³»ºÎ¸¦ °áÁ¤ÇÏ´Â ±¼°î ±ÔÄ¢À» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isDone ()
¹Ýº¹ 󸮰¡ ¿Ï·áÇß´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
void |
next ()
À̵¿ÀÇ ¼ø¼ ¹æÇâÀ¸·Î ¾ÆÁ÷ Á¡ÀÌ ÀÖ´Â °æ¿ì¿¡ ±× ¹æÇâ¿¡ µû¶ó ÆÐ½ºÀÇ ´ÙÀ½ÀÇ ¼¼±×¸ÕÆ®(segment)¿¡ ¹Ýº¹ÀÚ¸¦ À̵¿ÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public FlatteningPathIterator(PathIterator src, double flatness)
FlatteningPathIterator
°´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. ¹Ýº¹ÀÚ´Â ¼Ò½º ¹Ýº¹ÀڷκÎÅÍ ÀоÁø °î¼±À» °î¼± ±Ùó ÃÖ´ë 1024 ¶óÀÎ ¼¼±×¸ÕÆ®(segment)°¡ »ý¼ºµÇ´Â 10 ·¹º§À» ³Ñ´Â ºÐÇÒ¿¡ ºÐÇÒÇÏÁö ¾Ê½À´Ï´Ù.
src
- ¹Ýº¹µÇ´Â ÆòźȵǾî ÀÖÁö ¾ÊÀº ¿øÀÇ ÆÐ½ºflatness
- Á¦¾îÁ¡°ú ÆòÅºÈ µÈ °î¼±ÀÇ ÃÖ´ë Çã¿ë °Å¸®public FlatteningPathIterator(PathIterator src, double flatness, int limit)
FlatteningPathIterator
°´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. limit
ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, ¹Ýº¹ÀÚ¿¡ ÀÇÇØ flatness
ÆÄ¶ó¹ÌÅÍ¿¡ ºñÃß¾î ÃøÁ¤ÇÏÁö ¾Ê¾Æµµ, °î¼±ÀÌ ÆòźÇÏ´Ù¶ó°í º¸À̱â Àü¿¡
ÀÛ¼º °¡´ÉÇÑ Àç±ÍÀû ºÐÇÒÀÇ ÃÖ´ë¼ö¸¦ Á¦¾îÇÒ ¼ö ÀÖ½À´Ï´Ù. ±× ¶§¹®¿¡
ÆòźÈÀÇ ¹Ýº¹À¸·Î °î¼± ±Ùó ÃÖ´ë (2^limit)
¸¦ ³Ñ´Â ¶óÀÎ ¼¼±×¸ÕÆ®(segment)°¡ »ý¼ºµÉ °ÍÀº ¾ø½À´Ï´Ù.
src
- ¹Ýº¹ ´ë»óÀÇ ÆòźȵǾî ÀÖÁö ¾ÊÀº ¿øÀÇ ÆÐ½ºflatness
- Á¦¾îÁ¡°ú ÆòÅºÈ µÈ °î¼±ÀÇ ÃÖ´ë Çã¿ë °Å¸®limit
- °î¼± ¼¼±×¸ÕÆ®(segment)¿¡ Çã°¡µÇ´Â Àç±ÍÀû ºÐÇÒÀÇ ÃÖ´ë¼ö
IllegalArgumentException
- flatness
¶Ç´Â limit
ÀÌ 0 ¹Ì¸¸ÀÇ °æ¿ì¸Þ¼µåÀÇ »ó¼¼ |
---|
public double getFlatness()
FlatteningPathIterator
ÈĶùÆ®³×½ºpublic int getRecursionLimit()
FlatteningPathIterator
Àç±Í Á¦ÇÑpublic int getWindingRule()
PathIterator
³»ÀÇ getWindingRule
PathIterator.WIND_EVEN_ODD
,
PathIterator.WIND_NON_ZERO
public boolean isDone()
PathIterator
³»ÀÇ isDone
true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
public void next()
PathIterator
³»ÀÇ next
public int currentSegment(float[] coords)
PathIterator
³»ÀÇ currentSegment
coords
- ÀÌ ¸Þ¼µå·ÎºÎÅÍ ¸®ÅϵÈ
µ¥ÀÌÅ͸¦ º¸°ü À¯ÁöÇÏ´Â ¹è¿
NoSuchElementException
- ÆòźÈÇÏ´Â ÆÐ½º¿¡ µ¹·ÁÁÖ´Â ¿ä¼Ò°¡ ¾ø´Â °æ¿ìPathIterator.SEG_MOVETO
,
PathIterator.SEG_LINETO
,
PathIterator.SEG_CLOSE
public int currentSegment(double[] coords)
PathIterator
³»ÀÇ currentSegment
coords
- ÀÌ ¸Þ¼µå·ÎºÎÅÍ ¸®ÅϵÈ
µ¥ÀÌÅ͸¦ º¸°ü À¯ÁöÇÏ´Â ¹è¿
NoSuchElementException
- ÆòźÈÇÏ´Â ÆÐ½º¿¡ µ¹·ÁÁÖ´Â ¿ä¼Ò°¡ ¾ø´Â °æ¿ìPathIterator.SEG_MOVETO
,
PathIterator.SEG_LINETO
,
PathIterator.SEG_CLOSE
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.