Package de.dfki.km.text20.browserplugin.services.mastergazehandler.impl.gazehandler.old

Examples of de.dfki.km.text20.browserplugin.services.mastergazehandler.impl.gazehandler.old.ReadingHandlerOld$Event


            //
        }

        final List<Fixation> lastFixations = flu.getLastFixations(2);

        final Fixation a = lastFixations.get(0);
        final Fixation b = lastFixations.get(1);

        dispatchWith(fl, a, b);
    }
View Full Code Here


    /**
     * @return .
     */
    public RenderElement getLastFixatedElement() {
        final Fixation fixation = this.correctedFixations.get(this.correctedFixations.size() - 1);
        @SuppressWarnings("unused")
        final Point location2 = this.pseudorenderer.convertPoint(fixation.getCenter(), CoordinatesType.SCREEN_BASED, CoordinatesType.DOCUMENT_BASED);

        return null;
    }
View Full Code Here

    /**
     * @return .
     */
    public int getLastFixatedWordPos() {
        final Fixation fixation = this.correctedFixations.get(this.correctedFixations.size() - 1);
        final Point location2 = this.pseudorenderer.convertPoint(fixation.getCenter(), CoordinatesType.SCREEN_BASED, CoordinatesType.DOCUMENT_BASED);

        final RenderElement element = getLastFixatedElement();

        // Get fixated word.
        if (element != null && element instanceof TextualRenderElement) {
View Full Code Here

     * First observation-point of this event.
     *
     * @return .
     */
    public long getStartTime() {
        final Fixation fixation = this.$fixations.compact().get(0);
        if (fixation == null || fixation.getTrackingEvents() == null) return 0;

        final EyeTrackingEvent trackingEvent = fixation.getTrackingEvents().get(0);
        if (trackingEvent == null) return 0;

        return trackingEvent.getEventTime();
    }
View Full Code Here

     * Last observation-point of this fixation line.
     *
     * @return .
     */
    public long getStopTime() {
        final Fixation fixation = this.$fixations.compact().get(-1);
        if (fixation == null || fixation.getTrackingEvents() == null) return 0;

        final EyeTrackingEvent trackingEvent = $(fixation.getTrackingEvents()).get(-1);
        if (trackingEvent == null) return 0;

        return trackingEvent.getEventTime();
    }
View Full Code Here

                              final List<EyeTrackingEvent> trackingEvents) {

        final Point center = getCenter(trackingEvents);
        final List<EyeTrackingEvent> myTrackingEvents = new ArrayList<EyeTrackingEvent>(trackingEvents);

        callListener(new FixationEvent() {
            @Override
            public Fixation getFixation() {
                return new Fixation() {

                    @Override
View Full Code Here

        return new ArrayList<Fixation>(this.lastFixations.subList(s - n, s));
    }

    @Override
    public void init(AddGazeEvaluationListenerOption... options) {
        this.gazeEvaluator.addEvaluationListener(new FixationListener() {

            @Override
            public void newEvaluationEvent(final FixationEvent event) {
                if (event.getType().equals(FixationEventType.FIXATION_END)) {
                    FixationLineHandler4.this.currentTime = event.getGenerationTime();
View Full Code Here

     * @see de.dfki.km.augmentedtext.services.gazeevaluator.impl.AbstractGazeHandler#init(de.dfki.km.augmentedtext.services.gazeevaluator.options.AddGazeEvaluationListenerOption[])
     */
    @Override
    public void init(AddGazeEvaluationListenerOption... options) {

        this.gazeEvaluator.addEvaluationListener(new FixationListener() {

            @Override
            public void newEvaluationEvent(final FixationEvent event) {
                newGazeEvent(event);
            }
View Full Code Here

     * @see de.dfki.km.augmentedtext.sandbox.services.gazeevaluator.impl.AbstractGazeHandler#init()
     */

    @Override
    public void init(AddGazeEvaluationListenerOption... options) {
        this.gazeEvaluator.addEvaluationListener(new FixationListener() {

            @Override
            public void newEvaluationEvent(final FixationEvent event) {
                if (event.getType().equals(FixationEventType.FIXATION_START)) {
                    nextFixation(event.getGenerationTime(), event.getFixation());
View Full Code Here

     * Dispatches the new event to the listener.
     *
     * @param type
     */
    private void dispatch(final FixationLineEventType type) {
        final FixationLine line = this.currentFixationLine;

        final long time = FixationLineHandler4.this.currentTime;

        callListener(new FixationLineEvent() {

View Full Code Here

TOP

Related Classes of de.dfki.km.text20.browserplugin.services.mastergazehandler.impl.gazehandler.old.ReadingHandlerOld$Event

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.