standup.clouds
Class CloudButtonJokeGetter
java.lang.Object
standup.clouds.EntityAnimatedInteractive
standup.clouds.EntityAnimatedInteractiveBubbleLabel
standup.clouds.CloudButton
standup.clouds.CloudButtonJokeGetter
- All Implemented Interfaces:
- Entity, EntityAnimated
public class CloudButtonJokeGetter
- extends CloudButton
A CloudButton
that, when selected by the user, presents the option of
getting a NEW joke or seeing OLD jokes.
Various constructors are provided to get jokes by topic, word, type, etc.
- Author:
- Ruli Manurung
Constructor Summary |
CloudButtonJokeGetter(CloudFrontend f,
CloudButton p)
Constructor for unconstrained JokeGetter |
CloudButtonJokeGetter(CloudFrontend f,
CloudButton p,
CloudLabel bl,
CloudLabel msg,
CloudLabel help,
Lexeme l)
Constructor for lexeme-based JokeGetter -- with user-specified
BubbleLabel |
CloudButtonJokeGetter(CloudFrontend f,
CloudButton p,
JokeType type)
Constructor for type-based JokeGetter |
CloudButtonJokeGetter(CloudFrontend f,
CloudButton p,
LexemeSet lxs,
CloudLabel bl)
Constructor for word-based (i.e. |
CloudButtonJokeGetter(CloudFrontend f,
CloudButton p,
Topic t,
CloudLabel bl)
Constructor for topic-based JokeGetter |
Methods inherited from class standup.clouds.CloudButton |
clicked, executeClick, getCentreChild, getCentreSize, getMaxChildrenDisplay, getMessage, getOffsetAngle, getParent, getPeripheralChildren, getRingSize, layoutCloudLabel, prepareForAnimation, removeChild, setCentreChild, setLocation, setMessage, setPeripheralChildren, setSize, showMessage, showMessage, step |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logFileText
private final String logFileText
CloudButtonJokeGetter
public CloudButtonJokeGetter(CloudFrontend f,
CloudButton p,
LexemeSet lxs,
CloudLabel bl)
- Constructor for word-based (i.e. non-lexeme-specific) JokeGetter
CloudButtonJokeGetter
public CloudButtonJokeGetter(CloudFrontend f,
CloudButton p,
Topic t,
CloudLabel bl)
- Constructor for topic-based JokeGetter
CloudButtonJokeGetter
public CloudButtonJokeGetter(CloudFrontend f,
CloudButton p,
CloudLabel bl,
CloudLabel msg,
CloudLabel help,
Lexeme l)
- Constructor for lexeme-based JokeGetter -- with user-specified
BubbleLabel
- Parameters:
p
- l
-
CloudButtonJokeGetter
public CloudButtonJokeGetter(CloudFrontend f,
CloudButton p,
JokeType type)
- Constructor for type-based JokeGetter
- Parameters:
p
- type
-
CloudButtonJokeGetter
public CloudButtonJokeGetter(CloudFrontend f,
CloudButton p)
- Constructor for unconstrained JokeGetter
- Parameters:
p
-
getLogFileText
public String getLogFileText()
- Specified by:
getLogFileText
in class EntityAnimatedInteractive