|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
public abstract class BasicLookAndFeel
Ç¥ÁØÀûÀÎ ±âÀú LookAndFeel Ŭ·¡½º¸¦ ±¸ÇöÇÕ´Ï´Ù. ÀÌ Å¬·¡½º·ÎºÎÅÍ, Ç¥ÁØÀûÀÎ µ¥½ºÅ©Å¾ÀÇ LookAndFeel Ŭ·¡½º (JLF, Mac, Windows µî)°¡ ÆÄ»ýÇÕ´Ï´Ù. ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº¸¦ Á÷Á¢ »ý¼ºÇÒ ¼ö ¾ø½À´Ï´Ù¸¸, UI °ü·Ã Ŭ·¡½ºÀÇ Basic Á¤ÀÇ´Â Á÷Á¢ ÀνºÅϽº »ý¼ºµË´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ÀÌÈÄ, ¸ðµç JavaBeans™
Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº
java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder
¸¦
ÂüÁ¶ÇϽʽÿÀ.
»ý¼ºÀÚ °³¿ä | |
---|---|
BasicLookAndFeel ()
|
¸Þ¼µå °³¿ä | |
---|---|
protected Action |
createAudioAction (Object key)
Action À»
¸®ÅÏÇÕ´Ï´Ù. |
protected ActionMap |
getAudioActionMap ()
ActionMap ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
UIDefaults |
getDefaults ()
Look & Feel °íÀ¯ÀÇ µðÆúÆ® Å×À̺íÀ» ÀÛ¼ºÇϱâ À§Çؼ UIManager.setLookAndFeel¿¡ ÀÇÇØ 1ȸ È£ÃâÇÕ´Ï´Ù. |
protected void |
initClassDefaults (UIDefaults table)
uiClassID¸¦ BasicComponentUI ¸ÅÇο¡ ÃʱâÈÇÕ´Ï´Ù. |
protected void |
initComponentDefaults (UIDefaults table)
|
void |
initialize ()
UIManager.setLookAndFeel´Â getDefaults()ÀÇ ÃÖÃÊÀÇ È£Ãâ (ÀϹÝÀûÀ¸·Î À¯ÀÏÇÑ È£Ãâ)Àü¿¡ ÀÌ ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
protected void |
initSystemColorDefaults (UIDefaults table)
SystemColor¸¦ µðÆúÆ® Å×ÀÌºí¿¡ ·ÎµåÇÕ´Ï´Ù. |
protected void |
loadSystemColors (UIDefaults table,
String [] systemColors,
boolean useNative)
À̰ÍÀÌ ³×ÀÌÆ¼ºêÀÎ Look & Feel ÀÎ °æ¿ì, ½Ã½ºÅÛ Ä÷¯ÀÇ ÇÁ·ÎÆÛƼÀÇ ÃʱⰪ ´Â SystemColor Á¤¼ö·Î µ¿ÀÏÇØÁý´Ï´Ù. |
protected void |
playSound (Action audioAction)
°Ç³×¹ÞÀº Action À»
Æ®¸®°Å ÇÒÁö ¾î¶³Áö¸¦ ÆÇ´ÜÇØ, ÇÊ¿äÇϸé, Action
actionPerformed ¸Þ¼µå¸¦ Æ®¸®°Å ÇÕ´Ï´Ù. |
void |
uninitialize ()
UIManager.setLookAndFeel´Â »õ·Î¿î µðÆúÆ®ÀÇ Look & Feel ·Î º¯°æÇϱâ Á÷Àü¿¡ ÀÌ ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public BasicLookAndFeel()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public UIDefaults getDefaults()
LookAndFeel
񃬣:
LookAndFeel
³»ÀÇ getDefaults
LookAndFeel.initialize()
,
LookAndFeel.uninitialize()
,
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
public void initialize()
LookAndFeel
³»ÀÇ initialize
LookAndFeel.uninitialize()
,
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
public void uninitialize()
LookAndFeel
³»ÀÇ uninitialize
LookAndFeel.initialize()
protected void initClassDefaults(UIDefaults table)
getDefaults()
protected void initSystemColorDefaults(UIDefaults table)
protected void loadSystemColors(UIDefaults table, String [] systemColors, boolean useNative)
systemColors
ÀμöÀÇ int Çü Ä÷¯Ä¡¸¦ »ç¿ëÇÕ´Ï´Ù.
protected void initComponentDefaults(UIDefaults table)
protected ActionMap getAudioActionMap()
ActionMap
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
ÀÌ ActionMap
¿¡´Â û°¢ ½ÅÈ£¸¦ ·»´õ¸µ ÇÏ´Â ±â´ÉÀ» Áý¾î ³ÖÀº Actions
°¡ Æ÷ÇԵ˴ϴÙ.
JComponent
UI
¶óÀÌÇÁ »çÀÌŬ³»ÀÇ ÀûÀýÇÑ ½Ã°£¿¡
ComponentUI´Â
ActionMap
·Î
ºÎÅÍ ÀûÀýÇÑ Action
À»
²¨³», ±×°ÍÀ» Action
¿¡ °Ç³×ÁÖ´Â ¿ªÇÒÀ» ´ã´çÇÕ´Ï´Ù.
ÀÌ ActionMap
³»ÀÇ Actions
´Â
createAudioAction
¸Þ¼µå¿¡ ÀÇÇØ ÀÛ¼ºµË´Ï´Ù.
createAudioAction(java.lang.Object)
,
playSound(Action)
protected Action createAudioAction(Object key)
Action
À»
¸®ÅÏÇÕ´Ï´Ù.
ÀÌ Action ¿¡´Â û°¢ ½ÅÈ£¸¦ ·»´õ¸µÇϱâ À§ÇÑ Á¤º¸¿Í ³í¸®°¡ Æ÷ÇԵ˴ϴÙ. ÀÌ ¸Þ¼µå¿¡°Ô °Ç³×Áö´Â Object
¿¡´Â û°¢ ½ÅÈ£¸¦ ·»´õ¸µ Çϱâ À§Çؼ ÇÊ¿äÇÑ Á¤º¸°¡ Æ÷ÇԵ˴ϴÙ. º¸Åë, ÀÌ Object
´Â
ÇöÀçÀÇ ÆÐŰÁö¿¡ °ü°èµÈ
¿Àµð¿À ÆÄÀÏÀ» Áö½ÃÇÏ´Â String
°¡ µË´Ï´Ù. ÀÌ Action
actionPerformed
¸Þ¼µå´Â playSound
¸Þ¼µå¿¡ ÀÇÇØ Æ®¸®°Å µË´Ï´Ù.
playSound(Action)
protected void playSound(Action audioAction)
Action
À»
Æ®¸®°Å ÇÒÁö ¾î¶³Áö¸¦ ÆÇ´ÜÇØ, ÇÊ¿äÇϸé, Action
actionPerformed
¸Þ¼µå¸¦ Æ®¸®°Å ÇÕ´Ï´Ù. ¿Àµð¿À¸¦, »óȲ¿¡ µû¶ó ·»´õ¸µ ÇÏ´Â È¿°ú°¡ ÀÖ½À´Ï´Ù.
Àç»ýÇÒ °¡´É¼ºÀÌ ÀÖ´Â ½ÅÈ£ ¼¼Æ®´Â µðÆúÆ®ÀÇ Å×À̺íÄ¡ AuditoryCues.cueList¿¡ Æ÷ÇԵ˴ϴÙ. Àç»ýÇÏ´Â ½ÅÈ£´Â AuditoryCues.playList¿¡ Æ÷ÇԵ˴ϴÙ.
audioAction
- ½Ã½ºÅÛ, ¶Ç´Â ¹ß»ýÁßÀÇ »ç¿ëÀÚ
Ȱµ¿¿¡ °ü·ÃµÈ ¿Àµð¿À¸¦, ¾î¶»°Ô ·»´õ¸µ Çұ ¾Ë°í ÀÖ´Â Action
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.