001    package com.github.sarxos.webcam;
002    
003    import java.util.EventObject;
004    
005    
006    /**
007     * Webcam detected motion event.
008     * 
009     * @author Bartosz Firyn (SarXos)
010     */
011    public class WebcamMotionEvent extends EventObject {
012    
013            private static final long serialVersionUID = -7245768099221999443L;
014    
015            private int strength = 0;
016    
017            /**
018             * Create detected motion event.
019             * 
020             * @param detector
021             * @param strength
022             */
023            public WebcamMotionEvent(WebcamMotionDetector detector, int strength) {
024                    super(detector);
025                    this.strength = strength;
026            }
027    
028            /**
029             * @return Motion strength
030             */
031            public int getStrength() {
032                    return strength;
033            }
034    }