|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.sound.sampled.Control
javax.sound.sampled.BooleanControl
public abstract class BooleanControl
BooleanControl
는, 라인의 오디오에 영향을 주는 2 개의 설정을 바꾸는 기능을 제공합니다. 설정은 boolean 형의 값 (true
및 false
)입니다. 그래피컬 사용자 인터페이스는, 2 상태 버튼, 온/오프 스윗치, 2 개의 배타 버튼, 체크 박스등으로 컨트롤을 나타낼 수가 있습니다. 예를 들어, 버튼을 누르면(자),
컨트롤이 기동해, 라인의 음성이 출력되지 않게 된다고 하는 상태입니다.
MUTE
외 서브 클래스와 같이, 사용자 인터페이스에 표시하는데 적합한 값의 캐릭터 라인 라벨을 돌려주는 메소드가 준비되어 있습니다.
Control
상자의 클래스의 개요 | |
---|---|
static class |
BooleanControl.Type
BooleanControl.Type 클래스의 인스턴스는, 불형의 컨트롤의 종류를 식별합니다. |
생성자 의 개요 | |
---|---|
protected |
BooleanControl (BooleanControl.Type type,
boolean initialValue)
지정된 파라미터로 불형의 컨트롤 객체를 새롭게 구축합니다. |
protected |
BooleanControl (BooleanControl.Type type,
boolean initialValue,
String trueStateLabel,
String falseStateLabel)
지정된 파라미터로 불형의 컨트롤 객체를 새롭게 구축합니다. |
메소드의 개요 | |
---|---|
String |
getStateLabel (boolean state)
지정된 상태의 라벨을 가져옵니다. |
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)
type
- 이 불형의 컨트롤 객체를 나타내는 컨트롤의 형태initialValue
- 초기 컨트롤의 값trueStateLabel
- 「true」또는 「on」등의,true
로 나타내지는 상태의 라벨falseStateLabel
- 「false」또는 「off」등의,false
로 나타내지는 상태의 라벨protected BooleanControl(BooleanControl.Type type, boolean initialValue)
true
및 false
상태의 라벨을 「true」 및 「false」에 디폴트 설정합니다.
type
- 이 불형의 컨트롤 객체에 의해 나타내지는 컨트롤의 형태initialValue
- 초기 컨트롤의 값메소드의 상세 |
---|
public void setValue(boolean value)
value
- 필요한 신규의 값public boolean getValue()
public String getStateLabel(boolean state)
true
의 경우는 「true」또는 「on」,
false
의 경우는 「false」또는 「off」등의, 지정된 상태의 라벨public String toString()
Control
내의 toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.