|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.awt.font.TextLayout.CaretPolicy
°ÇÑ caretÀÇ À§Ä¡¸¦ ÆÇÁ¤Çϱâ À§ÇÑ Æú¸®½Ã¸¦ Á¤ÀÇÇÕ´Ï´Ù.
ÀÌ Å¬·¡½ºÀÇ ¸Þ¼Òµå´Â getStrongCaret
»ÓÀÔ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â µà¾ó caret ÅØ½ºÆ®·Î °ÇÑ caret¸¦ ÆÇÁ¤ÇÏ´Â Æú¸®½Ã¸¦ ÁöÁ¤Çϱâ À§Çؼ »ç¿ëµË´Ï´Ù. °ÇÑ caret´Â caret¸¦ ¿ÞÂÊ ¶Ç´Â ¿À¸¥ÂÊÀ¸·Î À̵¿Çϱâ À§Çؼ(¶§¹®¿¡) »ç¿ëµË´Ï´Ù. ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº´Â getCaretShapes
,getNextLeftHit
, ¹× getNextRightHit
¿¡ °Ç³×ÁÖ¾î, °ÇÑ caretÀÇ ¼±ÅÃÀ» Ä¿½ºÅ͸¶ÀÌÁî ÇÒ ¼ö ÀÖ½À´Ï´Ù.
´ëü caret Æú¸®½Ã¸¦ ÁöÁ¤ÇÏ·Á¸é ,CaretPolicy
¸¦ ¼ºê Ŭ·¡½ºÈÇØ,getStrongCaret
¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇÕ´Ï´Ù. getStrongCaret
¸Þ¼Òµå¿¡¼´Â 2 °³ÀÇ TextHitInfo
Àμö¸¦ Á¶»çÇØ ¾î´À ÂÊÀÎÁö 1 °³¸¦ °ÇÑ caret·Î¼ ¼±ÅÃÇϵµ·Ï(µíÀÌ) ÇÕ´Ï´Ù.
´ëºÎºÐÀÇ Å¬¶óÀÌ¾ðÆ®´Â ÀÌ Å¬·¡½º¸¦ »ç¿ëÇÒ Çʿ䰡 ¾ø½À´Ï´Ù.
»ý¼ºÀÚÀÇ °³¿ä | |
TextLayout.CaretPolicy ()
CaretPolicy ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
TextHitInfo |
getStrongCaret (TextHitInfo hit1,
TextHitInfo hit2,
TextLayout layout)
ÁöÁ¤µÈ TextLayout ·Î, ÁöÁ¤µÈ TextHitInfo ÀÇ ÀνºÅϽºÀÇ 1 °³¸¦ °ÇÑ caret·Î¼ ¼±ÅÃÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public TextLayout.CaretPolicy()
CaretPolicy
¸¦ ±¸ÃàÇÕ´Ï´Ù.
¸Þ¼ÒµåÀÇ »ó¼¼ |
public TextHitInfo getStrongCaret(TextHitInfo hit1, TextHitInfo hit2, TextLayout layout)
TextLayout
·Î, ÁöÁ¤µÈ TextHitInfo
ÀÇ ÀνºÅϽºÀÇ 1 °³¸¦ °ÇÑ caret·Î¼ ¼±ÅÃÇÕ´Ï´Ù.
hit1
- layout
ÀÇ À¯È¿ÇÑ È÷Æ®hit2
- layout
ÀÇ À¯È¿ÇÑ È÷Æ®layout
- hit1
¹× hit2
°¡ »ç¿ëµÇ°í ÀÖ´Â TextLayout
hit1
¶Ç´Â hit2
(ȤÀº µ¿µîÀÇ TextHitInfo
). °ÇÑ caret¸¦ ³ªÅ¸³½´Ù
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.