|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Object javax.swing.LookAndFeel javax.swing.plaf.basic.BasicLookAndFeel javax.swing.plaf.synth.SynthLookAndFeel
public class SynthLookAndFeel
SynthLookAndFeel´Â
Ä¿½ºÅ͸¶ÀÌÁî µÈ Look & Feel¸¦ ÀÛ¼ºÇϱâ À§ÇÑ ±âÃÊ°¡ µÇ´Â Ŭ·¡½ºÀÔ´Ï´Ù. SynthLookAndFeel´Â Á÷Á¢ ¿Ü°üÀ» Á¦°øÇÏÁö ¾Ê±â ¶§¹®¿¡
ÆäÀÎÆ®´Â ¸ðµÎ À§¾ç µË´Ï´Ù. load(java.io.InputStream, java.lang.Class >)
¸Þ¼µå¸¦ °³ÀÔ½ÃÄÑ ±¸¼º ÆÄÀÏÀ» ÁöÁ¤ÇÏ´ÂÁö, µ¶ÀÚÀûÀÎ SynthStyleFactory
¸¦
setStyleFactory(javax.swing.plaf.synth.SynthStyleFactory)
¿¡ Á¦°øÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÆÄÀÏÀ» ·ÎµåÇÏ´Â ¿¹¿¡ ´ëÇؼ´Â ÆÐÅ°ÁöÀÇ ¼³¸íÀ» ÂüÁ¶ÇϽʽÿÀ. µ¶ÀÚÀûÀÎ SynthStyleFactory
¸¦ setStyleFactory
¿¡ Á¦°øÇÏ´Â ¿¹¿¡ ´ëÇؼ´Â SynthStyleFactory
¸¦
ÂüÁ¶ÇϽʽÿÀ.
»ý¼ºÀÚ °³¿ä | |
---|---|
SynthLookAndFeel ()
SynthLookAndFeel¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
static ComponentUI |
createUI (JComponent c)
°Ç³×¹ÞÀº JComponent ¿¡ ´ëÇؼ Synth
Look & Feel
ComponentUI ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
UIDefaults |
getDefaults ()
ÀÌ SynthLookAndFeel µðÆúÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
String |
getDescription ()
SynthLookAndFeel ÅؽºÆ® Çü½ÄÀÇ ¼³¸íÀ» ¸®ÅÏÇÕ´Ï´Ù. |
String |
getID ()
ÀÌ Look & Feel¸¦ ½Äº°Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. |
String |
getName ()
ÀÌ Look & Feel¸¦ ½Äº°Çϴ ªÀº ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. |
static Region |
getRegion (JComponent c)
JComponent c
Region¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
static SynthStyle |
getStyle (JComponent c,
Region region)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ÁöÁ¤µÈ ¿µ¿ªÀÇ SynthStyle¸¦ ÃëµæÇÕ´Ï´Ù. |
static SynthStyleFactory |
getStyleFactory ()
ÇöÀçÀÇ SynthStyleFactory¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
initialize ()
ÀÌ Look & Feel°¡ ÀνºÅç µÉ ¶§ UIManager¿¡ ÀÇÇØ È£ÃâÇÕ´Ï´Ù. |
boolean |
isNativeLookAndFeel ()
false¸¦ ¸®ÅÏÇÕ´Ï´Ù (SynthLookAndFeel´Â ³×ÀÌƼºêÀÎ Look & Feel°¡ ¾Æ´Õ´Ï´Ù). |
boolean |
isSupportedLookAndFeel ()
true¸¦ ¸®ÅÏÇÕ´Ï´Ù (SynthLookAndFeel´Â Ç×»ó Áö¿ø µÇ°í ÀÖ½À´Ï´Ù). |
void |
load (InputStream input,
Class <? > resourceBase)
ÀÌ SynthLookAndFeel ¿¡ ÀÇÇØ »ç¿ëµÇ´Â SynthStyle ¼¼Æ®¸¦ ·ÎµåÇÕ´Ï´Ù. |
static void |
setStyleFactory (SynthStyleFactory cache)
synth¿¡ ÀÇÇØ Á¦°øµÈ UI Ŭ·¡½º°¡ SynthStyle Ãëµæ¿¡ »ç¿ëÇÏ´Â SynthStyleFactory¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
boolean |
shouldUpdateStyleOnAncestorChanged ()
JComponent
»óÀ§ Ŭ·¡½ºÀÇ ÄÄÆÛ³ÍÆ®°¡ º¯°æµÇ¾úÀ» ¶§¿¡
UI°¡ ±× SynthStyle ¸¦ SynthStyleFactory ·Î
ºÎÅÍ °»½ÅÇÒÁö ¾î¶³Áö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
uninitialize ()
ÀÌ Look & Feel°¡ ¾ðÀνºÅçµÉ ¶§ UIManager¿¡ ÀÇÇØ È£ÃâÇÕ´Ï´Ù. |
static void |
updateStyles (Component c)
c ¿¡ °ü·ÃµÈ
½ºÅ¸ÀÏ°ú ±× ¸ðµç ÀÚ½ÄÀ» °»½ÅÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.plaf.basic. BasicLookAndFeel ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
createAudioAction,
getAudioActionMap,
initClassDefaults,
initComponentDefaults,
initSystemColorDefaults,
loadSystemColors,
playSound |
Ŭ·¡½º javax.swing. LookAndFeel ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
getDesktopPropertyValue,
getDisabledIcon,
getDisabledSelectedIcon,
getSupportsWindowDecorations,
installBorder,
installColors,
installColorsAndFont,
installProperty,
loadKeyBindings,
makeComponentInputMap,
makeIcon,
makeInputMap,
makeKeyBindings,
provideErrorFeedback,
toString,
uninstallBorder |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public SynthLookAndFeel()
¸®ÅÏµÈ SynthLookAndFeel
¸¦ À¯È¿ÇÏ°Ô Çϱâ À§Çؼ´Â load
¸¦ È£ÃâÇØ SynthStyle
¼¼Æ®¸¦ ÁöÁ¤ÇÏ´ÂÁö, setStyleFactory
¸¦ È£ÃâÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
load(java.io.InputStream, java.lang.Class >)
,
setStyleFactory(javax.swing.plaf.synth.SynthStyleFactory)
¸Þ¼µåÀÇ »ó¼¼ |
---|
public static void setStyleFactory(SynthStyleFactory cache)
cache
- UI°¡ »ç¿ëÇÏ´Â SynthStyleFactorypublic static SynthStyleFactory getStyleFactory()
public static SynthStyle getStyle(JComponent c, Region region)
c
- SynthStyle
ÃëµæÀÇ ´ë»óÀÌ µÇ´Â JComponentregion
- ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ ¿µ¿ªÀ» ½Äº°ÇÑ´Ù
public static void updateStyles(Component c)
c
¿¡ °ü·ÃµÈ
½ºÅ¸ÀÏ°ú ±× ¸ðµç ÀÚ½ÄÀ» °»½ÅÇÕ´Ï´Ù. ÀÌ ¸Þ¼µå´Â SwingUtilities.updateComponentTreeUI
°£ÀÌÆÇÀÔ´Ï´Ù.
c
- ½ºÅ¸ÀÏ °»½ÅÀÇ ´ë»óÀÌ µÇ´Â ÄÄÆÛ³ÍÆ®public static Region getRegion(JComponent c)
c
Region¸¦ ¸®ÅÏÇÕ´Ï´Ù.
c
- Region¸¦ ²¨³»´Â ´ë»óÀÌ µÇ´Â JComponent
c
¿¡ ´ëÀÀÇÏ´Â Regionpublic static ComponentUI createUI(JComponent c)
JComponent
¿¡ ´ëÇؼ Synth
Look & Feel
ComponentUI
¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
c
- ComponentUI
ÀÛ¼ºÀÇ ´ë»óÀÌ µÇ´Â JComponent
c
¿¡ »ç¿ëÇÏ´Â ComponentUIpublic void load(InputStream input, Class <? > resourceBase) throws ParseException, IllegalArgumentException
SynthLookAndFeel
¿¡ ÀÇÇØ »ç¿ëµÇ´Â SynthStyle
¼¼Æ®¸¦ ·ÎµåÇÕ´Ï´Ù. resourceBase
´Â
Æнº¿¡ ±Ù°ÅÇÏ´Â ÀÚ¿øÀÇ ÇØ°á¿¡ »ç¿ëµË´Ï´Ù. ¿¹¸¦ µé¾î, Image
´Â resourceBase.getResource(path)
¿¡ ÀÇÇØ ÇØ°áµË´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº ¡¸Synth
ÆÄÀÏ Çü½Ä¡¹À» ÂüÁ¶ÇϽʽÿÀ.
input
- ·Îµå¿øÀÇ InputStreamresourceBase
- À̹ÌÁöµîÀÇ ÀÚ¿øÀÇ ÇØ°á¿¡ »ç¿ëµÈ´Ù
ParseException
- Çؼ®Áß¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
IllegalArgumentException
- input ¶Ç´Â resourceBase°¡ nullÀÎ °æ¿ìpublic void initialize()
BasicLookAndFeel
³»ÀÇ initialize
LookAndFeel.uninitialize()
,
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
public void uninitialize()
BasicLookAndFeel
³»ÀÇ uninitialize
LookAndFeel.initialize()
public UIDefaults getDefaults()
BasicLookAndFeel
³»ÀÇ getDefaults
LookAndFeel.initialize()
,
LookAndFeel.uninitialize()
,
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
public boolean isSupportedLookAndFeel()
LookAndFeel
³»ÀÇ isSupportedLookAndFeel
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
public boolean isNativeLookAndFeel()
LookAndFeel
³»ÀÇ isNativeLookAndFeel
public String getDescription()
LookAndFeel
³»ÀÇ getDescription
public String getName()
LookAndFeel
³»ÀÇ getName
public String getID()
LookAndFeel
³»ÀÇ getID
public boolean shouldUpdateStyleOnAncestorChanged()
JComponent
»óÀ§ Ŭ·¡½ºÀÇ ÄÄÆÛ³ÍÆ®°¡ º¯°æµÇ¾úÀ» ¶§¿¡
UI°¡ ±× SynthStyle
¸¦ SynthStyleFactory
·Î
ºÎÅÍ °»½ÅÇÒÁö ¾î¶³Áö¸¦ ¸®ÅÏÇÕ´Ï´Ù. Æ÷ÇÔ °ü°èÀÇ °èÃþÀ¸·ÎºÎÅÍ getStyle
¹Ýȯ°ªÀ» º£À̽º·Î ÇÑ SynthStyleFactory
¸¦ Á¦°øÇÑ ¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µå¸¦ ¿À¹ö¶óÀ̵å(override)ÀÇÇØ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
SynthStyle
¸¦ SynthStyleFactory
·Î
ºÎÅÍ °»½ÅÇÒÁö ¾î¶³Áö
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.