|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.View | +--javax.swing.text.GlyphView | +--javax.swing.text.LabelView
LabelView
´Â ÅØ½ºÆ® ¸ðµ¨ÀÇ ¿ä¼Ò»ó¿¡ ¸ÅÇÎ µÈ ºä¸¦ ³ªÅ¸³»´Â ÅØ½ºÆ®ÀÇ ¼½Ä ÷ºÎ üũÀÔ´Ï´Ù. Ç¥Çö¿¡ »ç¿ëµÇ´Â ij¸¯ÅÍ ·¹º§ÀÇ ¼Ó¼ºÀ» ij½¬¿¡ ±âÀÔÇÕ´Ï´Ù.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä |
Ŭ·¡½º javax.swing.text. GlyphView À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
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 ()
±Û¸®ÇÁ(glyph)ÀÇ Ç¥Çö¿¡ »ç¿ëÇÏ´Â ¹é±×¶ó¿îµå Ä®¶ó¸¦ ²¨³À´Ï´Ù. |
Font |
getFont ()
±Û¸®ÇÁ(glyph)ÀÇ º£À̽º°¡ µÇ´Â ÆùÆ®¸¦ ²¨³À´Ï´Ù. |
protected FontMetrics |
getFontMetrics ()
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. FontMetrics ´Â Java2 SDK ·Î ½ÇÇàÇÏ´Â °æ¿ì´Â ±Û¸®ÇÁ(glyph) Ç¥Çö¿¡´Â »ç¿ëµÇÁö ¾Ê½À´Ï´Ù. |
Color |
getForeground ()
±Û¸®ÇÁ(glyph)ÀÇ Ç¥Çö¿¡ »ç¿ëÇÏ´Â foreground Ä®¶ó¸¦ ²¨³À´Ï´Ù. |
boolean |
isStrikeThrough ()
±Û¸®ÇÁ(glyph)°¡ Ãë¼ÒÇØ ¼±À» °¡Áú±î ȵµÀÎÁö¸¦ °áÁ¤ÇÕ´Ï´Ù. |
boolean |
isSubscript ()
±Û¸®ÇÁ(glyph)¸¦ ½´ÆÛ ½ºÅ©¸³Æ®·Î¼ Ç¥Çö ÇÒÁö ¾î¶³Áö¸¦ °áÁ¤ÇÕ´Ï´Ù |
boolean |
isSuperscript ()
±Û¸®ÇÁ(glyph)¸¦ ÷Àڷμ Ç¥Çö ÇÒÁö ¾î¶³Áö¸¦ °áÁ¤ÇÕ´Ï´Ù ÀÌ ÇÁ·ÎÆÛƼ¸¦ ¿ä±¸ÇÒ ¶§, Element ÀÇ AttributeSet ¶ó°í ÇÏ´Â ÇÁ·ÎÆÛƼ·Î,LabelView »óŰ¡ µ¿±â ´Ù½Ã ÇÕ´Ï´Ù. |
boolean |
isUnderline ()
±Û¸®ÇÁ(glyph)¿¡ ¹ØÁÙÀ» ºÙÀÏÁö ¾î¶³Áö¸¦ ÆÇº°ÇÕ´Ï´Ù. |
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)
isStrikeThrough()
protected void setSuperscript(boolean s)
isSuperscript()
protected void setSubscript(boolean s)
isSubscript()
protected void setPropertiesFromAttributes()
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 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.