|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjavax.swing.text.View
javax.swing.text.GlyphView
javax.swing.text.LabelView
public class LabelView
LabelView´Â
ÅØ½ºÆ® ¸ðµ¨ÀÇ ¿ä¼Ò»ó¿¡ ¸ÅÇÎ µÈ ºä¸¦ ³ªÅ¸³»´Â ÅØ½ºÆ®ÀÇ ¼½Ä ÷ºÎ üũÀÔ´Ï´Ù. ·»´õ¸µ¿¡ »ç¿ëµÇ´Â ¹®ÀÚ ·¹º§ÀÇ ¼Ó¼ºÀ» ij½¬¿¡ Ãâ·ÂÇÕ´Ï´Ù.
| Áßø(Nested) Ŭ·¡½º °³¿ä |
|---|
| Ŭ·¡½º javax.swing.text. GlyphView ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
|---|
GlyphView.GlyphPainter |
| ÇÊµå °³¿ä |
|---|
| Ŭ·¡½º 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 |
| »ý¼ºÀÚ °³¿ä | |
|---|---|
LabelView (Element elem)
¿ä¼Ò¿¡ ·¦ µÈ »õ·Î¿î ºä¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
| ¸Þ¼µå °³¿ä | |
|---|---|
void |
changedUpdate (DocumentEvent e,
Shape a,
ViewFactory f)
ÀÌ ºä°¡ Ãë±ÞÇÏ´Â À§Ä¡¿¡¼ ¼Ó¼ºÀÌ º¯°æµÈ °ÍÀ» ¹®¼·ÎºÎÅÍ ÅëÁöÇÕ´Ï´Ù. |
Color |
getBackground ()
±×·¡ÇÁ ÀÇ ·»´õ¸µ¿¡ »ç¿ëÇÏ´Â ¹é±×¶ó¿îµå Ä÷¯¸¦ ²¨³À´Ï´Ù. |
Font |
getFont ()
±×·¡ÇÁ ÀÇ º£À̽º°¡ µÇ´Â ÆùÆ®¸¦ ²¨³À´Ï´Ù. |
protected FontMetrics |
getFontMetrics ()
ÃßõÇÏÁö ¾Ê½À´Ï´Ù. FontMetrics´Â Java2 SDK ·Î ½ÇÇàÇÏ´Â °æ¿ì´Â ±×·¡ÇÁ ·»´õ¸µ¿¡´Â »ç¿ëµÇÁö ¾Ê½À´Ï´Ù. |
Color |
getForeground ()
±×·¡ÇÁ ÀÇ ·»´õ¸µ¿¡ »ç¿ëÇÏ´Â foreground Ä÷¯¸¦ ²¨³À´Ï´Ù. |
boolean |
isStrikeThrough ()
±×·¡ÇÁ°¡ Ãë¼ÒÇØ ¼±À» °¡Áú±î ȵµÀÎÁö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
boolean |
isSubscript ()
±×·¡ÇÁ¸¦ ½´ÆÛ ½ºÅ©¸³Æ®·Î¼ ·»´õ¸µ ÇÒÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
boolean |
isSuperscript ()
±×·¡ÇÁ¸¦ ÷Àڷμ ·»´õ¸µ ÇÒÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
boolean |
isUnderline ()
±×·¡ÇÁ¿¡ ¹ØÁÙÀ» ºÙÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
protected void |
setBackground (Color bg)
ºäÀÇ ¹é±×¶ó¿îµå Ä÷¯¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setPropertiesFromAttributes ()
ij½¬¿¡ Ãâ·ÂÇØÁø ÇÁ·ÎÆÛƼ¸¦ ¼Ó¼ºÀ¸·ÎºÎÅÍ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setStrikeThrough (boolean s)
ºä¿¡ Ãë¼ÒÇØ ¼±À» ºÙÀÏÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setSubscript (boolean s)
ºä°¡ ÷ÀÚ¸¦ ³ªÅ¸³¾Áö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setSuperscript (boolean s)
ºä°¡ ½´ÆÛ ½ºÅ©¸³Æ®¸¦ ³ªÅ¸³¾Áö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setUnderline (boolean u)
ºä¿¡ ¹ØÁÙÀ» ºÙÀÏÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
| Ŭ·¡½º javax.swing.text. GlyphView ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
breakView,
checkPainter,
clone,
createFragment,
getAlignment,
getBreakWeight,
getEndOffset,
getGlyphPainter,
getNextVisualPositionFrom,
getPartialSpan,
getPreferredSpan,
getStartOffset,
getTabbedSpan,
getTabExpander,
getText,
insertUpdate,
modelToView,
paint,
removeUpdate,
setGlyphPainter,
viewToModel |
| Ŭ·¡½º javax.swing.text. View ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
append,
forwardUpdate,
forwardUpdateToView,
getAttributes,
getChildAllocation,
getContainer,
getDocument,
getElement,
getGraphics,
getMaximumSpan,
getMinimumSpan,
getParent,
getResizeWeight,
getToolTipText,
getView,
getViewCount,
getViewFactory,
getViewIndex,
getViewIndex,
insert,
isVisible,
modelToView,
modelToView,
preferenceChanged,
remove,
removeAll,
replace,
setParent,
setSize,
updateChildren,
updateLayout,
viewToModel |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| ÀÎÅÍÆäÀ̽º javax.swing.text. TabableView ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
getPartialSpan,
getTabbedSpan |
| »ý¼ºÀÚ »ó¼¼ |
|---|
public LabelView(Element elem)
elem - ¿ä¼Ò| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
protected void setUnderline(boolean u)
u - ºä¿¡ ¹ØÁÙÀÌ ºÙ¾î ÀÖ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falseisUnderline() protected void setStrikeThrough(boolean s)
s - ºä¿¡ Ãë¼ÒÇØ ¼±ÀÌ ºÙ¾î ÀÖ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falseisStrikeThrough() protected void setSuperscript(boolean s)
s - ºä°¡ ½´ÆÛ ½ºÅ©¸³Æ®¸¦ ³ªÅ¸³»´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falseisSuperscript() protected void setSubscript(boolean s)
s - ºä°¡ ÷ÀÚ¸¦ ³ªÅ¸³»´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falseisSubscript() protected void setBackground(Color bg)
View
±¸¼ºÀÇ ÀÏȯÀ¸·Î¼ È£ÃâÇÕ´Ï´Ù. ¹é±×¶ó¿îµå Ä÷¯¸¦ Ä¿½ºÅ͸¶ÀÌÁî ÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì´Â setPropertiesFromAttributes¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ÀÌ ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. °ª nullÀº
¹é±×¶ó¿îµå°¡ ·»´õ¸µ µÇÁö ¾Ê´Â °ÍÀ» ³ªÅ¸³»±â ¶§¹®¿¡
Ä£ View
¹é±×¶ó¿îµå°¡ ºñÃÄ º¸ÀÌ°Ô µË´Ï´Ù.
bg - ¹é±×¶ó¿îµå Ä÷¯, ¶Ç´Â nullsetPropertiesFromAttributes() protected void setPropertiesFromAttributes()
@Deprecated protected FontMetrics getFontMetrics()
FontMetrics¸¦ ²¨³À´Ï´Ù.
public Color getBackground()
nullÀÌ µË´Ï´Ù.
GlyphView ³»ÀÇ getBackground public Color getForeground()
nullÀÌ µË´Ï´Ù.
GlyphView ³»ÀÇ getForeground public Font getFont()
GlyphView ³»ÀÇ getFont public boolean isUnderline()
ÀÌ ÇÁ·ÎÆÛƼ¸¦ ¿ä±¸ÇÒ ¶§, Element
AttributeSet ¶ó°í ÇÏ´Â ÇÁ·ÎÆÛƼ·ÎLabelView »óŰ¡ µ¿±â ´Ù½Ã ÇÕ´Ï´Ù. Element
AttributeSet¿¡ ÀÌ ÇÁ·ÎÆÛƼ ¼¼Æ®°¡ ¾ø´Â °æ¿ì, false¿¡ µÇµ¹·ÁÁý´Ï´Ù.
GlyphView ³»ÀÇ isUnderline underline ÇÁ·ÎÆÛƼÀÇ °ªpublic boolean isStrikeThrough()
strikeThrough ÇÁ·ÎÆÛƼ¸¦ µ¹·ÁÁÖ±â À§Çؼ ±¸ÇöµË´Ï´Ù.
ÀÌ ÇÁ·ÎÆÛƼ¸¦ ¿ä±¸ÇÒ ¶§, Element
AttributeSet ¶ó°í ÇÏ´Â ÇÁ·ÎÆÛƼ·ÎLabelView »óŰ¡ µ¿±â ´Ù½Ã ÇÕ´Ï´Ù. Element
AttributeSet¿¡ ÀÌ ÇÁ·ÎÆÛƼ ¼¼Æ®°¡ ¾ø´Â °æ¿ì, false¿¡ µÇµ¹·ÁÁý´Ï´Ù.
GlyphView ³»ÀÇ isStrikeThrough strikeThrough ÇÁ·ÎÆÛƼÀÇ °ªpublic boolean isSubscript()
GlyphView ³»ÀÇ isSubscript ÀÌ ÇÁ·ÎÆÛƼ¸¦ ¿ä±¸ÇÒ ¶§, Element
AttributeSet ¶ó°í ÇÏ´Â ÇÁ·ÎÆÛƼ·ÎLabelView »óŰ¡ µ¿±â ´Ù½Ã ÇÕ´Ï´Ù. Element
AttributeSet¿¡ ÀÌ ÇÁ·ÎÆÛƼ ¼¼Æ®°¡ ¾ø´Â °æ¿ì, false¿¡ µÇµ¹·ÁÁý´Ï´Ù.
public boolean isSuperscript()
ÀÌ ÇÁ·ÎÆÛƼ¸¦ ¿ä±¸ÇÒ ¶§, Element
AttributeSet ¶ó°í ÇÏ´Â ÇÁ·ÎÆÛƼ·ÎLabelView »óŰ¡ µ¿±â ´Ù½Ã ÇÕ´Ï´Ù. Element
AttributeSet¿¡ ÀÌ ÇÁ·ÎÆÛƼ ¼¼Æ®°¡ ¾ø´Â °æ¿ì, false¿¡ µÇµ¹·ÁÁý´Ï´Ù.
GlyphView ³»ÀÇ isSuperscript superscript ÇÁ·ÎÆÛƼÀÇ °ª
public void changedUpdate(DocumentEvent e,
Shape a,
ViewFactory f)
GlyphView ³»ÀÇ changedUpdate e - °ü·ÃµÈ ¹®¼·ÎºÎÅÍÀÇ º¯°æ Á¤º¸a - ºäÀÇ ÇöÀçÀÇ ÇÒ´çf - ºä°¡ ÀÚ½ÄÀ» °¡Áö´Â °æ¿ì¿¡ À籸Ãà¿¡ »ç¿ëÇÏ´Â ÆÑÅ丮View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.