JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.plaf.synth
Ŭ·¡½º SynthStyleFactory

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.plaf.synth.SynthStyleFactory

public abstract class SynthStyleFactory
extends Object

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());
 

µµÀÔµÈ ¹öÀü :
1.5
°ü·Ã Ç׸ñ:
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
 

»ý¼ºÀÚ »ó¼¼

SynthStyleFactory

public SynthStyleFactory()
SynthStyleFactory¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

¸Þ¼­µåÀÇ »ó¼¼

getStyle

public abstract SynthStyle  getStyle(JComponent  c,
                                    Region  id)
ÁöÁ¤µÈ Component ½ºÅ¸ÀÏÀ» ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
c - ¿ä±¸µÇ´Â ÄÄÆÛ³ÍÆ®
id - Region ½Äº°ÀÚ
¹Ýȯ°ª:
¿µ¿ªÀÇ SynthStyle

JavaTM 2 Platform
Standard Ed. 5.0

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