FileDocCategorySizeDatePackage
SynchScaleChart.javaAPI DocExample1862Thu Feb 04 16:10:42 GMT 1999None

SynchScaleChart

public class SynchScaleChart extends ScaleChart

Fields Summary
Constructors Summary
Methods Summary
public voidrun()

		float sinValue = 0.0f;
		for (int i = 0; i < numIter; i++) {
			if (i%5 == 0) {
				synchronized(this) {
					for (int j = 0; j < 360*100; j++) {
						sinValue = (float)Math.sin((j % 360)*Math.PI/180.0);
						sinValue *= (float)j / 180.0f;
					}
				}
			} else {
				for (int j = 0; j < 360*100; j++) {
					sinValue = (float)Math.sin((j % 360)*Math.PI/180.0);
					sinValue *= (float)j / 180.0f;
				}
			}	
		}