JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.text
Ŭ·¡½º StyledEditorKit.ForegroundAction

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.AbstractAction 
      »óÀ§¸¦ È®Àå javax.swing.text.TextAction 
          »óÀ§¸¦ È®Àå javax.swing.text.StyledEditorKit.StyledTextAction 
              »óÀ§¸¦ È®Àå javax.swing.text.StyledEditorKit.ForegroundAction
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
ActionListener, Serializable, Cloneable, EventListener, Action
Æ÷ÇԵǾî Àִ Ŭ·¡½º:
StyledEditorKit

public static class StyledEditorKit.ForegroundAction
extends StyledEditorKit.StyledTextAction

foreground Ä÷¯¸¦ ¼³Á¤ÇÏ´Â ¾×¼ÇÀÔ´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ Å¸°Ù JEditorPane ÇöÀç ¼±Åõǰí ÀÖ´Â ¹üÀ§¿¡ À־ÀÇ StyleConstants.Foreground ¼Ó¼ºÀÌ ¼³Á¤µË´Ï´Ù. ÀÌ Ã³¸®´Â Ÿ°Ù JEditorPane¿¡ °ü·ÃµÈ ¼­½Ä ÷ºÎ ¹®¼­»ó¿¡¼­ StyledDocument.setCharacterAttributes¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î ½ÇÇàµË´Ï´Ù.

Ÿ°ÙÀÇ ÅؽºÆ® ÄÄÆÛ³ÍÆ®°¡ ActionEvent ¼Ò½º·Î¼­ ÁöÁ¤µÇ¾î ¶Ç Ä¿¸àµå ij¸¯ÅÍ ¶óÀÎÀÌ Á¸ÀçÇÏ´Â °æ¿ì, ±× Ä¿¸àµå ij¸¯ÅÍ ¶óÀÎÀº foreground Ä÷¯·Î¼­ Çؼ®µË´Ï´Ù. Ä¿¸àµå ij¸¯ÅÍ ¶óÀÎÀº ºÒ·Á °£ Color.decode¿¡ ÀÇÇØ Çؼ®µÇ±â ¶§¹®¿¡ Color.decode ¸Þ¼­µåÀÇ ÀûÁ¤ÇÑ ÀԷ°ªÀÌ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ Áö¿øÀº ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü 1.4 ÀÌÈÄ, ¸ðµç JavaBeans Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº java.beans ÆÐÅ°Áö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦ ÂüÁ¶ÇϽʽÿÀ.


ÇÊµå °³¿ä
 
Ŭ·¡½º javax.swing. AbstractAction ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
changeSupport, enabled
 
ÀÎÅÍÆäÀ̽º javax.swing. Action ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
»ý¼ºÀÚ °³¿ä
StyledEditorKit.ForegroundAction (String  nm, Color  fg)
          »õ·Î¿î ForegroundAction¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 void actionPerformed (ActionEvent  e)
          foreground Ä÷¯¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.swing.text. StyledEditorKit.StyledTextAction ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
 
Ŭ·¡½º javax.swing.text. TextAction ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
augmentList, getFocusedComponent, getTextComponent
 
Ŭ·¡½º javax.swing. AbstractAction ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

StyledEditorKit.ForegroundAction

public StyledEditorKit.ForegroundAction(String  nm,
                                        Color  fg)
»õ·Î¿î ForegroundAction¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
nm - ¾×¼Ç¸í
fg - foreground Ä÷¯
¸Þ¼­µåÀÇ »ó¼¼

actionPerformed

public void actionPerformed(ActionEvent  e)
foreground Ä÷¯¸¦ ¼³Á¤ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
e - ¾×¼Ç À̺¥Æ®

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.