|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.sound.sampled.Control | +--javax.sound.sampled.BooleanControl
BooleanControl
´Â ¶óÀÎÀÇ ¿Àµð¿À¿¡ ¿µÇâÀ» ÁÖ´Â 2 °³ÀÇ ¼³Á¤À» ¹Ù²Ù´Â ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù. ¼³Á¤Àº boolean ÇüÀÇ °ª (true
¹× false
)ÀÔ´Ï´Ù. ±×·¡ÇÇÄà À¯Àú ÀÎÅÍÆäÀ̽º´Â 2 »óÅ ¹öư, ¿Â/¿ÀÇÁ ½ºÀÄ¡, 2 °³ÀÇ ¹èŸ ¹öư, üũ ¹Ú½ºµîÀ¸·Î ÄÁÆ®·ÑÀ» ³ªÅ¸³¾ ¼ö°¡ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, ¹öưÀ» ´©¸£¸é(ÀÚ),
ÄÁÆ®·ÑÀÌ ±âµ¿ÇØ, ¶óÀÎÀÇ À½¼ºÀº Ãâ·ÂµÇÁö ¾Ê°Ô µË´Ï´Ù.
MUTE
´Ù¸¥
¼ºê Ŭ·¡½º¿¡ °üÇØ¼´Â À¯Àú ÀÎÅÍÆäÀ̽ºÀÇ Ç¥½Ã¿¡ ¾î¿ï¸° °ªÀÇ Ä³¸¯ÅÍ ¶óÀÎ label¸¦ µÇµ¹¸®´Â ¸Þ¼Òµå°¡ ÁغñµÇ¾î ÀÖ½À´Ï´Ù.
Control
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
static class |
BooleanControl.Type
BooleanControl.Type Ŭ·¡½ºÀÇ ÀνºÅϽº´Â ºÒÇüÀÇ ÄÁÆ®·ÑÀÇ Á¾·ù¸¦ ½Äº°ÇÕ´Ï´Ù. |
Ŭ·¡½º javax.sound.sampled. Control À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
|
»ý¼ºÀÚÀÇ °³¿ä | |
protected |
BooleanControl (BooleanControl.Type type,
boolean initialValue)
ÁöÁ¤µÈ ÆÄ¶ó¹ÌÅÍ·Î ºÒÇüÀÇ ÄÁÆ®·Ñ ¿ÀºêÁ§Æ®¸¦ »õ·Ó°Ô ±¸ÃàÇÕ´Ï´Ù. |
protected |
BooleanControl (BooleanControl.Type type,
boolean initialValue,
String trueStateLabel,
String falseStateLabel)
ÁöÁ¤µÈ ÆÄ¶ó¹ÌÅÍ·Î ºÒÇüÀÇ ÄÁÆ®·Ñ ¿ÀºêÁ§Æ®¸¦ »õ·Ó°Ô ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
String |
getStateLabel (boolean state)
ÁöÁ¤µÈ »óÅÂÀÇ label¸¦ ÃëµæÇÕ´Ï´Ù. |
boolean |
getValue ()
ÀÌ ÄÁÆ®·ÑÀÇ ÇöÀçÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù. |
void |
setValue (boolean value)
ÄÁÆ®·Ñ¿¡ ´ëÇÑ ÇöÀçÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. |
String |
toString ()
ÄÁÆ®·ÑÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» Á¦°øÇÕ´Ï´Ù. |
Ŭ·¡½º javax.sound.sampled. Control ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getType |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
protected BooleanControl(BooleanControl.Type type, boolean initialValue, String trueStateLabel, String falseStateLabel)
initialValue
- Ãʱâ ÄÁÆ®·ÑÀÇ °ªtrueStateLabel
- ¡¸true¡¹¶Ç´Â ¡¸on¡¹µîÀÇ,true
·Î ³ªÅ¸³»Áö´Â »óÅÂÀÇ labelfalseStateLabel
- ¡¸false¡¹¶Ç´Â ¡¸off¡¹µîÀÇ,false
·Î ³ªÅ¸³»Áö´Â »óÅÂÀÇ labelprotected BooleanControl(BooleanControl.Type type, boolean initialValue)
true
¹× false
»óÅÂÀÇ label¸¦ ¡¸true¡¹ ¹× ¡¸false¡¹¿¡ µðÆúÆ® ¼³Á¤ÇÕ´Ï´Ù.
initialValue
- Ãʱâ ÄÁÆ®·ÑÀÇ °ª¸Þ¼ÒµåÀÇ »ó¼¼ |
public void setValue(boolean value)
value
- ÇÊ¿äÇÑ ½Å±ÔÀÇ °ªpublic boolean getValue()
public String getStateLabel(boolean state)
true
ÀÇ °æ¿ì´Â ¡¸true¡¹¶Ç´Â ¡¸on¡¹,false
ÀÇ °æ¿ì´Â ¡¸false¡¹¶Ç´Â ¡¸off¡¹µîÀÇ, ÁöÁ¤µÈ »óÅÂÀÇ labelpublic String toString()
Control
³»ÀÇ toString
|
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.