Package com.grt192.event.component

Examples of com.grt192.event.component.JagPotentiometerEvent


  }

  protected void notifyEncoderChange() {
    for (int i = 0; i < encoderListeners.size(); i++) {
      ((JagEncoderListener) encoderListeners.elementAt(i))
          .countDidChange(new JagEncoderEvent(this,
              EncoderEvent.DEFAULT, getState("Distance"),
              (getState("Direction") == Sensor.TRUE)));
    }
  }
View Full Code Here


  }

  protected void notifyEncoderStarted() {
    for (int i = 0; i < encoderListeners.size(); i++) {
      ((JagEncoderListener) encoderListeners.elementAt(i))
          .rotationDidStart(new JagEncoderEvent(this,
              EncoderEvent.DEFAULT, getState("Distance"),
              (getState("Direction") == Sensor.TRUE)));
    }
  }
View Full Code Here

  }

  protected void notifyEncoderStopped() {
    for (int i = 0; i < encoderListeners.size(); i++) {
      ((JagEncoderListener) encoderListeners.elementAt(i))
          .rotationDidStop(new JagEncoderEvent(this,
              EncoderEvent.DEFAULT, getState("Distance"),
              (getState("Direction") == Sensor.TRUE)));
    }
  }
View Full Code Here

  }

  protected void notifyDirectionChanged() {
    for (int i = 0; i < encoderListeners.size(); i++) {
      ((JagEncoderListener) encoderListeners.elementAt(i))
          .rotationDidStop(new JagEncoderEvent(this,
              EncoderEvent.DEFAULT, getState("Distance"),
              (getState("Direction") == Sensor.TRUE)));
    }
  }
View Full Code Here

    }

    /** Notifies all <code>JagEncoderListener</code>s that the count has changed */
    protected void notifyEncoderChange() {
        for (int i = 0; i < encoderListeners.size(); i++) {
            ((JagEncoderListener) encoderListeners.elementAt(i)).countDidChange(new JagEncoderEvent(this,
                    JagEncoderEvent.DISTANCE, getState(DISTANCE),
                    (getState(DIRECTION) == Sensor.TRUE)));
        }
    }
View Full Code Here

    }

    /** Notifies all <code>JagEncoderListener</code>s that encoder rotation has started */
    protected void notifyEncoderStarted() {
        for (int i = 0; i < encoderListeners.size(); i++) {
            ((JagEncoderListener) encoderListeners.elementAt(i)).rotationDidStart(new JagEncoderEvent(this,
                    JagEncoderEvent.STARTED, getState(DISTANCE),
                    (getState(DIRECTION) == Sensor.TRUE)));
        }
    }
View Full Code Here

     * rotation has changed
     */
    protected void notifyPotentiometerChange() {
        for (int i = 0; i < potentiometerListeners.size(); i++) {
            ((JagPotentiometerListener) potentiometerListeners.elementAt(i))
                    .countDidChange(new JagPotentiometerEvent(this,
                    JagPotentiometerEvent.DISTANCE, getState(DISTANCE),
                    (getState(DISTANCE) == Sensor.TRUE)));
        }
    }
View Full Code Here

     * rotation has started
     */
    protected void notifyPotentiometerStarted() {
        for (int i = 0; i < potentiometerListeners.size(); i++) {
            ((JagPotentiometerListener) potentiometerListeners.elementAt(i))
                    .rotationDidStart(new JagPotentiometerEvent(this,
                    JagPotentiometerEvent.STARTED, getState(DISTANCE),
                    (getState(DISTANCE) == Sensor.TRUE)));
        }
    }
View Full Code Here

     * rotation has stopped
     */
    protected void notifyPotentiometerStopped() {
        for (int i = 0; i < potentiometerListeners.size(); i++) {
            ((JagPotentiometerListener) potentiometerListeners.elementAt(i))
                    .rotationDidStop(new JagPotentiometerEvent(this,
                    JagPotentiometerEvent.STOPPED, getState(DISTANCE),
                    (getState(DISTANCE) == Sensor.TRUE)));
        }
    }
View Full Code Here

     * direction has changed
     */
    protected void notifyDirectionChanged() {
        for (int i = 0; i < potentiometerListeners.size(); i++) {
            ((JagPotentiometerListener) potentiometerListeners.elementAt(i))
                    .changedDirection(new JagPotentiometerEvent(this,
                    JagPotentiometerEvent.DIRECTION, getState(DISTANCE),
                    (getState(DISTANCE) == Sensor.TRUE)));
        }
    }
View Full Code Here

TOP

Related Classes of com.grt192.event.component.JagPotentiometerEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.