org.tizen.injector.sensor.accelerometer_1.0.0.201310291329

16:50:06.948 INFO  jd.cli.Main - Decompiling org.tizen.injector.sensor.accelerometer_1.0.0.201310291329.jar
package org.tizen.injector.sensor.accelerometer;

import org.tizen.injector.model.AbstractTableVO;

public class FileListVO
  extends AbstractTableVO
{
  private int num;
  private String filePath;
  
  public String getFilePath()
  {
    return filePath;
  }
  
  public void setFilePath(String paramString)
  {
    filePath = paramString;
  }
  
  public int getNum()
  {
    return num;
  }
  
  public void setNum(int paramInt)
  {
    num = paramInt;
  }
  
  public String[] getColumnNames()
  {
    return null;
  }
  
  public Object getColumnValue(int paramInt)
  {
    Object localObject = null;
    switch (paramInt)
    {
    case 0: 
      localObject = Integer.valueOf(getNum());
      break;
    case 1: 
      localObject = getFilePath();
      break;
    }
    return localObject;
  }
  
  public void setColumnValue(int paramInt, Object paramObject) {}
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.FileListVO
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer;

import org.tizen.injector.provider.AbstractInjectorItem;
import org.tizen.injector.sensor.accelerometer.page.Accelerometer;
import org.tizen.injector.sensor.accelerometer.page.ManualInputAccel;
import org.tizen.injector.sensor.accelerometer.page.ManualInputGyro;
import org.tizen.injector.sensor.accelerometer.page.ManualInputMagnetic;

public class Sensor
  extends AbstractInjectorItem
{
  protected void addPages()
  {
    addPage(new Accelerometer(this, String.format("%-16s", new Object[] { "GUI" })));
    addPage(new ManualInputAccel(this, String.format("%-13s", new Object[] { "Acceleration" })));
    addPage(new ManualInputMagnetic(this, String.format("%-13s", new Object[] { "Magnetic" })));
    addPage(new ManualInputGyro(this, String.format("%-13s", new Object[] { "Gyro" })));
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.Sensor
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer;

public class SensorConstants
{
  public static final String ACCEL_ID = "1\n";
  public static final String GYRO_ID = "4\n";
  public static final String GEO_ID = "5\n";
  public static final String TILT_ID = "12\n";
  public static final String MAGNETIC_ID = "13\n";
  public static final String FILE_ACCEL_ID = "14\n";
  public static final String FILE_MAGNETIC_ID = "15\n";
  public static final String FILE_GYRO_ID = "16\n";
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.SensorConstants
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class Accelerometer$1
  extends SelectionAdapter
{
  Accelerometer$1(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.mode = Accelerometer.Mode.YAW_PITCH;
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Slider;

class Accelerometer$10
  extends SelectionAdapter
{
  Accelerometer$10(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.yawValue = (this$0.yawSlider.getSelection() - this$0.button_click_yaw);
    this$0.panel.yawDegree = this$0.yawValue;
    this$0.panel.repaint();
    this$0.sendMessage(this$0.panel.read_accelx, this$0.panel.read_accely, this$0.panel.read_accelz);
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.10
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;

class Accelerometer$11
  extends MouseAdapter
{
  Accelerometer$11(Accelerometer paramAccelerometer) {}
  
  public void mouseUp(MouseEvent paramMouseEvent)
  {
    this$0.panel.phone_pos_conv = true;
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.11
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

class Accelerometer$12
  extends SelectionAdapter
{
  Accelerometer$12(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.panel.accelerometerTimer(this$0.checkboxAcceleration.getSelection());
    if (!this$0.checkboxAcceleration.getSelection())
    {
      this$0.checkboxTilt.setSelection(false);
      Accelerometer.tilt_active = false;
    }
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.12
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

class Accelerometer$13
  extends SelectionAdapter
{
  Accelerometer$13(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.panel.geomagneticTimer(this$0.checkboxMagnetic.getSelection());
    if (!this$0.checkboxMagnetic.getSelection())
    {
      this$0.checkboxTilt.setSelection(false);
      Accelerometer.tilt_active = false;
    }
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.13
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

class Accelerometer$14
  extends SelectionAdapter
{
  Accelerometer$14(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.panel.gyroTimer(this$0.checkboxGyro.getSelection());
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.14
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

class Accelerometer$15
  extends SelectionAdapter
{
  Accelerometer$15(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    if (this$0.checkboxTilt.getSelection())
    {
      this$0.checkboxAcceleration.setSelection(true);
      this$0.panel.accelerometerTimer(this$0.checkboxAcceleration.getSelection());
      this$0.checkboxMagnetic.setSelection(true);
      this$0.panel.geomagneticTimer(this$0.checkboxMagnetic.getSelection());
      Accelerometer.tilt_active = true;
    }
    else
    {
      Accelerometer.tilt_active = false;
    }
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.15
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Slider;

class Accelerometer$16
  implements SelectionListener
{
  Accelerometer$16(Accelerometer paramAccelerometer) {}
  
  public void widgetDefaultSelected(SelectionEvent paramSelectionEvent) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    Accelerometer.button_click = true;
    this$0.pitchSlider.setSelection(90);
    this$0.yawSlider.setSelection(180);
    this$0.rollSlider.setSelection(180);
    double[] arrayOfDouble1 = { 1.0D, 0.0D, 0.0D };
    double[] arrayOfDouble2 = { 0.0D, 0.0D, 1.0D };
    double[] arrayOfDouble3 = { 0.0D, -1.0D, 0.0D };
    this$0.panel.setGyroAxisX(arrayOfDouble1);
    this$0.panel.setGyroAxisY(arrayOfDouble2);
    this$0.panel.setGyroAxisZ(arrayOfDouble3);
    this$0.panel.repaint();
    this$0.button_click_pitch = 90;
    this$0.button_click_yaw = 180;
    this$0.button_click_roll = 180;
    this$0.initValues();
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.16
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Slider;

class Accelerometer$17
  implements SelectionListener
{
  Accelerometer$17(Accelerometer paramAccelerometer) {}
  
  public void widgetDefaultSelected(SelectionEvent paramSelectionEvent) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    Accelerometer.button_click = true;
    this$0.pitchSlider.setSelection(90);
    this$0.yawSlider.setSelection(270);
    this$0.rollSlider.setSelection(180);
    double[] arrayOfDouble1 = { 0.0D, 0.0D, 1.0D };
    double[] arrayOfDouble2 = { -1.0D, 0.0D, 0.0D };
    double[] arrayOfDouble3 = { 0.0D, -1.0D, 0.0D };
    this$0.panel.setGyroAxisX(arrayOfDouble1);
    this$0.panel.setGyroAxisY(arrayOfDouble2);
    this$0.panel.setGyroAxisZ(arrayOfDouble3);
    this$0.panel.repaint();
    this$0.button_click_pitch = 90;
    this$0.button_click_yaw = 270;
    this$0.button_click_roll = 180;
    this$0.initValues();
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.17
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Slider;

class Accelerometer$18
  implements SelectionListener
{
  Accelerometer$18(Accelerometer paramAccelerometer) {}
  
  public void widgetDefaultSelected(SelectionEvent paramSelectionEvent) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    Accelerometer.button_click = true;
    this$0.pitchSlider.setSelection(90);
    this$0.yawSlider.setSelection(360);
    this$0.rollSlider.setSelection(180);
    double[] arrayOfDouble1 = { -1.0D, 0.0D, 0.0D };
    double[] arrayOfDouble2 = { 0.0D, 0.0D, -1.0D };
    double[] arrayOfDouble3 = { 0.0D, -1.0D, 0.0D };
    this$0.panel.setGyroAxisX(arrayOfDouble1);
    this$0.panel.setGyroAxisY(arrayOfDouble2);
    this$0.panel.setGyroAxisZ(arrayOfDouble3);
    this$0.panel.repaint();
    this$0.button_click_pitch = 90;
    this$0.button_click_yaw = 360;
    this$0.button_click_roll = 180;
    this$0.initValues();
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.18
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Slider;

class Accelerometer$19
  implements SelectionListener
{
  Accelerometer$19(Accelerometer paramAccelerometer) {}
  
  public void widgetDefaultSelected(SelectionEvent paramSelectionEvent) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    Accelerometer.button_click = true;
    this$0.pitchSlider.setSelection(90);
    this$0.yawSlider.setSelection(90);
    this$0.rollSlider.setSelection(180);
    double[] arrayOfDouble1 = { 0.0D, 0.0D, -1.0D };
    double[] arrayOfDouble2 = { 1.0D, 0.0D, 0.0D };
    double[] arrayOfDouble3 = { 0.0D, -1.0D, 0.0D };
    this$0.panel.setGyroAxisX(arrayOfDouble1);
    this$0.panel.setGyroAxisY(arrayOfDouble2);
    this$0.panel.setGyroAxisZ(arrayOfDouble3);
    this$0.panel.repaint();
    this$0.button_click_pitch = 90;
    this$0.button_click_yaw = 90;
    this$0.button_click_roll = 180;
    this$0.initValues();
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.19
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class Accelerometer$2
  extends SelectionAdapter
{
  Accelerometer$2(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.mode = Accelerometer.Mode.ROLL_PITCH;
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.2
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.widgets.Text;

class Accelerometer$20
  implements ModifyListener
{
  Accelerometer$20(Accelerometer paramAccelerometer) {}
  
  public void modifyText(ModifyEvent paramModifyEvent)
  {
    try
    {
      this$0.north = Double.parseDouble(((Text)widget).getText());
    }
    catch (NumberFormatException localNumberFormatException)
    {
      int i = ((Text)widget).getCaretPosition();
      ((Text)widget).setText(String.valueOf(this$0.north));
      ((Text)widget).setSelection(i - 1, i - 1);
    }
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.20
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import java.io.PrintStream;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.widgets.Text;

class Accelerometer$21
  implements ModifyListener
{
  Accelerometer$21(Accelerometer paramAccelerometer) {}
  
  public void modifyText(ModifyEvent paramModifyEvent)
  {
    try
    {
      this$0.east = Double.parseDouble(((Text)widget).getText());
    }
    catch (NumberFormatException localNumberFormatException)
    {
      int i = ((Text)widget).getCaretPosition();
      ((Text)widget).setText(String.valueOf(this$0.east));
      ((Text)widget).setSelection(i - 1, i - 1);
      System.out.println(i);
    }
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.21
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.widgets.Text;

class Accelerometer$22
  implements ModifyListener
{
  Accelerometer$22(Accelerometer paramAccelerometer) {}
  
  public void modifyText(ModifyEvent paramModifyEvent)
  {
    try
    {
      this$0.vertical = Double.parseDouble(((Text)widget).getText());
    }
    catch (NumberFormatException localNumberFormatException)
    {
      int i = ((Text)widget).getCaretPosition();
      ((Text)widget).setText(String.valueOf(this$0.vertical));
      ((Text)widget).setSelection(i - 1, i - 1);
    }
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.22
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.widgets.Slider;

class Accelerometer$23
  implements Runnable
{
  Accelerometer$23(Accelerometer paramAccelerometer) {}
  
  public void run()
  {
    this$0.yawSlider.setSelection(this$0.yawValue + this$0.button_click_yaw);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.23
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.widgets.Slider;

class Accelerometer$24
  implements Runnable
{
  Accelerometer$24(Accelerometer paramAccelerometer) {}
  
  public void run()
  {
    this$0.pitchSlider.setSelection(this$0.pitchValue + this$0.button_click_pitch);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.24
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.widgets.Slider;

class Accelerometer$25
  implements Runnable
{
  Accelerometer$25(Accelerometer paramAccelerometer) {}
  
  public void run()
  {
    this$0.rollSlider.setSelection(this$0.rollValue + this$0.button_click_roll);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.25
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class Accelerometer$3
  extends SelectionAdapter
{
  Accelerometer$3(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.mode = Accelerometer.Mode.MOVE;
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.3
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

class Accelerometer$4
  extends SelectionAdapter
{
  Accelerometer$4(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    if (this$0.withAxisCheck.getSelection()) {
      this$0.panel.isWithAxis = true;
    } else {
      this$0.panel.isWithAxis = false;
    }
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.4
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import java.text.DecimalFormat;
import javax.swing.Timer;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Text;
import org.tizen.injector.sensor.magnetic.Magnetic;

class Accelerometer$5$1
  implements Runnable
{
  Accelerometer$5$1(Accelerometer.5 param5) {}
  
  public void run()
  {
    DecimalFormat localDecimalFormat = new DecimalFormat("#0.00");
    Magnetic localMagnetic = Magnetic.getInstance();
    double d1 = 0.0D;
    double d2 = 0.0D;
    double d3 = 0.0D;
    double d4 = 0.0D;
    double d5 = 0.0D;
    double d6 = 0.0D;
    d1 = access$0this$1).panel.read_accelx / access$0this$1).panel.g;
    d2 = access$0this$1).panel.read_accely / access$0this$1).panel.g;
    d3 = access$0this$1).panel.read_accelz / access$0this$1).panel.g;
    if ((d1 > -0.01D) && (d1 < 0.01D)) {
      d1 = 0.0D;
    }
    if ((d2 > -0.01D) && (d2 < 0.01D)) {
      d2 = 0.0D;
    }
    if ((d3 > -0.01D) && (d3 < 0.01D)) {
      d3 = 0.0D;
    }
    d4 = localMagnetic.getReadCompassX();
    d5 = localMagnetic.getReadCompassY();
    d6 = localMagnetic.getReadCompassZ();
    if ((d4 > -0.01D) && (d4 < 0.01D)) {
      d4 = 0.0D;
    }
    if ((d5 > -0.01D) && (d5 < 0.01D)) {
      d5 = 0.0D;
    }
    if ((d6 > -0.01D) && (d6 < 0.01D)) {
      d6 = 0.0D;
    }
    if (access$0this$1).checkboxAcceleration.isDisposed())
    {
      access$0this$1).dataOutputTimer.stop();
      Accelerometer.accelerationData = "acceleration : Disable";
      Accelerometer.tiltData = "tilt : Disable";
    }
    else if (Accelerometer.changed_accel)
    {
      if (access$0this$1).checkboxAcceleration.getSelection())
      {
        Accelerometer.accelerationData = "Acceleration : " + localDecimalFormat.format(d1) + ", " + localDecimalFormat.format(d2) + ", " + localDecimalFormat.format(d3);
      }
      else
      {
        Accelerometer.accelerationData = "Acceleration : Disable";
        Accelerometer.tiltData = "Tilt : Disable";
      }
      Accelerometer.changed_accel = false;
    }
    else if (!access$0this$1).checkboxAcceleration.getSelection())
    {
      Accelerometer.accelerationData = "Acceleration : Disable";
      Accelerometer.tiltData = "Tilt : Disable";
    }
    else
    {
      Accelerometer.accelerationData = "Acceleration : " + localDecimalFormat.format(d1) + ", " + localDecimalFormat.format(d2) + ", " + localDecimalFormat.format(d3);
    }
    if (access$0this$1).checkboxMagnetic.isDisposed())
    {
      access$0this$1).dataOutputTimer.stop();
      Accelerometer.magneticData = "Magnetic : Disable";
      Accelerometer.tiltData = "Tilt : Disable";
    }
    else if (Accelerometer.changed_geo)
    {
      if (access$0this$1).checkboxMagnetic.getSelection())
      {
        Accelerometer.magneticData = "Magnetic : " + localDecimalFormat.format(d4) + ", " + localDecimalFormat.format(d5) + ", " + localDecimalFormat.format(d6);
        if (access$0this$1).checkboxTilt.getSelection()) {
          Accelerometer.tiltData = "Tilt : " + localDecimalFormat.format(localMagnetic.getAzimuth()) + ", " + localDecimalFormat.format(localMagnetic.getPitch()) + ", " + localDecimalFormat.format(localMagnetic.getRoll());
        } else {
          Accelerometer.tiltData = "Tilt : Disable";
        }
      }
      else
      {
        Accelerometer.magneticData = "Magnetic : Disable";
        Accelerometer.tiltData = "Tilt : Disable";
      }
      Accelerometer.changed_geo = false;
    }
    else if (!access$0this$1).checkboxMagnetic.getSelection())
    {
      Accelerometer.magneticData = "Magnetic : Disable";
      Accelerometer.tiltData = "Tilt : Disable";
    }
    else
    {
      Accelerometer.magneticData = "Magnetic : " + localDecimalFormat.format(d4) + ", " + localDecimalFormat.format(d5) + ", " + localDecimalFormat.format(d6);
      if (access$0this$1).checkboxTilt.getSelection()) {
        Accelerometer.tiltData = "Tilt : " + localDecimalFormat.format(localMagnetic.getAzimuth()) + ", " + localDecimalFormat.format(localMagnetic.getPitch()) + ", " + localDecimalFormat.format(localMagnetic.getRoll());
      } else {
        Accelerometer.tiltData = "Tilt : Disable";
      }
    }
    if (access$0this$1).checkboxGyro.isDisposed())
    {
      access$0this$1).dataOutputTimer.stop();
      Accelerometer.gyroData = "Gyro : Disable";
    }
    else if (Accelerometer.changed_gyro)
    {
      if (access$0this$1).checkboxGyro.getSelection()) {
        Accelerometer.gyroData = "Gyro : " + localDecimalFormat.format(access$0this$1).panel.gyroPitch) + ", " + localDecimalFormat.format(access$0this$1).panel.gyroRoll) + ", " + localDecimalFormat.format(access$0this$1).panel.gyroYaw);
      } else {
        Accelerometer.gyroData = "Gyro : Disable";
      }
      Accelerometer.changed_gyro = false;
    }
    else if (!access$0this$1).checkboxGyro.getSelection())
    {
      Accelerometer.gyroData = "Gyro : Disable";
    }
    else
    {
      Accelerometer.gyroData = "Gyro : " + localDecimalFormat.format(access$0this$1).panel.gyroPitch) + ", " + localDecimalFormat.format(access$0this$1).panel.gyroRoll) + ", " + localDecimalFormat.format(access$0this$1).panel.gyroYaw);
    }
    if (Accelerometer.access$0(Accelerometer.5.access$0(this$1)).isDisposed()) {
      access$0this$1).dataOutputTimer.stop();
    } else {
      Accelerometer.access$0(Accelerometer.5.access$0(this$1)).setText(Accelerometer.accelerationData + "\n" + Accelerometer.magneticData + "\n" + Accelerometer.tiltData + "\n" + Accelerometer.gyroData);
    }
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.5.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import javax.swing.Timer;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.tizen.injector.sensor.magnetic.Magnetic;

class Accelerometer$5
  implements ActionListener
{
  Accelerometer$5(Accelerometer paramAccelerometer) {}
  
  public void actionPerformed(ActionEvent paramActionEvent)
  {
    if (!PlatformUI.isWorkbenchRunning()) {
      return;
    }
    if (PlatformUI.getWorkbench().isClosing()) {
      return;
    }
    PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
    {
      public void run()
      {
        DecimalFormat localDecimalFormat = new DecimalFormat("#0.00");
        Magnetic localMagnetic = Magnetic.getInstance();
        double d1 = 0.0D;
        double d2 = 0.0D;
        double d3 = 0.0D;
        double d4 = 0.0D;
        double d5 = 0.0D;
        double d6 = 0.0D;
        d1 = this$0.panel.read_accelx / this$0.panel.g;
        d2 = this$0.panel.read_accely / this$0.panel.g;
        d3 = this$0.panel.read_accelz / this$0.panel.g;
        if ((d1 > -0.01D) && (d1 < 0.01D)) {
          d1 = 0.0D;
        }
        if ((d2 > -0.01D) && (d2 < 0.01D)) {
          d2 = 0.0D;
        }
        if ((d3 > -0.01D) && (d3 < 0.01D)) {
          d3 = 0.0D;
        }
        d4 = localMagnetic.getReadCompassX();
        d5 = localMagnetic.getReadCompassY();
        d6 = localMagnetic.getReadCompassZ();
        if ((d4 > -0.01D) && (d4 < 0.01D)) {
          d4 = 0.0D;
        }
        if ((d5 > -0.01D) && (d5 < 0.01D)) {
          d5 = 0.0D;
        }
        if ((d6 > -0.01D) && (d6 < 0.01D)) {
          d6 = 0.0D;
        }
        if (this$0.checkboxAcceleration.isDisposed())
        {
          this$0.dataOutputTimer.stop();
          Accelerometer.accelerationData = "acceleration : Disable";
          Accelerometer.tiltData = "tilt : Disable";
        }
        else if (Accelerometer.changed_accel)
        {
          if (this$0.checkboxAcceleration.getSelection())
          {
            Accelerometer.accelerationData = "Acceleration : " + localDecimalFormat.format(d1) + ", " + localDecimalFormat.format(d2) + ", " + localDecimalFormat.format(d3);
          }
          else
          {
            Accelerometer.accelerationData = "Acceleration : Disable";
            Accelerometer.tiltData = "Tilt : Disable";
          }
          Accelerometer.changed_accel = false;
        }
        else if (!this$0.checkboxAcceleration.getSelection())
        {
          Accelerometer.accelerationData = "Acceleration : Disable";
          Accelerometer.tiltData = "Tilt : Disable";
        }
        else
        {
          Accelerometer.accelerationData = "Acceleration : " + localDecimalFormat.format(d1) + ", " + localDecimalFormat.format(d2) + ", " + localDecimalFormat.format(d3);
        }
        if (this$0.checkboxMagnetic.isDisposed())
        {
          this$0.dataOutputTimer.stop();
          Accelerometer.magneticData = "Magnetic : Disable";
          Accelerometer.tiltData = "Tilt : Disable";
        }
        else if (Accelerometer.changed_geo)
        {
          if (this$0.checkboxMagnetic.getSelection())
          {
            Accelerometer.magneticData = "Magnetic : " + localDecimalFormat.format(d4) + ", " + localDecimalFormat.format(d5) + ", " + localDecimalFormat.format(d6);
            if (this$0.checkboxTilt.getSelection()) {
              Accelerometer.tiltData = "Tilt : " + localDecimalFormat.format(localMagnetic.getAzimuth()) + ", " + localDecimalFormat.format(localMagnetic.getPitch()) + ", " + localDecimalFormat.format(localMagnetic.getRoll());
            } else {
              Accelerometer.tiltData = "Tilt : Disable";
            }
          }
          else
          {
            Accelerometer.magneticData = "Magnetic : Disable";
            Accelerometer.tiltData = "Tilt : Disable";
          }
          Accelerometer.changed_geo = false;
        }
        else if (!this$0.checkboxMagnetic.getSelection())
        {
          Accelerometer.magneticData = "Magnetic : Disable";
          Accelerometer.tiltData = "Tilt : Disable";
        }
        else
        {
          Accelerometer.magneticData = "Magnetic : " + localDecimalFormat.format(d4) + ", " + localDecimalFormat.format(d5) + ", " + localDecimalFormat.format(d6);
          if (this$0.checkboxTilt.getSelection()) {
            Accelerometer.tiltData = "Tilt : " + localDecimalFormat.format(localMagnetic.getAzimuth()) + ", " + localDecimalFormat.format(localMagnetic.getPitch()) + ", " + localDecimalFormat.format(localMagnetic.getRoll());
          } else {
            Accelerometer.tiltData = "Tilt : Disable";
          }
        }
        if (this$0.checkboxGyro.isDisposed())
        {
          this$0.dataOutputTimer.stop();
          Accelerometer.gyroData = "Gyro : Disable";
        }
        else if (Accelerometer.changed_gyro)
        {
          if (this$0.checkboxGyro.getSelection()) {
            Accelerometer.gyroData = "Gyro : " + localDecimalFormat.format(this$0.panel.gyroPitch) + ", " + localDecimalFormat.format(this$0.panel.gyroRoll) + ", " + localDecimalFormat.format(this$0.panel.gyroYaw);
          } else {
            Accelerometer.gyroData = "Gyro : Disable";
          }
          Accelerometer.changed_gyro = false;
        }
        else if (!this$0.checkboxGyro.getSelection())
        {
          Accelerometer.gyroData = "Gyro : Disable";
        }
        else
        {
          Accelerometer.gyroData = "Gyro : " + localDecimalFormat.format(this$0.panel.gyroPitch) + ", " + localDecimalFormat.format(this$0.panel.gyroRoll) + ", " + localDecimalFormat.format(this$0.panel.gyroYaw);
        }
        if (Accelerometer.access$0(this$0).isDisposed()) {
          this$0.dataOutputTimer.stop();
        } else {
          Accelerometer.access$0(this$0).setText(Accelerometer.accelerationData + "\n" + Accelerometer.magneticData + "\n" + Accelerometer.tiltData + "\n" + Accelerometer.gyroData);
        }
      }
    });
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.5
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Slider;

class Accelerometer$6
  extends SelectionAdapter
{
  Accelerometer$6(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.pitchValue = (this$0.pitchSlider.getSelection() - this$0.button_click_pitch);
    this$0.panel.pitchDegree = this$0.pitchValue;
    this$0.panel.repaint();
    this$0.sendMessage(this$0.panel.read_accelx, this$0.panel.read_accely, this$0.panel.read_accelz);
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.6
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;

class Accelerometer$7
  extends MouseAdapter
{
  Accelerometer$7(Accelerometer paramAccelerometer) {}
  
  public void mouseUp(MouseEvent paramMouseEvent)
  {
    this$0.panel.phone_pos_conv = true;
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.7
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Slider;

class Accelerometer$8
  extends SelectionAdapter
{
  Accelerometer$8(Accelerometer paramAccelerometer) {}
  
  public void widgetSelected(SelectionEvent paramSelectionEvent)
  {
    this$0.rollValue = (this$0.rollSlider.getSelection() - this$0.button_click_roll);
    this$0.panel.rollDegree = this$0.rollValue;
    this$0.panel.repaint();
    this$0.sendMessage(this$0.panel.read_accelx, this$0.panel.read_accely, this$0.panel.read_accelz);
    super.widgetSelected(paramSelectionEvent);
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.8
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;

class Accelerometer$9
  extends MouseAdapter
{
  Accelerometer$9(Accelerometer paramAccelerometer) {}
  
  public void mouseUp(MouseEvent paramMouseEvent)
  {
    this$0.panel.phone_pos_conv = true;
  }
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.9
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

public enum Accelerometer$Mode
{
  YAW_PITCH,  ROLL_PITCH,  MOVE;
}

/* Location:
 * Qualified Name:     org.tizen.injector.sensor.accelerometer.page.Accelerometer.Mode
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.tizen.injector.sensor.accelerometer.page;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.io.PrintStream;
import java.text.DecimalFormat;
import javax.swing.Timer;
import org.eclipse.swt.awt.SWT_AWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Slider;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.tizen.injector.protocol.sensor.TestSensorMessage;
import org.tizen.injector.provider.AbstractInjectorItem;
import org.tizen.injector.provider.AbstractInjectorPage;
import org.tizen.injector.sensor.magnetic.Magnetic;
import org.tizen.injector.socket.TelephonySocket;
import org.tizen.injector.util.FormPageUtil;

public class Accelerometer
  extends AbstractInjectorPage
{
  Slider yawSlider;
  Slider pitchSlider;
  Slider rollSlider;
  int yawValue;
  int pitchValue;
  int rollValue;
  double xValue;
  double yValue;
  double zValue;
  Mode mode;
  MobilePanel panel;
  Button checkboxAcceleration;
  Button checkboxGyro;
  Button checkboxMagnetic;
  Button checkboxTilt;
  Button button01;
  Button button02;
  Button button03;
  Button withAxisCheck;
  private Text dataText;
  Timer dataOutputTimer;
  int button_click_yaw = 180;
  int button_click_pitch = 90;
  int button_click_roll = 180;
  double north = 22874.1D;
  double east = 5939.5D;
  double vertical = 43180.5D;
  static double tmp_accel_x = 0.1D;
  static double tmp_accel_y = 0.1D;
  static double tmp_accel_z = 0.1D;
  static double tmp_gyro_x = 0.1D;
  static double tmp_gyro_y = 0.1D;
  static double tmp_gyro_z = 0.1D;
  static double tmp_geo_x = 0.1D;
  static double tmp_geo_y = 0.1D;
  static double tmp_geo_z = 0.1D;
  static double tmp_geo_a = 0.1D;
  static double tmp_geo_b = 0.1D;
  static double tmp_geo_c = 0.1D;
  static double tmp_geo_d = 0.1D;
  static boolean changed_accel = false;
  static boolean changed_gyro = false;
  static boolean changed_geo = false;
  static String accelerationData;
  static String magneticData;
  static String tiltData;
  static String gyroData;
  static boolean tilt_active = true;
  static boolean button_click = false;
  static boolean isFirstInitial = true;
  
  public Accelerometer(AbstractInjectorItem paramAbstractInjectorItem, String paramString)
  {
    super(paramAbstractInjectorItem, paramString);
  }
  
  protected void createContents()
  {
    Composite localComposite1 = formUtil.createComposite(parent, 2);
    Composite localComposite2 = formUtil.createComposite(localComposite1);
    GridData localGridData1 = new GridData(4, 4, false, true);
    widthHint = 260;
    localComposite2.setLayoutData(localGridData1);
    Composite localComposite3 = new Composite(localComposite2, 16779264);
    panel = new MobilePanel(this);
    Frame localFrame = SWT_AWT.new_Frame(localComposite3);
    localFrame.add(panel);
    localFrame.pack();
    localGridData1 = new GridData(2, 2, false, true);
    widthHint = 200;
    heightHint = 200;
    localComposite3.setLayoutData(localGridData1);
    Composite localComposite4 = formUtil.createComposite(localComposite2, 3);
    localGridData1 = new GridData(16777216, 4, false, true);
    localComposite4.setLayoutData(localGridData1);
    button01 = formUtil.createButton(localComposite4, "X/Z", 16);
    button01.setSelection(true);
    mode = Mode.YAW_PITCH;
    button01.addSelectionListener(new SelectionAdapter()
    {
      public void widgetSelected(SelectionEvent paramAnonymousSelectionEvent)
      {
        mode = Accelerometer.Mode.YAW_PITCH;
        super.widgetSelected(paramAnonymousSelectionEvent);
      }
    });
    button02 = formUtil.createButton(localComposite4, "X/Y", 16);
    button02.addSelectionListener(new SelectionAdapter()
    {
      public void widgetSelected(SelectionEvent paramAnonymousSelectionEvent)
      {
        mode = Accelerometer.Mode.ROLL_PITCH;
        super.widgetSelected(paramAnonymousSelectionEvent);
      }
    });
    button03 = formUtil.createButton(localComposite4, "Move", 16);
    button03.addSelectionListener(new SelectionAdapter()
    {
      public void widgetSelected(SelectionEvent paramAnonymousSelectionEvent)
      {
        mode = Accelerometer.Mode.MOVE;
        super.widgetSelected(paramAnonymousSelectionEvent);
      }
    });
    Composite localComposite5 = formUtil.createComposite(localComposite2, 1);
    localGridData1 = new GridData(16777216, 4, false, true);
    localComposite5.setLayoutData(localGridData1);
    withAxisCheck = formUtil.createButton(localComposite5, "With axis", 32);
    withAxisCheck.setSelection(false);
    withAxisCheck.addSelectionListener(new SelectionAdapter()
    {
      public void widgetSelected(SelectionEvent paramAnonymousSelectionEvent)
      {
        if (withAxisCheck.getSelection()) {
          panel.isWithAxis = true;
        } else {
          panel.isWithAxis = false;
        }
        super.widgetSelected(paramAnonymousSelectionEvent);
      }
    });
    dataText = new Text(localComposite2, 2050);
    dataText.setText("\n\n\n");
    localGridData1 = new GridData(2, 2, true, false);
    widthHint = 200;
    dataText.setLayoutData(localGridData1);
    dataText.setEnabled(false);
    dataOutputTimer = new Timer(200, new ActionListener()
    {
      public void actionPerformed
1 2 3 4 5 6 7

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd