|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
javax.swing.text.FlowView
javax.swing.text.ParagraphView
public class ParagraphView
º¹¼öÀÇ ÆùÆ®, »ö, ÄÄÆÛ³ÍÆ®,ÀڽľÆÀÌÄܵîÀ» Áö¿øÇÏ´Â ´Ü¼øÇÑ Çà Áï½Ã ´Ü¶ôÀÇ ºäÀÔ´Ï´Ù. À̰ÍÀº ±âº»ÀûÀ¸·Î ÁÖÀ§¿¡ ¸¶ÁøÀÌ ÀÖ´Â ¼öÁ÷ ¹Ú½ºÀÔ´Ï´Ù. ¹Ú½ºÀÇ ÄÁÅÙÃ÷´Â Ư¼öÇÑ ¼öÆò ¹Ú½ºÀÎ ÇàÀÇ ¸ðÀÓÀÔ´Ï´Ù. ÀÌ ºä´Â ´Ü¶ô ¿ä¼ÒÀÇ ÀÚ½Ä
¿ä¼Ò¸¦ ³ªÅ¸³»´Â ºäÀÇ Ä÷º¼ÇÀ» ÀÛ¼ºÇÕ´Ï´Ù. ÀÌ·¯ÇÑ °¢ ºä´Â ºä°¡ 1 Çà¿¡ µé¾î°¡´Â °æ¿ì¿¡´Â Çà¿¡ Á÷Á¢ ¹èÄ¡µÇ¾î ±×·¸Áö ¾ÊÀº °æ¿ì¿¡´Â breakView
¸Þ¼µå°¡ ºÒ·Á°¡
°¢ Çà¿¡ ºÐÇÒÇØ °ÅµÎµµ·Ï
½ÃµµµË´Ï´Ù.
View
Áßø(Nested) Ŭ·¡½º °³¿ä |
---|
Ŭ·¡½º javax.swing.text. FlowView ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
FlowView.FlowStrategy |
ÇÊµå °³¿ä | |
---|---|
protected int |
firstLineIndent
ÁÂÃøÀ¸·ÎºÎÅÍÀÇ ÀÎ ¼¼Æ®¿¡ ÇÑ ¼±µÎÇàÀÇ Àε§Æ®ÀÔ´Ï´Ù. |
Ŭ·¡½º javax.swing.text. FlowView ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
layoutPool,
layoutSpan,
strategy |
Ŭ·¡½º javax.swing.text. View ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
BadBreakWeight,
ExcellentBreakWeight,
ForcedBreakWeight,
GoodBreakWeight,
X_AXIS,
Y_AXIS |
ÀÎÅÍÆäÀ̽º javax.swing. SwingConstants ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
BOTTOM,
CENTER,
EAST,
HORIZONTAL,
LEADING,
LEFT,
NEXT,
NORTH,
NORTH_EAST,
NORTH_WEST,
PREVIOUS,
RIGHT,
SOUTH,
SOUTH_EAST,
SOUTH_WEST,
TOP,
TRAILING,
VERTICAL,
WEST |
»ý¼ºÀÚ °³¿ä | |
---|---|
ParagraphView (Element elem)
ÁöÁ¤µÈ ¿ä¼ÒÀÇ ParagraphView ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
protected void |
adjustRow (javax.swing.text.ParagraphView.Row r,
int desiredSpan,
int x)
ÁöÁ¤µÈ ÇàÀ» °¡´ÉÇϸé Á¶Á¤ÇØ, ¹èÄ¡ ½ºÆÒ³»¿¡ ³Öµµ·Ï ÇÕ´Ï´Ù. |
View |
breakView (int axis,
float len,
Shape a)
ÁöÁ¤µÈ Ãà ¹× ÁöÁ¤µÈ ±æÀÌ·Î ÀÌ ºä¸¦ ºÐÇÒÇÕ´Ï´Ù. |
void |
changedUpdate (DocumentEvent changes,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¼Ó¼ºÀÌ º¯°æµÈ °ÍÀ» ¹®¼·ÎºÎÅÍ ÅëÁöÇÕ´Ï´Ù. |
protected View |
createRow ()
È帧ÀÇ ÀڽĿ¡ »ó´çÇÏ´Â ÇàÀ» º¸°ü À¯ÁöÇϴµ¥ »ç¿ëÇÏ´Â View ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected int |
findOffsetToCharactersInString (char[] string,
int start)
¹®¼³»ÀÇ ´ÙÀ½ÀÇ ¹®ÀÚ¸¦ string ³»ÀÇ ÀÓÀÇÀÇ ¹®ÀÚ¸¦ »ç¿ëÇØ °Ë»öÇÕ´Ï´Ù. |
protected boolean |
flipEastAndWestAtEnds (int position,
Position.Bias bias)
´ÙÀ½ÀÇ ºä¸¦ ¾î´À ¹æÇâÀ¸·Î ¹èÄ¡Çұ °áÁ¤ÇÕ´Ï´Ù. |
float |
getAlignment (int axis)
ÀÌ ºäÀÇ ¹Ù¶÷Á÷ÇÑ ¹èÄ¡¸¦ ÃàÀ¸·Î µû¶ó ÁöÁ¤ÇÕ´Ï´Ù. |
int |
getBreakWeight (int axis,
float len)
ÁöÁ¤µÈ À§Ä¡ÀÇ ºê·¹ÀÌÅ© ¿þÀÌÆ®¸¦ ÃëµæÇÕ´Ï´Ù. |
protected int |
getClosestPositionTo (int pos,
Position.Bias b,
Shape a,
int direction,
Position.Bias [] biasRet,
int rowIndex,
int x)
x ¿¡ °¡Àå ±ÙÁ¢ÇÑ ¸ðµ¨³»ÀÇ À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getFlowSpan (int index)
ÁöÁ¤µÈÀÚ½Ä ÀÇ À妽º¿¡ ¹ÝÇØ Ç÷οì ÇÏ´Â Á¦¾à ½ºÆÒÀ» ²¨³À´Ï´Ù. |
int |
getFlowStart (int index)
ÇÃ·Î¿ì ½ºÆÒÀ» °³½ÃÇÏ´Â Ç÷οì ÃàÀ¸·Î µû¸¥ À§Ä¡¸¦ ²¨³À´Ï´Ù. |
protected View |
getLayoutView (int index)
ÁöÁ¤µÈ index
ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected int |
getLayoutViewCount ()
ÀÌ ºä°¡ ´ã´çÇÏ´Â ºäÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected int |
getNextNorthSouthVisualPositionFrom (int pos,
Position.Bias b,
Shape a,
int direction,
Position.Bias [] biasRet)
Ä¿¼¸¦ µÑ ¼ö ÀÖ´Â ´ÙÀ½ÀÇ ½Ã°¢ÀûÀÎ À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected float |
getPartialSize (int startOffset,
int endOffset)
startOffset ¿Í
endOffset
»çÀÌÀÇ ºä°¡ »ç¿ëÇÏ´Â »çÀÌÁ ¸®ÅÏÇÕ´Ï´Ù. |
protected float |
getTabBase ()
ÅÇ °è»êÀÇ °³½Ã À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected TabSet |
getTabSet ()
ÅÇÀÇ °è»êÀ¸·Î »ç¿ëÇÏ´Â TabSet ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
float |
nextTabStop (float x,
int tabOffset)
ÂüÁ¶ À§°ªÀÌ ÁöÁ¤µÈ ´ÙÀ½ÀÇ tab stop À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
paint (Graphics g,
Shape a)
ÁöÁ¤µÈ ·»´õ¸µ Ç¥¸é°ú ±× ¿µ¿ªÀ» »ç¿ëÇØ ·»´õ¸µ ÇÕ´Ï´Ù. |
protected void |
setFirstLineIndent (float fi)
¼±µÎÇàÀÇ Àε§Æ®¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setJustification (int j)
À§Ä¡ °¡Áö·±È÷ ÇϰíÀÇ Å¸ÀÔÀ» ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setLineSpacing (float ls)
Çà°£°ÝÀ» ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setPropertiesFromAttributes ()
ij½¬¿¡ Ãâ·ÂÇØÁø ÇÁ·ÎÆÛƼ¸¦ ¼Ó¼ºÀ¸·ÎºÎÅÍ ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.text. FlowView ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
calculateMinorAxisRequirements,
getFlowAxis,
getViewIndexAtPosition,
insertUpdate,
layout,
loadChildren,
removeUpdate,
setParent |
Ŭ·¡½º javax.swing.text. BoxView ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
baselineLayout,
baselineRequirements,
calculateMajorAxisRequirements,
childAllocation,
forwardUpdate,
getAxis,
getChildAllocation,
getHeight,
getMaximumSpan,
getMinimumSpan,
getOffset,
getPreferredSpan,
getResizeWeight,
getSpan,
getViewAtPoint,
getWidth,
isAfter,
isAllocationValid,
isBefore,
isLayoutValid,
layoutChanged,
layoutMajorAxis,
layoutMinorAxis,
modelToView,
paintChild,
preferenceChanged,
replace,
setAxis,
setSize,
viewToModel |
Ŭ·¡½º javax.swing.text. CompositeView ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
getBottomInset,
getInsideAllocation,
getLeftInset,
getNextEastWestVisualPositionFrom,
getNextVisualPositionFrom,
getRightInset,
getTopInset,
getView,
getViewAtPosition,
getViewCount,
getViewIndex,
modelToView,
setInsets,
setParagraphInsets |
Ŭ·¡½º javax.swing.text. View ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
append,
breakView,
createFragment,
forwardUpdateToView,
getAttributes,
getBreakWeight,
getContainer,
getDocument,
getElement,
getEndOffset,
getGraphics,
getParent,
getStartOffset,
getToolTipText,
getViewFactory,
getViewIndex,
insert,
isVisible,
modelToView,
remove,
removeAll,
updateChildren,
updateLayout,
viewToModel |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
protected int firstLineIndent
»ý¼ºÀÚ »ó¼¼ |
---|
public ParagraphView(Element elem)
ParagraphView
¸¦ ±¸ÃàÇÕ´Ï´Ù.
elem
- ÀÌ ºä°¡ Ãë±ÞÇÏ´Â ¿ä¼Ò¸Þ¼µåÀÇ »ó¼¼ |
---|
protected void setJustification(int j)
j
- ´ÙÀ½ÀÇ °ªÀÇ ¾î¶² °ÍÀΰ¡. StyleConstants.ALIGN_LEFT
StyleConstants.ALIGN_CENTER
StyleConstants.ALIGN_RIGHT
protected void setLineSpacing(float ls)
ls
- Ä¡´Â ÇàÀÇ ³ôÀÌÀÇ °è¼öprotected void setFirstLineIndent(float fi)
fi
- Æ÷ÀÎÆ® ´ÜÀ§ÀÇ °ªprotected void setPropertiesFromAttributes()
protected int getLayoutViewCount()
View
°¢ ºÎºÐÀ» ¹è¿Çϱâ À§Çؼ »ç¿ëµÇ¾î µûºÐÇѰ¡ÀÇ ÇàÀÔ´Ï´Ù. À̰ÍÀº 2 Â÷¿ø¿¡ ´Ã¾î³õÀ» ¼ö ÀÖ¾ú´ø ºäÀÇ ¼ö·Î ÀÌ ºä°¡ Ãë±ÞÇÏ´Â ¿ä¼ÒÀÇ ÀÚ½Ä
¿ä¼ÒÀÇ ¼ö¿¡ µ¿ÀÏÇØÁý´Ï´Ù.
ParagraphView
°¡ Ãë±ÞÇÏ´Â ºäÀÇ ¼öprotected View getLayoutView(int index)
index
ºä¸¦ ¸®ÅÏÇÕ´Ï´Ù. ´Ü¶ôÀÇÀÚ½Ä
ºä´Â ÀÚ½Ä
¿ä¼Ò¸¦ ³ªÅ¸³»´Â Views
°¢ ºÎºÐÀ» ¹è¿Çϱâ À§Çؼ »ç¿ëµÇ¾î µûºÐÇѰ¡ÀÇ ÇàÀÔ´Ï´Ù. ÀÌ ¸Þ¼µå´Â ÀÚ½Ä
¿ä¼Ò À妽º¸¦ Ãë±ÞÇÏ´Â ºä¸¦ (ºÐÇÒÀü¿¡) ¸®ÅÏÇÕ´Ï´Ù. À̰͵éÀº ÆÑÅ丮·ÎºÎÅÍ (¾ÆÀÌ ¿ä¼Ò¸¦ ³ªÅ¸³»±â À§Çؼ) ÀÛ¼ºµÇ¾î ·¹À̾ƿô¿¡ »ç¿ëµÇ´Â ºäÀÔ´Ï´Ù.
index
- ¿ä±¸ÇÏ´Â ºäÀÇ index
index
ºäprotected void adjustRow(javax.swing.text.ParagraphView.Row r, int desiredSpan, int x)
À̰ÍÀº ³»ºÎ »ç¿ëÀ» À§ÇÑ °ÍÀ¸·Î Á÷Á¢ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.
r
- ÇöÀçÀÇ ¹èÄ¡ ½ºÆÒ¿¡ Á¶Á¤µÇ´Â ÇàdesiredSpan
- ÇöÀçÀÇ ¹èÄ¡ ½ºÆÒ >= 0x
- r
°³½Ã À§Ä¡protected int getNextNorthSouthVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias [] biasRet) throws BadLocationException
CompositeView
·Î
ºÎÅÍ ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù.
CompositeView
³»ÀÇ getNextNorthSouthVisualPositionFrom
pos
- ¸ðµ¨¿¡ÀÇ À§Ä¡b
- Position.Bias.Forward
¶Ç´Â Position.Bias.Backward
a
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªdirection
- SwingConstants.NORTH
¶Ç´Â SwingConstants.SOUTH
biasRet
- ÀÌ ¸Þ¼µå·Î È®ÀεǴ ¹ÙÀ̾¸¦ °¡Áö´Â ¹è¿
BadLocationException
- @exception IllegalArgumentException direction
°¡ ¹«È¿ÀÎ °æ¿ìCompositeView.getNextVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])
protected int getClosestPositionTo(int pos, Position.Bias b, Shape a, int direction, Position.Bias [] biasRet, int rowIndex, int x) throws BadLocationException
x
¿¡ °¡Àå ±ÙÁ¢ÇÑ ¸ðµ¨³»ÀÇ À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. rowIndex
´Â
°Ë»ö ´ë»óÀÇ ºäÀÇ À妽º¸¦ ÁöÁ¤ÇÕ´Ï´Ù.
pos
- ¸ðµ¨¿¡ÀÇ À§Ä¡a
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªdirection
- ´ÙÀ½ÀÇ °ªÀÇ ¾î¶² °ÍÀΰ¡. SwingConstants.NORTH
SwingConstants.SOUTH
biasRet
- ÀÌ ¸Þ¼µå·Î È®ÀεǴ ¹ÙÀ̾¸¦ °¡Áö´Â ¹è¿rowIndex
- ºäÀÇ À妽ºx
- ´ë»óÀÌ µÇ´Â x ÁÂÇ¥
x
¿¡ °¡Àå °¡±î¿î ¸ðµ¨ À§Ä¡
BadLocationException
protected boolean flipEastAndWestAtEnds(int position, Position.Bias bias)
View
°¡ °í·ÁµË´Ï´Ù. ÀϹÝÀûÀ¸·Î EAST ¿¡ÀÇ View
°¡ À妽º n + 1, WEST ¿¡ÀÇ View
°¡ À妽º n -1°¡ µÇµµ·Ï, View
´Â ¿ÞÂÊ¿¡¼ ¿À¸¥ÂÊ¿¡ ·¹À̾ƿô µË´Ï´Ù. ½Ö¹æÇâ ÅØ½ºÆ® µî ÀϺÎÀÇ °æ¿ì¿¡¼´Â EAST ¿¡ÀÇ View
¸¦ À妽º n + 1 Àº ¾Æ´Ï°í À妽º n -1 ¿¡
¶Ç´Â WEST ¿¡ÀÇ View
¸¦ À妽º n - 1 Àº ¾Æ´Ï°í À妽º n + 1 À¸·Î ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì ÀÌ ¸Þ¼µå´Â true¸¦ µ¹·ÁÁÖ°í, View
°¡ ³»¸²Â÷¼ø¿¡ ·¹À̾ƿô µÇ°í ÀÖ´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù.
ÅØ½ºÆ®°¡ ±Ý¹æ ´Ù¸¥ °÷À¸·Î ·¹À̾ƿô µÇ°í ÀÖ´Â °æ¿ì´Â true¸¦ µ¹·ÁÁÖ°í, ±×·¸Áö ¾ÊÀº °æ¿ì false¸¦ ¸®ÅÏÇÕ´Ï´Ù.
BoxView
³»ÀÇ flipEastAndWestAtEnds
position
- ¸ðµ¨¿¡ÀÇ À§Ä¡bias
- Position.Bias.Forward
¶Ç´Â Position.Bias.Backward
public int getFlowSpan(int index)
FlowView
³»ÀÇ getFlowSpan
index
- Á¶È¸µÇ´Â ºäÀÇ À妽º
index
·Î
ÁöÁ¤µÈ ºäÀÇ Á¦¾à ½ºÆÒFlowView.getFlowStart(int)
public int getFlowStart(int index)
FlowView
³»ÀÇ getFlowStart
index
- Á¶È¸µÇ´Â ºäÀÇ À妽º
index
·Î
ÁöÁ¤µÈ ºäÀÇ À§Ä¡FlowView.getFlowSpan(int)
protected View createRow()
View
¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
FlowView
³»ÀÇ createRow
View
public float nextTabStop(float x, int tabOffset)
getTabbedSpan
À»
È£ÃâÇØÀÚ½Ä
ºäÀÇ ¹Ù¶÷Á÷ÇÑ ½ºÆÒÀ» °áÁ¤ÇÕ´Ï´Ù. ³í¸®ÀÚ ºä´Â ÅÇÀÇ Àü°³ ¹æ¹ýÀ» ÀνÄÇϰí ÀÖ´Â ´Ü¶ô¿¡ ´ëÇØ¼ ±× ÅÇ Àü°³¸¦ À§¾ç ÇÕ´Ï´Ù. ±× ÅÇ Àü°³ÀÇ Çʿ伺À» ´Ü¶ô¿¡ À§¾ç ÇÏ´Â ºä¿¡´Â LabelView
µîÀÌ ÀÖ½À´Ï´Ù.
ÀÌ ¸Þ¼µå¸¦ ±¸ÇöÇϸé, ´Ü¶ô ¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®·Î TabSet
¸¦ ã¾Æ³»·Á°í ÇÕ´Ï´Ù. 1°³
¹ß°ßµÇ¸é ±× ¼³Á¤ÀÌ »ç¿ëµÇ¾î ±× ¿ÜÀÇ °æ¿ì¿¡´Â µðÆúÆ®ÀÇ Àü°³°¡ Á¦°øµË´Ï´Ù. ÅÇ Àü°³ÀÇ º£À̽º À§Ä¡´Â ´Ü¶ôÀÇ °¡Àå °¡±î¿î ÇÒ´çÀ¸·ÎºÎÅÍÀÇ ¿ÞÂÊ ÀÎ ¼¼Æ® (¾ÆÀÌÀÇ ¹èÄ¡ÀÇ ±âÁØ)ÀÔ´Ï´Ù.
TabExpander
³»ÀÇ nextTabStop
x
- X ÂüÁ¶ À§Ä¡tabOffset
- ÅÇÀÌ ¹ß»ýÇÏ´Â ÅØ½ºÆ® ½ºÆ®¸²³»ÀÇ À§Ä¡ >= 0
TabSet
,
TabStop
,
LabelView
protected TabSet getTabSet()
TabSet
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
TabSet
protected float getPartialSize(int startOffset, int endOffset)
startOffset
¿Í
endOffset
»çÀÌÀÇ ºä°¡ »ç¿ëÇÏ´Â »çÀÌÁ ¸®ÅÏÇÕ´Ï´Ù.ÀÚ½Ä
ºä°¡ TabableView
ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â °æ¿ì¿¡
À̰ÍÀº getPartialView
¸¦ »ç¿ëÇØ »çÀÌÁ °è»êÇÕ´Ï´Ù. »çÀÌÁî°¡ ÇÊ¿äÇØ, View
°¡ TabableView
ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏÁö ¾Ê´Â °æ¿ì´Â preferredSpan
°¡ »ç¿ëµË´Ï´Ù.
startOffset
- ¹®¼ÀÇ °³½Ã ¿ÀÇÁ¼Â(offset) >= 0endOffset
- ¹®¼ÀÇ Á¾·á ¿ÀÇÁ¼Â(offset) >= startOffset
protected int findOffsetToCharactersInString(char[] string, int start)
string
³»ÀÇ ÀÓÀÇÀÇ ¹®ÀÚ¸¦ »ç¿ëÇØ °Ë»öÇÕ´Ï´Ù. °Ë»öÀº ¿ÀÇÁ¼Â(offset) start
·Î
ºÎÅÍ °³½ÃÇÕ´Ï´Ù. ¾î´À ¹®ÀÚµµ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì´Â -1 ÀÌ ¸®Åϵ˴ϴÙ
.
string
- ij¸¯ÅÍ ¶óÀÎstart
- ¸ðµ¨³»ÀÇ °³½Ã À§Ä¡ >= 0
protected float getTabBase()
public void paint(Graphics g, Shape a)
BoxView
³»ÀÇ paint
g
- »ç¿ëÇÏ´Â ·»´õ¸µ Ç¥¸éa
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªView.paint(java.awt.Graphics, java.awt.Shape)
public float getAlignment(int axis)
BoxView
³»ÀÇ getAlignment
axis
- View.X_AXIS
¶Ç´Â View.Y_AXIS
public View breakView(int axis, float len, Shape a)
ParagraphView
ÀνºÅϽº´Â len
°¡ ÃÖÃÊÀÇ ¼±º¸´Ù µÚ¿¡ ÀÖ´Â °æ¿ì¿¡°Ô¸¸, Y_AXIS
ÀÎ ¸¸Å µû¶ó ºÐÇÒ °¡´ÉÇÕ´Ï´Ù.
axis
- View.X_AXIS
¶Ç´Â View.Y_AXIS
len
- ÁöÁ¤µÈ ÃàÀ¸·Î µû¶ó ºÐÇÒÇÏ´Â À§Ä¡ >= 0a
- ºäÀÇ ÇöÀçÀÇ ÇÒ´ç
View.breakView(int, int, float, float)
public int getBreakWeight(int axis, float len)
ParagraphView
ÀνºÅϽº´Â Y_AXIS
ÀÎ ¸¸Å µû¸£°í, ¶Ç len
°¡ ÃÖÃÊÀÇ ¿ÀÇ ÈÄ¿¡ ÀÖ´Â °æ¿ì¸¸ ºÐÇÒ °¡´ÉÇÕ´Ï´Ù. ±æÀ̰¡ 1 ¿º¸´Ù ªÀº °æ¿ì, BadBreakWeight
°ªÀÌ ¸®Åϵ˴ϴÙ
.
axis
- View.X_AXIS
¶Ç´Â View.Y_AXIS
len
- ºÐÇÒÇÏ´Â À§Ä¡ >= 0
GoodBreakWeight
¶Ç´Â BadBreakWeight
¾î¶² °ÍÀ̳ªView.getBreakWeight(int, float, float)
public void changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
FlowView
³»ÀÇ changedUpdate
changes
- °ü·ÃµÈ ¹®¼·ÎºÎÅÍÀÇ º¯°æ Á¤º¸a
- ºäÀÇ ÇöÀçÀÇ ÇÒ´çf
- ºä°¡ ÀÚ½ÄÀ» °¡Áö´Â °æ¿ì¿¡ À籸Ãà¿¡ »ç¿ëÇÏ´Â ÆÑÅ丮View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.