|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.View | +--javax.swing.text.PlainView
ÆùÆ®¿Í »öÀÌ 1 Á¾·ù¾¿ÀÇ ÅØ½ºÆ®¸¦ Æ÷ÇÔÇÑ ´Ü¼øÇÑ º¹¼öÇà Å×Ű½ºÆ®ºä¸¦ À§Çؼ(¶§¹®¿¡), View ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÕ´Ï´Ù. ºä´Â ¾ÆÀÌ ¿ä¼Ò¸¦ °¢°¢ 1 ÇàÀÇ ÅØ½ºÆ®·Î ³ªÅ¸³À´Ï´Ù.
View
ÇʵåÀÇ °³¿ä | |
protected FontMetrics |
metrics
ÇöÀçÀÇ ÆùÆ®ÀÇ ÆùÆ®¸ÞÆ®¸¯½ºÀÔ´Ï´Ù. |
Ŭ·¡½º 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 |
»ý¼ºÀÚÀÇ °³¿ä | |
PlainView (Element elem)
¿ä¼Ò·Î ·¦ µÈ »õ·Î¿î PlainView ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
changedUpdate (DocumentEvent changes,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¼Ó¼ºÀÌ º¯°æµÈ °ÍÀ» ¹®¼·ÎºÎÅÍ ÅëÁöÇÕ´Ï´Ù. |
protected void |
damageLineRange (int line0,
int line1,
Shape a,
Component host)
ÁöÁ¤ÇÑ Çà ¹üÀ§¸¦ Ç¥Çö ´Ù½Ã ÇÕ´Ï´Ù. |
protected void |
drawLine (int lineIndex,
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 |
getPreferredSpan (int axis)
ÀÌ ºä¿¡ ÀûÀýÇÑ ½ºÆÒÀ» ÃàÀ¸·Î µû¶ó ÁöÁ¤ÇÕ´Ï´Ù. |
protected int |
getTabSize ()
¹®¼·Î ¼³Á¤µÈ ÅÇÀÇ »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
void |
insertUpdate (DocumentEvent changes,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¹®¼¿¡ ¹«¾ùÀΰ¡°¡ »ðÀÔµÈ °ÍÀ» ÅëÁöÇÕ´Ï´Ù. |
protected Rectangle |
lineToRect (Shape a,
int line)
ÁöÁ¤ÇÑ ÇàÀ» ³ªÅ¸³»´Â ±¸ÇüÀ» ÆÇº°ÇÕ´Ï´Ù. |
Shape |
modelToView (int pos,
Shape a,
Position.Bias b)
¹®¼ ¸ðµ¨ÀÇ ÁÂÇ¥ °ø°£À¸·ÎºÎÅÍ ºäÀÇ ÁÂÇ¥ °ø°£¿¡ÀÇ ¸ÅÇÎÀ» Á¦°øÇÕ´Ï´Ù. |
float |
nextTabStop (float x,
int tabOffset)
ÁöÁ¤µÈ ÂüÁ¶ À§Ä¡¿¡¼(º¸´Ù) ÈÄÀÇ ´ÙÀ½ÀÇ tab stop À§Ä¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
paint (Graphics g,
Shape a)
ÁöÁ¤µÈ Ç¥Çö Ç¥¸é°ú ±× area¸¦ »ç¿ëÇØ Ç¥Çö ÇÕ´Ï´Ù. |
void |
removeUpdate (DocumentEvent changes,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â ¹®¼³»ÀÇ À§Ä¡·ÎºÎÅÍ ¹«¾ùÀΰ¡°¡ »èÁ¦µÇ¾ú´Ù°í ÇÏ´Â °ÍÀ» ÅëÁöÇÕ´Ï´Ù. |
void |
setSize (float width,
float height)
ºäÀÇ »çÀÌÁ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
updateDamage (DocumentEvent changes,
Shape a,
ViewFactory f)
|
protected void |
updateMetrics ()
ÆùÆ®¸ÞÆ®¸¯½º¿Í ÃÖÀåÀÇ ¼±ÀÌ ÃÖ½ÅÀÏÁö ¾î¶³Áö¸¦ È®ÀÎÇÕ´Ï´Ù. |
int |
viewToModel (float fx,
float fy,
Shape a,
Position.Bias [] bias)
ºäÀÇ ÁÂÇ¥ °ø°£À¸·ÎºÎÅÍ ¸ðµ¨ÀÇ ³í¸® ÁÂÇ¥ °ø°£¿¡ÀÇ ¸ÅÇÎÀ» Á¦°øÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.text. View ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
append , breakView , createFragment , forwardUpdate , forwardUpdateToView , getAlignment , getAttributes , getBreakWeight , getChildAllocation , getContainer , getDocument , getElement , getEndOffset , getGraphics , getMaximumSpan , getMinimumSpan , getNextVisualPositionFrom , getParent , getResizeWeight , getStartOffset , getToolTipText , getView , getViewCount , getViewFactory , getViewIndex , getViewIndex , insert , isVisible , modelToView , modelToView , preferenceChanged , remove , removeAll , replace , setParent , updateChildren , updateLayout , viewToModel |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected FontMetrics metrics
»ý¼ºÀÚÀÇ »ó¼¼ |
public PlainView(Element elem)
elem
- ¿ä¼Ò¸Þ¼ÒµåÀÇ »ó¼¼ |
protected int getTabSize()
protected void drawLine(int lineIndex, Graphics g, int x, int y)
drawUnselectedText
¹× drawSelectedText
¸Þ¼Òµå¸¦ È£ÃâÇϱâ À§Çؼ(¶§¹®¿¡) ±¸ÇöµË´Ï´Ù.
lineIndex
- Ç¥Çö ÇÏ´Â Çà >= 0g
- Graphics
¹®¸Æ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
- ¸ðµ¨³»ÀÇ Á¾·á À§Ä¡ >= 0
BadLocationException
- ¹üÀ§°¡ ¹«È¿ÀÎ °æ¿ìprotected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException
g
- ±×·¡ÇȽº ¹®¸Æx
- °³½Ã X ÁÂÇ¥ >= 0y
- °³½Ã Y ÁÂÇ¥ >= 0p0
- ¸ðµ¨³»ÀÇ °³½Ã À§Ä¡ >= 0p1
- ¸ðµ¨³»ÀÇ Á¾·á À§Ä¡ >= 0
BadLocationException
- ¹üÀ§°¡ ¹«È¿ÀÎ °æ¿ìprotected final Segment getLineBuffer()
protected void updateMetrics()
public float getPreferredSpan(int axis)
View
³»ÀÇ getPreferredSpan
axis
- View.X_AXIS ¶Ç´Â View.Y_AXIS
IllegalArgumentException
- ÃàÀÌ ¹«È¿ÀÎ °æ¿ìView.getPreferredSpan(int)
public void paint(Graphics g, Shape a)
View
³»ÀÇ paint
g
- »ç¿ëÇϴ ǥÇö Ç¥¸éa
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø areaView.paint(java.awt.Graphics, java.awt.Shape)
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException
View
³»ÀÇ modelToView
pos
- º¯È¯ ´ë»óÀÇ À§Ä¡ >= 0a
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø areab
- À§Ä¡°¡ 2 °³ÀÇ ºäÀÇ °æ°èÀÎ °æ¿ì¿¡, ¿ÀÇÁ¼Â(offset)¿¡ ÀÇÇØ ³ªÅ¸³»Áö±â Á÷ÀüÀÇ Ä³¸¯ÅÍ ¶Ç´Â ´ÙÀ½ÀÇ Ä³¸¯ÅÍ¿¡ÀÇ ¹ÙÀ̾. b
ÀÇ °ªÀº ÀÌÇÏÀÇ ¾î¶² °ÍÀΰ¡Position.Bias.Forward
Position.Bias.Backward
BadLocationException
- ÁöÁ¤µÈ À§Ä¡°¡, °ü·ÃÇÏ´Â ¹®¼³»ÀÇ À¯È¿ÇÑ À§Ä¡¸¦ ³ªÅ¸³»Áö ¾Ê´Â °æ¿ìView.modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)
public int viewToModel(float fx, float fy, Shape a, Position.Bias [] bias)
View
³»ÀÇ viewToModel
fx
- X ÁÂÇ¥ >= 0fy
- Y ÁÂÇ¥ >= 0a
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø area
View.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])
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)
public void setSize(float width, float height)
View
³»ÀÇ setSize
width
- Æø >= 0height
- ³ôÀÌ>= 0public float nextTabStop(float x, int tabOffset)
TabExpander
³»ÀÇ nextTabStop
x
- ÇöÀç À§Ä¡ >= 0tabOffset
- ÅÇÀÌ ¹ß»ýÇÏ´Â ÅØ½ºÆ® ½ºÆ®¸²³»ÀÇ À§Ä¡ >= 0
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f)
protected void damageLineRange(int line0, int line1, Shape a, Component host)
host
- ºä¸¦ ¼ö¿ëÇÏ´Â ÄÄÆÛ³ÍÆ® (ÀçÇ¥ÇöÀÇ È£Ãâ¿¡ »ç¿ë)a
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ºä¿¡ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø arealine0
- ÀçÇ¥ÇöÀÇ °³½ÃÇà ¹øÈ£. ¸ðµ¨³»ÀÇ À¯È¿ÇÑ Çà ¹øÈ£°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. line1
- ÀçÇ¥ÇöÀÇ Á¾·áÇà ¹øÈ£. ¸ðµ¨³»ÀÇ À¯È¿ÇÑ Çà ¹øÈ£°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. protected Rectangle lineToRect(Shape a, int line)
a
- Ç¥Çö¸¦ À§Çؼ(¶§¹®¿¡) ºä¿¡ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø arealine
- ¹üÀ§ÀÇ °Ë»ö¿¡ »ç¿ëÇÏ´Â Çà ¹øÈ£. ¸ðµ¨³»ÀÇ À¯È¿ÇÑ Çà ¹øÈ£°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.
|
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.