|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Object javax.swing.plaf.synth.ColorType
public class ColorType
½ºÅ¸ÀϷκÎÅÍ ²¨³¾ ¼ö Àִ ŸÀÔ º¸ÁõµÈ »öÀÇ ¿°ÅÀÔ´Ï´Ù.
°¢ SynthStyle
¿¡´Â SynthStyle.getColor(SynthContext, ColorType)
¸Þ¼µå¸¦ °³ÀÔ½ÃÄÑ ¾×¼¼½º ÇÒ ¼ö ÀÖ´Â 1 Á¶ÀÇ ColorType
°¡ ÀÖ½À´Ï´Ù. SynthStyle
installDefaults
´Â
FOREGROUND
Ä÷¯¸¦ ÄÄÆÛ³ÍÆ®ÀÇ foreground·Î¼ ÀνºÅç ÇØ, BACKGROUND
Ä÷¯¸¦ ÄÄÆÛ³ÍÆ®ÀÇ ¹é±×¶ó¿îµå·Î¼ ÀνºÅç ÇÕ´Ï´Ù (foreground Ä÷¯³ª ¹é±×¶ó¿îµå Ä÷¯¸¦ ¸í½ÃÀûÀ¸·Î ÁöÁ¤ÇÏÁö ¾Ê´Â °æ¿ì). ÄÄÆÛ³ÍÆ®¾È¿¡´Â ¶ÇÇÑ
¸î°³ÀÇ »ö¿¡ ±Ù°ÅÇÏ´Â ÇÁ·ÎÆÛƼ¸¦ Áö¿ø
ÇÏ°í ÀÖ´Â °Íµµ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, JList
¿¡´Â SynthConstants.SELECTED
ÄÄÆÛ³ÍÆ® »óÅ¿¡ ¸ÂÃß¾î FOREGROUND
¿¡ ¸Ê µÇ´Â selectionForeground
ÇÁ·ÎÆÛƼ°¡ ÀÖ½À´Ï´Ù.
´ÙÀ½ÀÇ ¿¹´Â DISABLED
»óÅÂÀÇ °æ¿ì´Â ºÓÀº »öÀ» µ¹·ÁÁÖ°í, ±× ¿ÜÀÇ °æ¿ì´Â °ËÀº »öÀ» µ¹·ÁÁÖ´Â Ä¿½ºÅÒÀÇ SynthStyle
¸¦ ³ªÅ¸³»°í ÀÖ½À´Ï´Ù.
class MyStyle extends SynthStyle { private Color disabledColor = new ColorUIResource(Color.RED); private Color color = new ColorUIResource(Color.BLACK); protected Color getColorForState(SynthContext context, ColorType type){ if (context.getComponentState() == SynthConstants.DISABLED) { return disabledColor; } return color; } }
ÇÊµå °³¿ä | |
---|---|
static ColorType |
BACKGROUND
¿µ¿ªÀÇ ¹é±×¶ó¿îµå¿ëÀÇ ColorType ÀÔ´Ï´Ù. |
static ColorType |
FOCUS
Æ÷Ä¿½º¿ëÀÇ ColorType ÀÔ´Ï´Ù. |
static ColorType |
FOREGROUND
¿µ¿ªÀÇ foreground¿ëÀÇ ColorType ÀÔ´Ï´Ù. |
static int |
MAX_COUNT
ColorType
ÃÖ´ë¼öÀÔ´Ï´Ù. |
static ColorType |
TEXT_BACKGROUND
¿µ¿ªÀÇ ¹é±×¶ó¿îµå¿ëÀÇ ColorType ÀÔ´Ï´Ù. |
static ColorType |
TEXT_FOREGROUND
¿µ¿ªÀÇ foreground¿ëÀÇ ColorType ÀÔ´Ï´Ù. |
»ý¼ºÀÚ °³¿ä | |
---|---|
protected |
ColorType (String description)
ÁöÁ¤µÈ ¼³¸íÀ» »ç¿ëÇØ »õ·Î¿î ColorType¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
int |
getID ()
ÀÌ ColorType ÀÏÀÇÀÇ ID¸¦ Á¤¼ö°ªÀ¸·Î ¸®ÅÏÇÕ´Ï´Ù. |
String |
toString ()
ÀÌ ColorType
ÅؽºÆ® Çü½ÄÀÇ ¼³¸íÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
public static final ColorType FOREGROUND
public static final ColorType BACKGROUND
public static final ColorType TEXT_FOREGROUND
public static final ColorType TEXT_BACKGROUND
public static final ColorType FOCUS
public static final int MAX_COUNT
ColorType
ÃÖ´ë¼öÀÔ´Ï´Ù.
»ý¼ºÀÚ »ó¼¼ |
---|
protected ColorType(String description)
description
- ColorType
¼³¸íÀ» ³ªÅ¸³»´Â String¸Þ¼µåÀÇ »ó¼¼ |
---|
public final int getID()
public String toString()
ColorType
ÅؽºÆ® Çü½ÄÀÇ ¼³¸íÀ» ¸®ÅÏÇÕ´Ï´Ù.
Object
³»ÀÇ toString
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.