xinca.components
Interface XBoardListener


public interface XBoardListener

A listener for the xINCA xBoard.

Copyright (c) 2002 ICMC-USP.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

Since:
JDK1.4
Author:
Renan Gonçalves Cattelan

Method Summary
 void handleJumpToSlide(int index, int lastIndex, java.awt.image.BufferedImage boardImage, boolean changed)
          Callback method to handle a jumpToSlide action this whiteboard is being notified of
 void handleNewSlideAt(int index, int lastIndex, java.awt.image.BufferedImage boardImage, boolean changed)
          Callback method to handle a newSlideAt action this whiteboard is being notified of
 void handleStroke(common.data.Stroke stroke)
          Callback method to handle a Stroke this whiteboard is being notified of
 

Method Detail

handleStroke

public void handleStroke(common.data.Stroke stroke)
Callback method to handle a Stroke this whiteboard is being notified of

Parameters:
stroke - is the Stroke to handle

handleNewSlideAt

public void handleNewSlideAt(int index,
                             int lastIndex,
                             java.awt.image.BufferedImage boardImage,
                             boolean changed)
Callback method to handle a newSlideAt action this whiteboard is being notified of

Parameters:
index - is the position where the new slide is being inserted in
lastIndex - is the position of the previous slide
boardImage - is the image of the previous slide
changed - indicates if the image have changed from its previous instance

handleJumpToSlide

public void handleJumpToSlide(int index,
                              int lastIndex,
                              java.awt.image.BufferedImage boardImage,
                              boolean changed)
Callback method to handle a jumpToSlide action this whiteboard is being notified of

Parameters:
index - is the index of the slide is being jumped to
lastIndex - is the position of the previous slide
boardImage - is the image of the previous slide
changed - indicates if the image have changed from its previous instance