Package de.dfki.km.text20.browserplugin.services.sessionrecorder.events

Examples of de.dfki.km.text20.browserplugin.services.sessionrecorder.events.ImageEvent


        this.evaluator.setFilter(this.filter);

        // Create gaze handler
        this.allGazeHandler.add(new RawGazeHandler());
        this.allGazeHandler.add(new RawApplicationGazeHandler());
        this.allGazeHandler.add(new FixationHandler());
        this.allGazeHandler.add(new ReducedApplicationGazeHandler());
        this.allGazeHandler.add(new PerusalHandler());
        this.allGazeHandler.add(new HeadPositionHandler());
        this.allGazeHandler.add(new WeakSaccadeHandler());
View Full Code Here


        // Create gaze handler
        this.allGazeHandler.add(new RawGazeHandler());
        this.allGazeHandler.add(new RawApplicationGazeHandler());
        this.allGazeHandler.add(new FixationHandler());
        this.allGazeHandler.add(new ReducedApplicationGazeHandler());
        this.allGazeHandler.add(new PerusalHandler());
        this.allGazeHandler.add(new HeadPositionHandler());
        this.allGazeHandler.add(new WeakSaccadeHandler());

        for (final AbstractGazeHandler gazeHandler : this.allGazeHandler) {
            gazeHandler.init(this, this.pseudorenderer, this.browserPlugin, this.evaluator);
View Full Code Here

        this.allGazeHandler.add(new RawApplicationGazeHandler());
        this.allGazeHandler.add(new FixationHandler());
        this.allGazeHandler.add(new ReducedApplicationGazeHandler());
        this.allGazeHandler.add(new PerusalHandler());
        this.allGazeHandler.add(new HeadPositionHandler());
        this.allGazeHandler.add(new WeakSaccadeHandler());

        for (final AbstractGazeHandler gazeHandler : this.allGazeHandler) {
            gazeHandler.init(this, this.pseudorenderer, this.browserPlugin, this.evaluator);
        }
View Full Code Here

        this.allGazeHandler.add(new RawGazeHandler());
        this.allGazeHandler.add(new RawApplicationGazeHandler());
        this.allGazeHandler.add(new FixationHandler());
        this.allGazeHandler.add(new ReducedApplicationGazeHandler());
        this.allGazeHandler.add(new PerusalHandler());
        this.allGazeHandler.add(new HeadPositionHandler());
        this.allGazeHandler.add(new WeakSaccadeHandler());

        for (final AbstractGazeHandler gazeHandler : this.allGazeHandler) {
            gazeHandler.init(this, this.pseudorenderer, this.browserPlugin, this.evaluator);
        }
View Full Code Here

        this.evaluator = evaluationManager.createEvaluator(trackingDevice);
        this.evaluator.setFilter(this.filter);

        // Create gaze handler
        this.allGazeHandler.add(new RawGazeHandler());
        this.allGazeHandler.add(new RawApplicationGazeHandler());
        this.allGazeHandler.add(new FixationHandler());
        this.allGazeHandler.add(new ReducedApplicationGazeHandler());
        this.allGazeHandler.add(new PerusalHandler());
        this.allGazeHandler.add(new HeadPositionHandler());
        this.allGazeHandler.add(new WeakSaccadeHandler());
View Full Code Here

        this.evaluator = evaluationManager.createEvaluator(trackingDevice);
        this.evaluator.setFilter(this.filter);

        // Create gaze handler
        this.allGazeHandler.add(new RawGazeHandler());
        this.allGazeHandler.add(new RawApplicationGazeHandler());
        this.allGazeHandler.add(new FixationHandler());
        this.allGazeHandler.add(new ReducedApplicationGazeHandler());
        this.allGazeHandler.add(new PerusalHandler());
        this.allGazeHandler.add(new HeadPositionHandler());
View Full Code Here

        // Create gaze handler
        this.allGazeHandler.add(new RawGazeHandler());
        this.allGazeHandler.add(new RawApplicationGazeHandler());
        this.allGazeHandler.add(new FixationHandler());
        this.allGazeHandler.add(new ReducedApplicationGazeHandler());
        this.allGazeHandler.add(new PerusalHandler());
        this.allGazeHandler.add(new HeadPositionHandler());
        this.allGazeHandler.add(new WeakSaccadeHandler());

        for (final AbstractGazeHandler gazeHandler : this.allGazeHandler) {
View Full Code Here

        // Start a background thread to record the current mouse position.
        final Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                while (true) {
                    final SessionRecorder sr = BrowserPluginImpl.this.sessionRecorder;
                    final PointerInfo pointerInfo = MouseInfo.getPointerInfo();
                    final Point point = pointerInfo.getLocation();

                    if (sr != null) sr.updateMousePosition(point.x, point.y);

                    try {
                        Thread.sleep(25);
                    } catch (final InterruptedException e) {
                        e.printStackTrace();
View Full Code Here

                                }
                            }

                            // Check what kind of event it is and if we have some special rules
                            if (event instanceof ImageEvent && loadImages.get()) {
                                final ImageEvent e = (ImageEvent) event;
                                final InputStream is = SessionReplayImpl.this.loader.getFile(e.associatedFilename);
                                final BufferedImage read = ImageIO.read(is);

                                event = new PseudoImageEvent(e, read);
                            }

                            // Now we are permitted to fire the event.
                            try {
                                listener.nextEvent(event);
                            } catch (Exception e) {
                                e.printStackTrace();
                            }

                            previousEvent = event;
                        } catch (EOFException e) {
                            e.printStackTrace();
                            this.hasMore = false;
                            if (gettingMetaInfo.get()) {
                                realtimeDuration.set(currentEvenTime.get() - firstEventTime.get());
                            }
                        } catch (IOException e) {
                            e.printStackTrace();
                        } catch (ClassNotFoundException e) {
                            e.printStackTrace();
                        }
                    }
                } finally {
                    SessionReplayImpl.this.finishedLock.unlock();

                    try {
                        barrier.await();
                    } catch (InterruptedException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                    } catch (BrokenBarrierException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                    }
                }
            }
        });

        t.setDaemon(true);
        t.start();

        // Synchronize with starting of thread.
        try {
            barrier.await();
        } catch (final InterruptedException e) {
            e.printStackTrace();
        } catch (final BrokenBarrierException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

    /**
     *
     * @param file
     */
    public void newImage(final String file) {
        addEvent(new ImageEvent(file));
    }
View Full Code Here

TOP

Related Classes of de.dfki.km.text20.browserplugin.services.sessionrecorder.events.ImageEvent

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.