|
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
¾ÆÀ̸¦ ÀϺΠÁ¦¾àÀÌ ÀÖ´Â °ø°£¿¡ ´Ã¾î³õÀ¸·Á°í ÇÏ´Â ºäÀÔ´Ï´Ù. À̰ÍÀº ´Ü¶ô, ÆäÀÌÁöµîÀ» ±¸ÃàÇÒ °æ¿ì¿¡ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Ç÷οì(flow)¿¡´Â ´ÙÀ½ÀÇ ±â´ÉÀÌ ÀÖ½À´Ï´Ù.
View
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
static class |
FlowView.FlowStrategy
Ç÷οì(flow)ÀÇ ¹°¸®ÀûÀÎ ÆûÀ» À¯ÁöÇϱâ À§ÇÑ ¹æ¹ýÀÔ´Ï´Ù. |
ÇʵåÀÇ °³¿ä | |
protected View |
layoutPool
ÀÌ ºä°¡ ³ªÅ¸³»´Â ¿ä¼Ò (¹°¸®Àû ºä·Î º¯È¯ÇÏ´Â ³í¸® ºä)ÀÇ ¾ÆÀÌ ¿ä¼Ò¸¦ ³ªÅ¸³»´Â ºäÀÔ´Ï´Ù. |
protected int |
layoutSpan
Ç÷οì(flow)°¡ ÀÛ¼ºµÉ ¶§ÀÇ µðÆúÆ®ÀÇ Á¦¾àÀÔ´Ï´Ù. |
protected FlowView.FlowStrategy |
strategy
Ç÷οì(flow)¸¦ °è¼Ó °»½ÅÇÏ´Â µ¿ÀÛÀÔ´Ï´Ù. |
Ŭ·¡½º 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 |
»ý¼ºÀÚÀÇ °³¿ä | |
FlowView (Element elem,
int axis)
ÁöÁ¤µÈ ¿ä¼ÒÀÇ FlowView ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
protected SizeRequirements |
calculateMinorAxisRequirements (int axis,
SizeRequirements r)
ºÎÃàÀÇ ÇÊ¿ä »çÀÌÁ °è»êÇÕ´Ï´Ù. |
void |
changedUpdate (DocumentEvent changes,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¼Ó¼ºÀÌ º¯°æµÈ °ÍÀ» ¹®¼·ÎºÎÅÍ ÅëÁöÇÕ´Ï´Ù. |
protected abstract View |
createRow ()
Ç÷οì(flow)³»ÀÇ ¾ÆÀÌÀÇ ÇàÀ» º¸°ü À¯ÁöÇϱâ À§Çؼ »ç¿ëÇÏ´Â View ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
int |
getFlowAxis ()
°Å±â¿¡ µû¶ó ºä¸¦ Ç÷οì(flow) ÇÏ´Â ÃàÀ» ²¨³À´Ï´Ù. |
int |
getFlowSpan (int index)
ÁöÁ¤ÇÑ ¾ÆÀÌÀÇ À妽º°¡ Ç÷οì(flow) ÇÒ ¶§ÀÇ Á¦¾à ½ºÆÒÀ» ²¨³À´Ï´Ù. |
int |
getFlowStart (int index)
Ç÷οì(flow) ½ºÆÒÀ» °³½ÃÇÏ´Â Ç÷οì(flow) ÃàÀ¸·Î µû¸¥ Àå¼Ò¸¦ ²¨³À´Ï´Ù. |
protected int |
getViewIndexAtPosition (int pos)
¸ðµ¨³»ÀÇ ÁöÁ¤µÈ À§Ä¡¸¦ ³ªÅ¸³»´Â ¾ÆÀÌ ºäÀÇ À妽º¸¦ ²¨³À´Ï´Ù. |
void |
insertUpdate (DocumentEvent changes,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¹®¼¿¡ ¹«¾ùÀΰ¡°¡ »ðÀÔµÈ °ÍÀ» ÅëÁöÇÕ´Ï´Ù. |
protected void |
layout (int width,
int height)
¾ÆÀ̸¦ ¹èÄ¡ÇÕ´Ï´Ù. |
protected void |
loadChildren (ViewFactory f)
¾ÆÀ̸¦ ¸ðµÎ ·Îµå‚µ‚ĺ並 ÃʱâÈÇÕ´Ï´Ù. |
void |
removeUpdate (DocumentEvent changes,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â ¹®¼³»ÀÇ À§Ä¡·ÎºÎÅÍ ¹«¾ùÀΰ¡°¡ »èÁ¦µÇ¾ú´Ù°í ÇÏ´Â °ÍÀ» ÅëÁöÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.text. BoxView ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
baselineLayout , baselineRequirements , calculateMajorAxisRequirements , childAllocation , flipEastAndWestAtEnds , forwardUpdate , getAlignment , getAxis , getChildAllocation , getHeight , getMaximumSpan , getMinimumSpan , getOffset , getPreferredSpan , getResizeWeight , getSpan , getViewAtPoint , getWidth , isAfter , isAllocationValid , isBefore , isLayoutValid , layoutChanged , layoutMajorAxis , layoutMinorAxis , modelToView , paint , paintChild , preferenceChanged , replace , setAxis , setSize , viewToModel |
Ŭ·¡½º javax.swing.text. CompositeView ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getBottomInset , getInsideAllocation , getLeftInset , getNextEastWestVisualPositionFrom , getNextNorthSouthVisualPositionFrom , 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 layoutSpan
protected View layoutPool
protected FlowView.FlowStrategy strategy
»ý¼ºÀÚÀÇ »ó¼¼ |
public FlowView(Element elem, int axis)
elem
- ÀÌ ºä°¡ Ãë±ÞÇÏ´Â ¿ä¼Òaxis
- View.X_AXIS ¶Ç´Â View.Y_AXIS¸Þ¼ÒµåÀÇ »ó¼¼ |
public int getFlowAxis()
FlowStrategy
°¡ »ç¿ëÇÕ´Ï´Ù.
public int getFlowSpan(int index)
index
- °»½ÅÁßÀÇ ÇàÀÇ À妽º. 0 ÀÌ»óÀ¸·Î getViewCount()º¸´Ù ÀÛÀº °ªÀÎ °ÍgetFlowStart(int)
public int getFlowStart(int index)
index
- °»½ÅÁßÀÇ ÇàÀÇ À妽º. 0 ÀÌ»óÀ¸·Î getViewCount()º¸´Ù ÀÛÀº °ªÀÎ °ÍgetFlowSpan(int)
protected abstract View createRow()
protected void loadChildren(ViewFactory f)
setParent
¸Þ¼Òµå¿¡ ÀÇÇØ ºÒ·Á °©´Ï´Ù. ÀÌ ¸Þ¼Òµå¸¦ À籸ÇöÇϸé(ÀÚ), ¾î´À ¾ÆÀ̵µ (¼½Ä ¼³Á¤ÀÇ ÇÁ·Î¼¼½º·Î ÀÛ¼ºµÇ¹Ç·Î) Á÷Á¢ ·ÎµåÇÏÁö ¾Ê°Ô ÇÒ ¼ö ÀÖ½À´Ï´Ù. layoutPool º¯¼ö°¡ null ÀÇ °æ¿ì, LogicalView ÀÇ ÀνºÅϽº°¡ »ý¼ºµÇ¾î ¼½Ä ¼³Á¤ÀÇ ÇÁ·Î¼¼½º·Î »ç¿ëµÇ´Â ³í¸® ºä¸¦ ³ªÅ¸³À´Ï´Ù.
CompositeView
³»ÀÇ loadChildren
f
- ºäÆÄũƮ¸®CompositeView.setParent(javax.swing.text.View)
protected int getViewIndexAtPosition(int pos)
CompositeView
³»ÀÇ getViewIndexAtPosition
pos
- À§Ä¡ >= 0
protected void layout(int width, int height)
BoxView
³»ÀÇ layout
width
- ¹èÄ¡ÇÏ´Â Æø >= 0. ÀÎ ¼¼Æ® ¿µ¿ª³»ºÎÀÇ Æøheight
- ¹èÄ¡ÇÏ´Â ³ôÀÌ >= 0. ÀÎ ¼¼Æ® ¿µ¿ª³»ºÎÀÇ ³ôÀÌprotected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r)
BoxView
³»ÀÇ calculateMinorAxisRequirements
axis
- Á¶»çÁßÀÇ Ãàr
- SizeRequirements
¿ÀºêÁ§Æ®. null
ÀÇ °æ¿ì, 1 kr ÀÛ¼ºµÈ´Ù
SizeRequirements
¿ÀºêÁ§Æ®SizeRequirements
public void insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)
View
³»ÀÇ insertUpdate
changes
- °ü·ÃÇÏ´Â ¹®¼·ÎºÎÅÍÀÇ º¯°æ Á¤º¸a
- ºäÀÇ ÇöÀçÀÇ ÇÒ´çf
- ºä°¡ ¾ÆÀ̸¦ °¡Áö´Â °æ¿ì¿¡ À籸Ãà¿¡ »ç¿ëÇÏ´Â ÆÑÅ丮View.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)
View
³»ÀÇ removeUpdate
changes
- °ü·ÃÇÏ´Â ¹®¼·ÎºÎÅÍÀÇ º¯°æ Á¤º¸a
- ºäÀÇ ÇöÀçÀÇ ÇÒ´çf
- ºä°¡ ¾ÆÀ̸¦ °¡Áö´Â °æ¿ì¿¡ À籸Ãà¿¡ »ç¿ëÇÏ´Â ÆÑÅ丮View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
View
³»ÀÇ 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.