| com.xoetrope.event.XStateListener
All known Subclasses: com.xoetrope.swing.survey.XQuestion, com.xoetrope.swing.XCaptionedImage, com.xoetrope.awt.XKeypad, com.xoetrope.swing.XKeypad, com.xoetrope.awt.survey.XQuestion,
XStateListener | public interface XStateListener (Code) | | An interface required by the XClickListener class.The interface is used to
set the response selected by a user from a set of responses
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.4 $
|
findCurrentResponse | public int findCurrentResponse(int x, int y)(Code) | | Find the response corresponding to the current point
Parameters: x - the x coordinate of the mouse click Parameters: y - the y coordinate of the mouse click the response value if the mouse were click at the specified location, or -1 if not selection is available |
paintStates | public void paintStates()(Code) | | Repaint the response states
|
setState | public boolean setState(int x, int y, int defResponse)(Code) | | Find a response state based on the coordinates of the mouse click
Parameters: x - the x coordinate of the mouse click Parameters: y - the y coordinate of the mouse click Parameters: defResponse - the default response true if a response was found |
updateSelectedState | public void updateSelectedState()(Code) | | Notification that a state change has taken place
|
|
|