|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pavlov.pluglets.feedback.random.DefaultVisualFeedbackMode
public class DefaultVisualFeedbackMode
A visual feedback mode is a strategy for altering an image based on a user's correct or incorrect response.
Field Summary | |
---|---|
protected int |
decrement
How much the size is decreased for an incorrect response. |
protected int |
increment
How much the size is increased for a correct response. |
protected int |
initialSize
The initial size of an image in this mode. |
protected String |
message
A message describing how the image was changed in response to the last answer. |
protected int |
minimumSize
The minimum size of an image in this mode. |
protected String |
name
A descriptive name for this mode. |
protected int |
size
Current image size. |
Constructor Summary | |
---|---|
DefaultVisualFeedbackMode(int is,
int inc,
int dec,
int minSz)
Creates a new DefaultVisualFeedbackMode instance. |
Method Summary | |
---|---|
String |
getMessage()
Return a message that explains the feedback action taken. |
String |
getShortName()
Return a user-understandable name for the behaviour of this mode. |
int |
getSize()
Gets the current image size. |
void |
rightEvent()
The user answered correctly. |
void |
setName(String _n)
Set the user-understandable name for the behaviour of this mode. |
void |
setSize(int what)
Sets the current image size. |
String |
toString()
Returns this mode's name as a String. |
void |
wrongEvent()
The user answered incorrectly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int initialSize
protected int minimumSize
protected int increment
protected int decrement
protected int size
protected String name
protected String message
Constructor Detail |
---|
public DefaultVisualFeedbackMode(int is, int inc, int dec, int minSz)
DefaultVisualFeedbackMode
instance.
is
- an int
valueinc
- an int
valuedec
- an int
valueminSz
- an int
valueMethod Detail |
---|
public int getSize()
int
valuepublic void setSize(int what)
what
- an int
valuepublic void rightEvent()
public void wrongEvent()
public String toString()
toString
in class Object
String
valuepublic void setName(String _n)
_n
- a String
valuepublic String getShortName()
String
valuepublic String getMessage()
String
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |