source:
issm/oecreview/Archive/14064-14311/ISSM-14199-14200.diff
Last change on this file was 14312, checked in by , 12 years ago | |
---|---|
File size: 2.0 KB |
-
../trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java
16 16 import android.widget.EditText; 17 17 import android.widget.FrameLayout; 18 18 import android.widget.SeekBar; 19 import android.widget.SeekBar.OnSeekBarChangeListener; 19 20 import android.widget.TextView; 20 21 import android.widget.Toast; 21 22 … … 34 35 private SeekBar bar; 35 36 private TextView /*txtStatus,*/ txtValue; 36 37 private ColorMap colorMap; 37 38 private int alpha; 38 39 39 40 @Override 40 41 //------------------------------------------------------------------------------------------------ … … 54 55 Button button = (Button) super.findViewById(R.id.button1); 55 56 frame = (FrameLayout)findViewById(R.id.frame); 56 57 button.setOnClickListener(this); 58 bar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() 59 { 60 public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) 61 { 62 alpha = progress; 63 } 64 65 @Override 66 public void onStartTrackingTouch(SeekBar seekBar) { 67 // TODO Auto-generated method stub 68 69 } 70 71 @Override 72 public void onStopTrackingTouch(SeekBar seekBar) { 73 // TODO Auto-generated method stub 74 75 } 76 }); 77 57 78 58 79 //load up the ISSM library and create double buffer in java 59 80 //which later on will be pass for native allocation. … … 78 99 //------------------------------------------------------------------------------------------------ 79 100 public void fillBuffer() 80 101 { 81 double alpha=5;82 102 issmNative.solveISSMModel(alpha,buff); 83 103 } 84 104 //------------------------------------------------------------------------------------------------
Note:
See TracBrowser
for help on using the repository browser.