|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.text.View
javax.swing.text.PlainView
public class 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)
ÁöÁ¤µÈ ·»´õ¸µ Ç¥¸é°ú ±× ¿µ¿ªÀ» »ç¿ëÇØ ·»´õ¸µ ÇÕ´Ï´Ù. |
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
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªView.paint(java.awt.Graphics, java.awt.Shape)
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException
View
³»ÀÇ modelToView
pos
- º¯È¯ ´ë»óÀÇ À§Ä¡ >= 0a
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªb
- À§°ªÀÌ 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
- ·»´õ¸µ¸¦ À§Çؼ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ª
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
- ·»´õ¸µ¸¦ À§Çؼ ºä¿¡ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªline0
- Àç·»´õ¸µÀÇ °³½ÃÇà ¹øÈ£. ¸ðµ¨³»ÀÇ À¯È¿ÇÑ Çà ¹øÈ£°¡ ¾Æ´Ï¸é ¾ÈµÇ´Âline1
- Àç·»´õ¸µÀÇ Á¾·áÇà ¹øÈ£. ¸ðµ¨³»ÀÇ À¯È¿ÇÑ Çà ¹øÈ£°¡ ¾Æ´Ï¸é ¾ÈµÇ´Âprotected Rectangle lineToRect(Shape a, int line)
a
- ·»´õ¸µ¸¦ À§Çؼ ºä¿¡ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ¿µ¿ªline
- ¹üÀ§ÀÇ °Ë»ö¿¡ »ç¿ëÇÏ´Â Çà ¹øÈ£. ¸ðµ¨³»ÀÇ À¯È¿ÇÑ Çà ¹øÈ£°¡ ¾Æ´Ï¸é ¾ÈµÇ´Â
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.