standup.clouds
Class CloudButtonJokeGetter

java.lang.Object
  extended by standup.clouds.EntityAnimatedInteractive
      extended by standup.clouds.EntityAnimatedInteractiveBubbleLabel
          extended by standup.clouds.CloudButton
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class standup.clouds.CloudButton
CloudButton.LineMode
 
Field Summary
private  String logFileText
           
 
Fields inherited from class standup.clouds.CloudButton
message, progressMapStage
 
Fields inherited from class standup.clouds.EntityAnimatedInteractiveBubbleLabel
bubbleLabel, cloudLabelLayout, myShape
 
Fields inherited from class standup.clouds.EntityAnimatedInteractive
containingPanel, frontend
 
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
 
Method Summary
 String getLogFileText()
           
 
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 standup.clouds.EntityAnimatedInteractiveBubbleLabel
contains, draw, getBubbleLabel, getCurrentDimension, getCurrentLocation, getSpeechText
 
Methods inherited from class standup.clouds.EntityAnimatedInteractive
dehighlight, getHelpText, highlight, isHighlighted, speakSpeechText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logFileText

private final String logFileText
Constructor Detail

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 -
Method Detail

getLogFileText

public String getLogFileText()
Specified by:
getLogFileText in class EntityAnimatedInteractive