|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.GapVector | +--javax.swing.text.GapContent
emacs °¡ »ç¿ëÇÏ´Â °Í °ú À¯»çÇÑ °¸ ÷ºÎ ¹öÆÛ¸¦ »ç¿ëÇØ ±¸ÇöµÈ AbstractDocument.Content ÀÎÅÍÆäÀ̽ºÀÇ ±¸ÇöÀÔ´Ï´Ù. ±â¾ïµÇ´Â ³»¿ëÀº ¾îµð¿£°¡ °¸À» °¡Áö´Â Unicode ij¸¯ÅÍ ¶óÀÎÀÇ ¹è¿ÀÔ´Ï´Ù. °¸Àº º¯°æÀÇ À§Ä¡¿¡ À̵¿µÇ¹Ç·Î, ´ëºÎºÐÀÇ º¯°æÀÌ °°Àº À§Ä¡¿¡ ÀÖ´Â Àå¼Ò¿¡¼, °øÅëÀÇ µ¿ÀÛÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ°Ô µË´Ï´Ù. °¸ °æ°è¿¡¼ »ý±â´Â º¯°æÀº ÀϹÝÀûÀ¸·Î °£´ÜÇÑ °ÍÀ̹ǷÎ, ¹è¿ÀÇ ³»¿ëÀ» Á÷Á¢ À̵¿ÇØ º¯°æÀ» Àû¿ëÇÏ´Â °Íº¸´Ùµµ °¸À» À̵¿ÇÏ´Â ÆíÀÌ ½Ã°£ÀÌ µéÁö ¾Ê½À´Ï´Ù.
¶Ç, º¯°æÀ» ÃßÀûÇÏ´Â À§Ä¡¸¦ °ü¸®ÇÏ´Â °Íµµ ÀϹÝÀûÀ¸·Î °£´ÜÇÕ´Ï´Ù. À§Ä¡ÀÇ ±¸Çö (¸¶Å©)Àº ¹è¿ À妽º¸¦ ÀúÀåÇØ, ÇöÀçÀÇ °¸ À§Ä¡·ÎºÎÅÍ ¼ø¼´ë·Î À§Ä¡¸¦ °£´ÜÇÏ°Ô °è»êÇÒ ¼ö ÀÖ½À´Ï´Ù. º¯°æ¿¡¼´Â °¸ÀÇ À̵¿½Ã¿¡ ½Å±¸ °¸ °æ°è°£ÀÇ ¸¶Å©¿¡ ´ëÇÑ °»½ÅÀ» ÇÊ¿ä·Î ÇÒ »Ó(¸¸Å)À̹ǷÎ, ¸¶Å©ÀÇ °»½ÅÀº ÀϹÝÀûÀ¸·Î ¸Å¿ì °£ÆíÇÕ´Ï´Ù. ¸¶Å©´Â ¼ÒÆ® µÈ »óÅ·ΠÀúÀåµÇ¹Ç·Î, 2 µîºÐ Ž»öÀ¸·Î Àçºü¸£°Ô ã¾Æ³¾ ¼ö ÀÖ½À´Ï´Ù. À̰ÍÀº ¸¶Å©¸¦ Ãß°¡ÇÏ´Â ¼ö°í¸¦ Áõ´ë½ÃŰ´Â ÇÑÆíÀ¸·Î, ¸¶Å©ÀÇ °»½ÅÀ» À¯ÁöÇÏ´Â ¼ö°í¸¦ ÁÙÀÔ´Ï´Ù.
»ý¼ºÀÚÀÇ °³¿ä | |
GapContent ()
»õ·Î¿î GapContent ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
GapContent (int initialLength)
ÁöÁ¤µÈ Ãʱ⠻çÀÌÁî·Î »õ·Î¿î GapContent ¿ÀºêÁ§Æ®¸¦ »ý¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
protected Object |
allocateArray (int len)
Ç׸ñÀ» ÀúÀåÇϱâ À§ÇÑ ÀûÀýÇÑ ÇüÅÂÀÇ ¹è¿À» ÇÒ´çÇÕ´Ï´Ù. |
Position |
createPosition (int offset)
ÄÁÅÙÃ÷°¡ º¯°æµÇ¾úÀ» ¶§¿¡ º¯°æÀ» ÃßÀûÇÏ´Â ÄÁÅÙÃ÷³»ÀÇ À§Ä¡¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected Object |
getArray ()
Access to the array. |
protected int |
getArrayLength ()
ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¹è¿ÀÇ ±æÀ̸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
getChars (int where,
int len,
Segment chars)
ÄÁÅÙÃ÷ÀÇ ÀϺθ¦ ²¨³À´Ï´Ù. |
protected int |
getGapEnd ()
Access to the end of the gap. |
protected int |
getGapStart ()
Access to the start of the gap. |
protected Vector |
getPositionsInRange (Vector v,
int offset,
int length)
offset ~ offset + length ÀÇ ¹üÀ§¿¡ ÀÖ´Â À§Ä¡¿¡ ´ëÀÀÇÏ´Â UndoPosRef ÀÇ ÀνºÅϽº¸¦ Æ÷ÇÔÇÑ º¤Å͸¦ µ¹·ÁÁÝ´Ï´Ù. |
String |
getString (int where,
int len)
ÄÁÅÙÃ÷ÀÇ ÀϺθ¦ ²¨³À´Ï´Ù. |
UndoableEdit |
insertString (int where,
String str)
ÄÁÅÙÃ÷¿¡ ij¸¯ÅÍ ¶óÀÎÀ» »ðÀÔÇÕ´Ï´Ù. |
int |
length ()
ÄÁÅÙÃ÷ÀÇ ±æÀ̸¦ µ¹·ÁÁÝ´Ï´Ù. |
UndoableEdit |
remove (int where,
int nitems)
ÄÁÅÙÃ÷ÀÇ ÀϺθ¦ »èÁ¦ÇÕ´Ï´Ù. |
protected void |
replace (int position,
int rmSize,
Object addItems,
int addSize)
Replace the given logical position in the storage with the given new items. |
protected void |
resetMarksAtZero ()
¿ÀÇÁ¼Â(offset)°¡ 0 ÀÇ ¸¶Å©¸¦ ¸ðµÎ ¸®¼ÂÆ® ÇØ, À妽ºµµ 0 ÀÌ µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
protected void |
shiftEnd (int newSize)
°¸À» È®´ëÇØ, À̰Ϳ¡ ÀÇÇØ, ÇÊ¿äÇÑ µ¥ÀÌÅ͸¦ À̵¿ÇØ ÀûÀýÇÑ ¸¶Å©¸¦ °»½ÅÇÕ´Ï´Ù. |
protected void |
shiftGap (int newGapStart)
°¸ÀÇ °³½Ã À§Ä¡¸¦ »õ·Î¿î À§Ä¡·Î À̵¿ÇÕ´Ï´Ù. |
protected void |
shiftGapEndUp (int newGapEnd)
°¸ÀÇ Á¾´ÜÀ» ÀÂÊ¿¡ Á¶ÀýÇÕ´Ï´Ù. |
protected void |
shiftGapStartDown (int newGapStart)
°¸ÀÇ Á¾´ÜÀ» ÇϺο¡ Á¶ÀýÇÕ´Ï´Ù. |
protected void |
updateUndoPositions (Vector positions,
int offset,
int length)
positions ÀÇ ¸ðµç UndoPosRef ÀνºÅϽºÀÇ À§Ä¡¸¦ ¸®¼ÂÆ® ÇÕ´Ï´Ù.
|
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public GapContent()
public GapContent(int initialLength)
initialLength
- Ãʱ⠻çÀÌÁî¸Þ¼ÒµåÀÇ »ó¼¼ |
protected Object allocateArray(int len)
javax.swing.text.GapVector
³»ÀÇ allocateArray
protected int getArrayLength()
javax.swing.text.GapVector
³»ÀÇ getArrayLength
public int length()
AbstractDocument.Content
³»ÀÇ length
AbstractDocument.Content.length()
public UndoableEdit insertString(int where, String str) throws BadLocationException
AbstractDocument.Content
³»ÀÇ insertString
where
- °³½Ã À§Ä¡ >= 0,< length()str
- »ðÀÔÇÏ´Â null ÀÌ¿ÜÀÇ Ä³¸¯ÅÍ ¶óÀÎ
BadLocationException
- ÁöÁ¤µÈ À§Ä¡°¡ ¹«È¿ÀÎ °æ¿ìAbstractDocument.Content.insertString(int, java.lang.String)
public UndoableEdit remove(int where, int nitems) throws BadLocationException
AbstractDocument.Content
³»ÀÇ remove
where
- °³½Ã À§Ä¡ >= 0, where + nitems < length()nitems
- »èÁ¦ ´ë»óÀÇ Ä³¸¯Åͼö >= 0
BadLocationException
- ÁöÁ¤µÈ À§Ä¡°¡ ¹«È¿ÀÎ °æ¿ìAbstractDocument.Content.remove(int, int)
public String getString(int where, int len) throws BadLocationException
AbstractDocument.Content
³»ÀÇ getString
where
- °³½Ã À§Ä¡ >= 0len
- ²¨³»´Â ±æÀÌ >= 0
BadLocationException
- ÁöÁ¤µÈ À§Ä¡°¡ ¹«È¿ÀÎ °æ¿ìAbstractDocument.Content.getString(int, int)
public void getChars(int where, int len, Segment chars) throws BadLocationException
AbstractDocument.Content
³»ÀÇ getChars
where
- °³½Ã À§Ä¡ >= 0. ¿©±â¼ + len <= length()len
- °Ë»ö ´ë»óÀÇ Ä³¸¯Åͼö >= 0chars
- ij¸¯Å͸¦ µ¹·ÁÁÖ´Â ¾ÕÀÇ Segment ¿ÀºêÁ§Æ®
BadLocationException
- ÁöÁ¤µÈ À§Ä¡°¡ ¹«È¿ÀÎ °æ¿ìAbstractDocument.Content.getChars(int, int, javax.swing.text.Segment)
public Position createPosition(int offset) throws BadLocationException
AbstractDocument.Content
³»ÀÇ createPosition
offset
- ÃßÀû ´ë»óÀÇ ¿ÀÇÁ¼Â(offset) >= 0
BadLocationException
- ÁöÁ¤µÈ À§Ä¡°¡ ¹«È¿ÀÎ °æ¿ìprotected void shiftEnd(int newSize)
javax.swing.text.GapVector
³»ÀÇ shiftEnd
protected void shiftGap(int newGapStart)
javax.swing.text.GapVector
³»ÀÇ shiftGap
protected void resetMarksAtZero()
protected void shiftGapStartDown(int newGapStart)
javax.swing.text.GapVector
³»ÀÇ shiftGapStartDown
protected void shiftGapEndUp(int newGapEnd)
javax.swing.text.GapVector
³»ÀÇ shiftGapEndUp
protected Vector getPositionsInRange(Vector v, int offset, int length)
offset
~ offset
+ length
ÀÇ ¹üÀ§¿¡ ÀÖ´Â À§Ä¡¿¡ ´ëÀÀÇÏ´Â UndoPosRef ÀÇ ÀνºÅϽº¸¦ Æ÷ÇÔÇÑ º¤Å͸¦ µ¹·ÁÁÝ´Ï´Ù. v
°¡ null °¡ ¾Æ´Ñ °æ¿ì, ÀÏÄ¡ÇÏ´Â À§Ä¡°¡ °Å±â¿¡ ¹èÄ¡µË´Ï´Ù. °á°úÀÇ À§Ä¡¸¦ °¡Áö´Â º¤ÅͰ¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
v
- »ç¿ëÇÏ´Â º¤ÅÍ. null ÀÇ °æ¿ì´Â »õ·Î¿î º¤ÅͰ¡ ÀÛ¼ºµÇ´Âoffset
- °³½Ã ¿ÀÇÁ¼Â(offset) >= 0length
- ±æÀÌ >= 0
protected void updateUndoPositions(Vector positions, int offset, int length)
positions
ÀÇ ¸ðµç UndoPosRef ÀνºÅϽºÀÇ À§Ä¡¸¦ ¸®¼ÂÆ® ÇÕ´Ï´Ù.
À̰ÍÀº ³»ºÎ¿¡¼ÀÇ »ç¿ëÀ» ¸ñÀûÀ¸·Î Çϰí ÀÖ¾î, ÀϹÝÀûÀ¸·Î´Â ¼ºê Ŭ·¡½º¸¦ ´ë»óÀ¸·Î Çϰí ÀÖÁö ¾Ê½À´Ï´Ù.
positions
- ¸®¼ÂÆ® ´ë»óÀÇ UndoPosRef ÀÇ ÀνºÅϽºprotected final Object getArray()
protected final int getGapStart()
protected final int getGapEnd()
protected void replace(int position, int rmSize, Object addItems, int addSize)
position
- the location to make the replacement. This
is not the location in the underlying storage array, but
the location in the contiguous space being modeled. rmSize
- the number of items to removeaddItems
- the new items to place in storage.
|
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.