|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.LookAndFeel | +--javax.swing.plaf.basic.BasicLookAndFeel
Ç¥ÁØÀûÀÎ ±âÀú LookAndFeel Ŭ·¡½º¸¦ ±¸ÇöÇÕ´Ï´Ù. ÀÌ Å¬·¡½º·ÎºÎÅÍ, Ç¥ÁØÀûÀÎ µ¥½ºÅ©Å¾ÀÇ LookAndFeel Ŭ·¡½º (JLF, Mac, Windows µî)°¡ ÆÄ»ýÇÕ´Ï´Ù. ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº¸¦ Á÷Á¢ »ý¼ºÇÒ ¼ö ¾ø½À´Ï´Ù¸¸, UI °ü·Ã Ŭ·¡½ºÀÇ Basic Á¤ÀÇ´Â Á÷Á¢ ÀνºÅϽº »ý¼ºµË´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿Í ȣȯÀº ¾Æ´Ï°Ô µÉ ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ ¼Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. ¹öÁ¯ 1.4 ÀÇ ½ÃÁ¡¿¡¼´Â JavaBeansTM ÀÇ Àå±â°£ ¿î¿ëÀÇ ¼Æ÷Æ®´Â ¸ðµÎ 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)
|
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 ¸Þ¼Òµå¸¦ ¹æ¾Æ¼è ÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing. LookAndFeel ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getDescription , getDesktopPropertyValue , getID , getName , getSupportsWindowDecorations , initialize , installBorder , installColors , installColorsAndFont , isNativeLookAndFeel , isSupportedLookAndFeel , loadKeyBindings , makeComponentInputMap , makeIcon , makeInputMap , makeKeyBindings , provideErrorFeedback , toString , uninitialize , uninstallBorder |
Ŭ·¡½º 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)
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 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.