|
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.WrappedPlainView
Çà ¹ÝȯÀ» ½Ç½ÃÇÏ´Â plaintext (ÆùÆ® ¹× »öÀÌ 1 Á¾·ù¾¿ÀÇ ÅØ½ºÆ®)ÀÇ ºäÀÔ´Ï´Ù. ÀÌ ºä¿¡´Â °ü·ÃÇÏ´Â ¿ä¼Ò¿¡, ·¦ ÇØ¾ß ÇÏ´Â ÇàÀ» ³ªÅ¸³»´Â ¾ÆÀÌ ¿ä¼Ò°¡ ÀÖÀ» °ÍÀÔ´Ï´Ù. À̰ÍÀº ³í¸®Çà ºä¸¦ Æ÷ÇÔÇÑ ¼öÁ÷ ¹Ú½º·Î¼ ±¸ÇöµË´Ï´Ù. ³í¸®Çà ºä´Â ³í¸®ÇàÀÌ ÇÒ´ç¿¡ µé¾î°¡Áö ¾Ê´Â °æ¿ì¿¡ ³í¸®ÇàÀ» º¹¼öÀÇ ¹°¸®ÇàÀ¸·Î¼ Ç¥Çö ÇÏ´Â »óÀÚÀÇ Å¬·¡½ºÀÔ´Ï´Ù. Çà ºä´Â ±× »óÅÂÀÇ ¿ÜºÎ Ŭ·¡½º¿¡¼ Ç¥Çö ÇØ, ÇÊ¿äÇÑ ¸Þ¸ð¸®·®À» »è°¨ÇÕ´Ï´Ù.
Çà ºä´Â ¸ðµç Ç¥Çö¸¦ drawLine
¸Þ¼Òµå¸¦ °³ÀÔ½ÃÄÑ ½Ç½ÃÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ¸ðµç Ç¥Çö¸¦ drawSelectedText
¹× drawUnselectedText
¸Þ¼Òµå¸¦ °³ÀÔ½ÃÄÑ ½Ç½ÃÇÕ´Ï´Ù. À̰ÍÀº ¼ºê Ŭ·¡½º°¡ ·¹À̾ƿôÀ» °í·ÁÇÏ´Â ÀÏ ¾øÀÌ Ç¥Çö¸¦ ¿ëÀÌÇÏ°Ô Æ¯¼öÈ ÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù.
View
ÇʵåÀÇ °³¿ä |
Ŭ·¡½º 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 |
»ý¼ºÀÚÀÇ °³¿ä | |
WrappedPlainView (Element elem)
»õ·Î¿î WrappedPlainView ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
WrappedPlainView (Element elem,
boolean wordWrap)
»õ·Î¿î WrappedPlainView ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
protected int |
calculateBreakPosition (int p0,
int p1)
ÀÌ ¸Þ¼Òµå´Â »óÀÚÀÇ ·¦ µÈ Çà ºä¿¡ ÀÇÇØ ºÐÇÒ À§Ä¡¸¦ ÁöÁ¤Çϱâ À§Çؼ ºÒ·Á °©´Ï´Ù. |
void |
changedUpdate (DocumentEvent e,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¼Ó¼ºÀÌ º¯°æµÈ °ÍÀ» ¹®¼·ÎºÎÅÍ ÅëÁöÇÕ´Ï´Ù. |
protected void |
drawLine (int p0,
int p1,
Graphics g,
int x,
int y)
¸»¹ÌÀÇ margin¸¦ »èÁ¦ÇØ, ÅÇÀ» È®ÀåÇϸé¼, 1 ÇàÀÇ ÅØ½ºÆ®¸¦ Ç¥Çö ÇÕ´Ï´Ù. |
protected int |
drawSelectedText (Graphics g,
int x,
int y,
int p0,
int p1)
¸ðµ¨³»ÀÇ ÁöÁ¤µÈ ¹üÀ§¸¦, ¼±ÅÃµÈ ÅØ½ºÆ®·Î¼ Ç¥Çö ÇÕ´Ï´Ù. |
protected int |
drawUnselectedText (Graphics g,
int x,
int y,
int p0,
int p1)
¸ðµ¨³»ÀÇ ÁöÁ¤µÈ ¹üÀ§¸¦ Åë»óÀÇ ¼±ÅõǾî ÀÖÁö ¾ÊÀº ÅØ½ºÆ®·Î¼ Ç¥Çö ÇÕ´Ï´Ù. |
protected Segment |
getLineBuffer ()
°ü·ÃÇÏ´Â ¹®¼·ÎºÎÅÍ ÅØ½ºÆ®¸¦ ÃëµæÇϱâ À§Çؼ »ç¿ëÇÒ ¼ö ÀÖ´Â ¹öÆÛ¿¡ÀÇ ¾×¼¼½º¸¦ Á¦°øÇÕ´Ï´Ù. |
float |
getMaximumSpan (int axis)
ÀÌ ºäÀÇ ÃàÀ¸·Î µû¸¥ ÃÖ´ë ½ºÆÒÀ» ÆÇÁ¤ÇÕ´Ï´Ù. |
float |
getMinimumSpan (int axis)
ÀÌ ºäÀÇ ÃàÀ¸·Î µû¸¥ ÃÖ¼Ò ½ºÆÒÀ» ÆÇÁ¤ÇÕ´Ï´Ù. |
float |
getPreferredSpan (int axis)
ÀÌ ºäÀÇ ÃàÀ¸·Î µû¸¥ ¹Ù¶÷Á÷ÇÑ ½ºÆÒÀ» ÆÇÁ¤ÇÕ´Ï´Ù. |
protected int |
getTabSize ()
¹®¼·Î ¼³Á¤µÈ ÅÇÀÇ »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
void |
insertUpdate (DocumentEvent e,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¹®¼¿¡ ¹«¾ùÀΰ¡°¡ »ðÀÔµÈ °ÍÀ» ÅëÁöÇÕ´Ï´Ù. |
protected void |
loadChildren (ViewFactory f)
ºä¸¦ ÃʱâÈÇϱâ À§Çؼ ¸ðµç ¾ÆÀ̸¦ ·ÎµåÇÕ´Ï´Ù. |
float |
nextTabStop (float x,
int tabOffset)
ÁöÁ¤µÈ ÂüÁ¶ À§Ä¡¿¡¼(º¸´Ù) ÈÄÀÇ ´ÙÀ½ÀÇ tab stop À§Ä¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
paint (Graphics g,
Shape a)
ÁöÁ¤µÈ Ç¥Çö Ç¥¸é°ú ±× area¸¦ »ç¿ëÇØ Ç¥Çö ÇÕ´Ï´Ù. |
void |
removeUpdate (DocumentEvent e,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¹®¼·ÎºÎÅÍ ¹«¾ùÀΰ¡°¡ »èÁ¦µÈ °ÍÀ» ÅëÁöÇÕ´Ï´Ù. |
void |
setSize (float width,
float height)
ºäÀÇ »çÀÌÁ ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.text. BoxView ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
baselineLayout , baselineRequirements , calculateMajorAxisRequirements , calculateMinorAxisRequirements , childAllocation , flipEastAndWestAtEnds , forwardUpdate , getAlignment , getAxis , getChildAllocation , getHeight , getOffset , getResizeWeight , getSpan , getViewAtPoint , getWidth , isAfter , isAllocationValid , isBefore , isLayoutValid , layout , layoutChanged , layoutMajorAxis , layoutMinorAxis , modelToView , paintChild , preferenceChanged , replace , setAxis , viewToModel |
Ŭ·¡½º javax.swing.text. CompositeView ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getBottomInset , getInsideAllocation , getLeftInset , getNextEastWestVisualPositionFrom , getNextNorthSouthVisualPositionFrom , getNextVisualPositionFrom , getRightInset , getTopInset , getView , getViewAtPosition , getViewCount , getViewIndex , getViewIndexAtPosition , 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 |
»ý¼ºÀÚÀÇ »ó¼¼ |
public WrappedPlainView(Element elem)
elem
- ºä ¾ÕÀ¸·Î µÇ´Â ¿ä¼Òpublic WrappedPlainView(Element elem, boolean wordWrap)
elem
- ºä ¾ÕÀ¸·Î µÇ´Â ¿ä¼ÒwordWrap
- ÇàÀÌ ¿öµå °æ°è¿¡¼ ·¦ µÉÁö ¾î¶³Áö¸Þ¼ÒµåÀÇ »ó¼¼ |
protected int getTabSize()
protected void drawLine(int p0, int p1, Graphics g, int x, int y)
drawUnselectedText
¹× drawSelectedText
¸Þ¼Òµå¸¦ È£ÃâÇϱâ À§Çؼ(¶§¹®¿¡) ±¸ÇöµË´Ï´Ù.
p0
- »ç¿ëÇÏ´Â °³½Ã ¹®¼ÀÇ À§Ä¡ >= 0p1
- »ç¿ëÇÏ´Â Á¾·á ¹®¼ÀÇ À§Ä¡ >= p1g
- ±×·¡ÇȽº ¹®¸Æx
- °³½Ã X À§Ä¡ >= 0y
- °³½Ã Y À§Ä¡ >= 0drawUnselectedText(java.awt.Graphics, int, int, int, int)
,
drawSelectedText(java.awt.Graphics, int, int, int, int)
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException
g
- ±×·¡ÇȽº ¹®¸Æx
- °³½Ã X ÁÂÇ¥ >= 0y
- °³½Ã Y ÁÂÇ¥ >= 0p0
- ¸ðµ¨³»ÀÇ °³½Ã À§Ä¡ >= 0p1
- ¸ðµ¨³»ÀÇ Á¾·á À§Ä¡ >= p0
BadLocationException
- ¹üÀ§°¡ ¹«È¿ÀÎ °æ¿ìprotected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException
g
- ±×·¡ÇȽº ¹®¸Æx
- °³½Ã X ÁÂÇ¥ >= 0y
- °³½Ã Y ÁÂÇ¥ >= 0p0
- ¸ðµ¨³»ÀÇ °³½Ã À§Ä¡ >= 0p1
- ¸ðµ¨³»ÀÇ Á¾·á À§Ä¡ >= p0
BadLocationException
- ¹üÀ§°¡ ¹«È¿ÀÎ °æ¿ìprotected final Segment getLineBuffer()
protected int calculateBreakPosition(int p0, int p1)
protected void loadChildren(ViewFactory f)
setParent
¸Þ¼Òµå¿¡ ÀÇÇØ ºÒ·Á °©´Ï´Ù. ¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼Òµå¸¦ À籸ÇöÇØ ´Ù¸¥ ¹æ¹ýÀ¸·Î ¾ÆÀÌ ºä¸¦ ÃʱâÈÇÒ ¼ö ÀÖ½À´Ï´Ù. µðÆúÆ®ÀÇ ±¸ÇöÀº ¾ÆÀÌ ¿ä¼Ò ¸¶´Ù ¾ÆÀÌ ºä¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
CompositeView
³»ÀÇ loadChildren
f
- ºäÆÄũƮ¸®CompositeView.setParent(javax.swing.text.View)
public float nextTabStop(float x, int tabOffset)
TabExpander
³»ÀÇ nextTabStop
x
- ÇöÀç À§Ä¡ >= 0tabOffset
- ÅÇÀÌ ¹ß»ýÇÏ´Â ÅØ½ºÆ® ½ºÆ®¸²³»ÀÇ À§Ä¡ >= 0
public void paint(Graphics g, Shape a)
BoxView
³»ÀÇ paint
g
- »ç¿ëÇϴ ǥÇö Ç¥¸éa
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø areaView.paint(java.awt.Graphics, java.awt.Shape)
public void setSize(float width, float height)
BoxView
³»ÀÇ setSize
width
- Æø >= 0height
- ³ôÀÌ>= 0public float getPreferredSpan(int axis)
BoxView
³»ÀÇ getPreferredSpan
axis
- View.X_AXIS ¶Ç´Â View.Y_AXIS
View.getPreferredSpan(int)
public float getMinimumSpan(int axis)
BoxView
³»ÀÇ getMinimumSpan
axis
- View.X_AXIS ¶Ç´Â View.Y_AXIS
View.getMinimumSpan(int)
public float getMaximumSpan(int axis)
BoxView
³»ÀÇ getMaximumSpan
axis
- View.X_AXIS ¶Ç´Â View.Y_AXIS
View.getMaximumSpan(int)
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
View
³»ÀÇ insertUpdate
e
- °ü·ÃÇÏ´Â ¹®¼·ÎºÎÅÍÀÇ º¯°æ Á¤º¸a
- ºäÀÇ ÇöÀçÀÇ ÇÒ´çf
- ºä°¡ ¾ÆÀ̸¦ °¡Áö´Â °æ¿ì¿¡ À籸Ãà¿¡ »ç¿ëÇÏ´Â ÆÑÅ丮View.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
View
³»ÀÇ removeUpdate
e
- °ü·ÃÇÏ´Â ¹®¼·ÎºÎÅÍÀÇ º¯°æ Á¤º¸a
- ºäÀÇ ÇöÀçÀÇ ÇÒ´çf
- ºä°¡ ¾ÆÀ̸¦ °¡Áö´Â °æ¿ì¿¡ À籸Ãà¿¡ »ç¿ëÇÏ´Â ÆÑÅ丮View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
View
³»ÀÇ changedUpdate
e
- °ü·ÃÇÏ´Â ¹®¼·ÎºÎÅÍÀÇ º¯°æ Á¤º¸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.