standup.clouds
Class ScrollerButton

java.lang.Object
  extended by standup.clouds.EntityAnimatedInteractive
      extended by standup.clouds.ScrollerButton
All Implemented Interfaces:
Entity, EntityAnimated

public class ScrollerButton
extends EntityAnimatedInteractive

Author:
Ruli Manurung

Field Summary
(package private)  STANDUPSpeakable[] cachedMySpeakable
           
(package private)  int direction
           
private  BufferedImage image
           
private  BufferedImage imageHighlighted
           
(package private)  Point location
           
(package private)  int page
           
static int SCROLLLEFT
           
static int SCROLLRIGHT
           
(package private)  Dimension size
           
(package private)  CloudButton thing
           
 
Fields inherited from class standup.clouds.EntityAnimatedInteractive
containingPanel, frontend
 
Constructor Summary
ScrollerButton(CloudFrontend _f, JPanel _p, Point _location, int _height, CloudButton _thing, int _page, int _direction)
           
 
Method Summary
 void clicked()
           
 boolean contains(int pointx, int pointy)
          AnimatedEntityInteractive methods
 void draw(Graphics2D g2)
           
 Dimension getCurrentDimension()
           
 Point getCurrentLocation()
           
 String getLogFileText()
           
 STANDUPSpeakable[] getSpeechText()
           
 void step(int frame)
          AnimatedEntity methods
 
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

location

final Point location

size

final Dimension size

thing

final CloudButton thing

page

final int page

direction

final int direction

SCROLLLEFT

public static final int SCROLLLEFT
See Also:
Constant Field Values

SCROLLRIGHT

public static final int SCROLLRIGHT
See Also:
Constant Field Values

cachedMySpeakable

final STANDUPSpeakable[] cachedMySpeakable

image

private final BufferedImage image

imageHighlighted

private final BufferedImage imageHighlighted
Constructor Detail

ScrollerButton

ScrollerButton(CloudFrontend _f,
               JPanel _p,
               Point _location,
               int _height,
               CloudButton _thing,
               int _page,
               int _direction)
Method Detail

contains

public boolean contains(int pointx,
                        int pointy)
AnimatedEntityInteractive methods

Specified by:
contains in class EntityAnimatedInteractive

getSpeechText

public STANDUPSpeakable[] getSpeechText()
Specified by:
getSpeechText in class EntityAnimatedInteractive

clicked

public void clicked()
Overrides:
clicked in class EntityAnimatedInteractive

step

public void step(int frame)
AnimatedEntity methods


draw

public void draw(Graphics2D g2)

getCurrentDimension

public Dimension getCurrentDimension()

getCurrentLocation

public Point getCurrentLocation()

getLogFileText

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