@@ -138,8 +138,8 @@ public void notifyObservers() {
138138 private static final int MAX_AMP_SEED = 100 ;
139139 private static final int MIN_AMP_SEED = 10 ;
140140 private static final int AMP_STEP = 1 ;
141- public static final int SINE1 = 0 ;
142- public static final int SINE2 = 1 ;
141+ static final int SINE1 = 0 ;
142+ static final int SINE2 = 1 ;
143143 private static final int SAMPLE_SIZE = 31 ;
144144 private int phase = 0 ;
145145 private int sinAmp = 1 ;
@@ -150,7 +150,7 @@ public void notifyObservers() {
150150 notifier = new MyObservable ();
151151 }
152152
153- public void stopThread () {
153+ void stopThread () {
154154 keepRunning = false ;
155155 }
156156
@@ -181,18 +181,18 @@ public void run() {
181181 }
182182 }
183183
184- public int getItemCount (int series ) {
184+ int getItemCount (int series ) {
185185 return SAMPLE_SIZE ;
186186 }
187187
188- public Number getX (int series , int index ) {
188+ Number getX (int series , int index ) {
189189 if (index >= SAMPLE_SIZE ) {
190190 throw new IllegalArgumentException ();
191191 }
192192 return index ;
193193 }
194194
195- public Number getY (int series , int index ) {
195+ Number getY (int series , int index ) {
196196 if (index >= SAMPLE_SIZE ) {
197197 throw new IllegalArgumentException ();
198198 }
@@ -208,7 +208,7 @@ public Number getY(int series, int index) {
208208 }
209209 }
210210
211- public void addObserver (Observer observer ) {
211+ void addObserver (Observer observer ) {
212212 notifier .addObserver (observer );
213213 }
214214
@@ -223,7 +223,7 @@ class SampleDynamicSeries implements XYSeries {
223223 private int seriesIndex ;
224224 private String title ;
225225
226- public SampleDynamicSeries (SampleDynamicXYDatasource datasource , int seriesIndex , String title ) {
226+ SampleDynamicSeries (SampleDynamicXYDatasource datasource , int seriesIndex , String title ) {
227227 this .datasource = datasource ;
228228 this .seriesIndex = seriesIndex ;
229229 this .title = title ;
0 commit comments