diff options
Diffstat (limited to 'songdbj/org/tritonus/share/sampled/mixer/TFloatControl.java')
-rw-r--r-- | songdbj/org/tritonus/share/sampled/mixer/TFloatControl.java | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/songdbj/org/tritonus/share/sampled/mixer/TFloatControl.java b/songdbj/org/tritonus/share/sampled/mixer/TFloatControl.java deleted file mode 100644 index 8a80016865..0000000000 --- a/songdbj/org/tritonus/share/sampled/mixer/TFloatControl.java +++ /dev/null | |||
@@ -1,134 +0,0 @@ | |||
1 | /* | ||
2 | * TFloatControl.java | ||
3 | * | ||
4 | * This file is part of Tritonus: http://www.tritonus.org/ | ||
5 | */ | ||
6 | |||
7 | /* | ||
8 | * Copyright (c) 2001 by Matthias Pfisterer | ||
9 | * | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU Library General Public License as published | ||
13 | * by the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU Library General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU Library General Public | ||
22 | * License along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
24 | * | ||
25 | */ | ||
26 | |||
27 | /* | ||
28 | |<--- this code is formatted to fit into 80 columns --->| | ||
29 | */ | ||
30 | |||
31 | package org.tritonus.share.sampled.mixer; | ||
32 | |||
33 | import javax.sound.sampled.FloatControl; | ||
34 | |||
35 | import org.tritonus.share.TDebug; | ||
36 | |||
37 | |||
38 | |||
39 | |||
40 | /** Base class for classes implementing Line. | ||
41 | */ | ||
42 | public class TFloatControl | ||
43 | extends FloatControl | ||
44 | implements TControllable | ||
45 | { | ||
46 | private TControlController m_controller; | ||
47 | |||
48 | |||
49 | |||
50 | public TFloatControl(FloatControl.Type type, | ||
51 | float fMinimum, | ||
52 | float fMaximum, | ||
53 | float fPrecision, | ||
54 | int nUpdatePeriod, | ||
55 | float fInitialValue, | ||
56 | String strUnits) | ||
57 | { | ||
58 | super(type, | ||
59 | fMinimum, | ||
60 | fMaximum, | ||
61 | fPrecision, | ||
62 | nUpdatePeriod, | ||
63 | fInitialValue, | ||
64 | strUnits); | ||
65 | if (TDebug.TraceControl) | ||
66 | { | ||
67 | TDebug.out("TFloatControl.<init>: begin"); | ||
68 | } | ||
69 | m_controller = new TControlController(); | ||
70 | if (TDebug.TraceControl) | ||
71 | { | ||
72 | TDebug.out("TFloatControl.<init>: end"); | ||
73 | } | ||
74 | } | ||
75 | |||
76 | |||
77 | |||
78 | public TFloatControl(FloatControl.Type type, | ||
79 | float fMinimum, | ||
80 | float fMaximum, | ||
81 | float fPrecision, | ||
82 | int nUpdatePeriod, | ||
83 | float fInitialValue, | ||
84 | String strUnits, | ||
85 | String strMinLabel, | ||
86 | String strMidLabel, | ||
87 | String strMaxLabel) | ||
88 | { | ||
89 | super(type, | ||
90 | fMinimum, | ||
91 | fMaximum, | ||
92 | fPrecision, | ||
93 | nUpdatePeriod, | ||
94 | fInitialValue, | ||
95 | strUnits, | ||
96 | strMinLabel, | ||
97 | strMidLabel, | ||
98 | strMaxLabel); | ||
99 | if (TDebug.TraceControl) | ||
100 | { | ||
101 | TDebug.out("TFloatControl.<init>: begin"); | ||
102 | } | ||
103 | m_controller = new TControlController(); | ||
104 | if (TDebug.TraceControl) | ||
105 | { | ||
106 | TDebug.out("TFloatControl.<init>: end"); | ||
107 | } | ||
108 | } | ||
109 | |||
110 | |||
111 | |||
112 | public void setParentControl(TCompoundControl compoundControl) | ||
113 | { | ||
114 | m_controller.setParentControl(compoundControl); | ||
115 | } | ||
116 | |||
117 | |||
118 | |||
119 | public TCompoundControl getParentControl() | ||
120 | { | ||
121 | return m_controller.getParentControl(); | ||
122 | } | ||
123 | |||
124 | |||
125 | |||
126 | public void commit() | ||
127 | { | ||
128 | m_controller.commit(); | ||
129 | } | ||
130 | } | ||
131 | |||
132 | |||
133 | |||
134 | /*** TFloatControl.java ***/ | ||