|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.View | +--javax.swing.text.CompositeView | +--javax.swing.text.BoxView | +--javax.swing.text.FlowView | +--javax.swing.text.ParagraphView
º¹¼öÀÇ ÆùÆ®, »ö, ÄÄÆÛ³ÍÆ®, ¾ÆÀÌÄܵîÀ» ¼Æ÷Æ®ÇÏ´Â ´Ü¼øÇÑ Çà Áï½Ã ´Ü¶ôÀÇ ºäÀÔ´Ï´Ù. À̰ÍÀº ±âº»ÀûÀ¸·Î, ÁÖÀ§¿¡ ¸¶ÁøÀÌ ÀÖ´Â ¼öÁ÷ ¹Ú½ºÀÔ´Ï´Ù. ¹Ú½ºÀÇ ÄÁÅÙÃ÷´Â Ư¼öÇÑ ¼öÆò ¹Ú½ºÀÎ ÇàÀÇ ¸ðÀÓÀÔ´Ï´Ù. ÀÌ ºä´Â ´Ü¶ô ¿ä¼ÒÀÇ ¾ÆÀÌ ¿ä¼Ò¸¦ ³ªÅ¸³»´Â ºäÀÇ ÄÝ·º¼ÇÀ» ÀÛ¼ºÇÕ´Ï´Ù. ÀÌ·¯ÇÑ °¢ ºä´Â ºä°¡ 1 Çà¿¡ µé¾î°¡´Â °æ¿ì¿¡´Â Çà¿¡ Á÷Á¢ ¹èÄ¡µÇ¾î ±×·¸Áö ¾ÊÀº °æ¿ì¿¡´Â breakView
¸Þ¼Òµå°¡ ºÒ·Á °¡ °¢ Çà¿¡ ºÐÇÒÇØ °ÅµÎµµ·Ï(µíÀÌ) ½ÃµµµË´Ï´Ù.
View
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä |
Ŭ·¡½º javax.swing.text. FlowView À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
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 ()
Ç÷οì(flow)ÀÇ ¾ÆÀÌ¿¡ »ó´çÇÏ´Â ÇàÀ» º¸°ü À¯ÁöÇϴµ¥ »ç¿ëÇÏ´Â 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)
ÁöÁ¤µÈ ¾ÆÀÌÀÇ À妽º¿¡ ¹ÝÇØ Ç÷οì(flow) ÇÏ´Â Á¦¾à ½ºÆÒÀ» ²¨³À´Ï´Ù. |
int |
getFlowStart (int index)
Ç÷οì(flow) ½ºÆÒÀ» °³½ÃÇÏ´Â Ç÷οì(flow) ÃàÀ¸·Î µû¸¥ À§Ä¡¸¦ ²¨³À´Ï´Ù. |
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)
ÁöÁ¤µÈ Ç¥Çö Ç¥¸é°ú ±× area¸¦ »ç¿ëÇØ Ç¥Çö ÇÕ´Ï´Ù. |
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 |
Ŭ·¡½º 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 , setParent |
Ŭ·¡½º 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
- ¸ðµ¨¿¡ÀÇ À§Ä¡a
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø areadirection
- SwingConstants.NORTH
¶Ç´Â SwingConstants.SOUTH
biasRet
- ÀÌ ¸Þ¼Òµå·Î È®ÀεǴ ¹ÙÀ̾¸¦ °¡Áö´Â ¹è¿b
- Position.Bias.Forward
¶Ç´Â Position.Bias.Backward
ÀÇ ¹ÙÀ̾ġ
BadLocationException
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
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø areadirection
- ´ÙÀ½ÀÇ °ªÀÇ ¾î¶² °ÍÀΰ¡. 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
¸¦ È£ÃâÇØ ¾ÆÀÌ ºäÀÇ ¹Ù¶÷Á÷ÇÑ ½ºÆÒÀ» °áÁ¤ÇÕ´Ï´Ù. ³í¸®ÀÚ ºä´Â ÅÇÀÇ Àü°³ ¹æ¹ýÀ» ÀνÄÇϰí ÀÖ´Â ´Ü¶ô¿¡ ´ëÇØ¼ ±× ÅÇ Àü°³¸¦ delegate ÇÕ´Ï´Ù. ±× ÅÇ Àü°³ÀÇ Çʿ伺À» ´Ü¶ô¿¡ delegate ÇÏ´Â ºä¿¡´Â LabelView
µîÀÌ ÀÖ½À´Ï´Ù.
ÀÌ ¸Þ¼Òµå¸¦ ±¸ÇöÇϸé(ÀÚ), ´Ü¶ô ¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®·Î TabSet
¸¦ ã¾Æ³»·Á°í ÇÕ´Ï´Ù. 1 kr ¹ß°ßµÇ¸é(ÀÚ) ±× ¼³Á¤ÀÌ »ç¿ëµÇ¾î ±× ÀÌ¿ÜÀÇ °æ¿ì¿¡´Â µðÆúÆ®ÀÇ Àü°³°¡ Á¦°øµË´Ï´Ù. ÅÇ Àü°³ÀÇ º£À̽º À§Ä¡´Â ´Ü¶ôÀÇ °¡Àå °¡±î¿î ÇÒ´çÀ¸·ÎºÎÅÍÀÇ ¿ÞÂÊ ÀÎ ¼¼Æ® (¾ÆÀÌÀÇ ¹èÄ¡ÀÇ ±âÁØ)ÀÔ´Ï´Ù.
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
·ÎºÎÅÍ °³½ÃÇÕ´Ï´Ù. ¾î´À ij¸¯Å͵µ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì´Â -1 ÀÌ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
string
- ij¸¯ÅÍ ¶óÀÎstart
- ¸ðµ¨³»ÀÇ °³½Ã À§Ä¡ >= 0
protected float getTabBase()
public void paint(Graphics g, Shape a)
BoxView
³»ÀÇ paint
g
- »ç¿ëÇϴ ǥÇö Ç¥¸éa
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø areaView.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 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.