|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.plaf.synth.SynthStyleFactory
public abstract class SynthStyleFactory
SynthStyle
Ãëµæ¿¡ »ç¿ëµÇ´Â ÆÑÅ丮ÀÔ´Ï´Ù. Synth
°¢ ComponentUI
´Â
ÇöÀçÀÇ SynthStyleFactory
¸¦ È£ÃâÇØ, ±×°ÍµéÀÌ °¡Áö°í ÀÖ´Â °³º°ÀÇ ¿µ¿ª ¸¶´Ù SynthStyle
¸¦ ÃëµæÇÕ´Ï´Ù.
´ÙÀ½ÀÇ ¿¹¿¡¼´Â Region
¿¡ ±Ù°ÅÇØ ´Ù¸¥ ½ºÅ¸ÀÏÀ» µ¹·ÁÁÖ´Â Ä¿½ºÅÒÀÇ SynthStyleFactory
¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
class MyStyleFactory extends SynthStyleFactory { public SynthStyle getStyle(JComponent c, Region id) { if (id == Region.BUTTON) { return buttonStyle; } else if (id == Region.TREE) { return treeStyle; } return defaultStyle; } } SynthLookAndFeel laf = new SynthLookAndFeel(); UIManager.setLookAndFeel(laf); SynthLookAndFeel.setStyleFactory(new MyStyleFactory());
SynthStyleFactory
,
SynthStyle
»ý¼ºÀÚ °³¿ä | |
---|---|
SynthStyleFactory ()
SynthStyleFactory ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
abstract SynthStyle |
getStyle (JComponent c,
Region id)
ÁöÁ¤µÈ Component ½ºÅ¸ÀÏÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public SynthStyleFactory()
SynthStyleFactory
¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
¸Þ¼µåÀÇ »ó¼¼ |
---|
public abstract SynthStyle getStyle(JComponent c, Region id)
c
- ¿ä±¸µÇ´Â ÄÄÆÛ³ÍÆ®id
- Region ½Äº°ÀÚ
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.