public class GGCheckButton extends GGButtonBase
| Constructor and Description | 
|---|
GGCheckButton(java.lang.String text)
Creates a unchecked check button with the given text annotation, white text
 and transparent background colors. 
 | 
GGCheckButton(java.lang.String text,
             boolean isChecked)
Creates a check button with the given text annotation, white text and
 and transparent background colors. 
 | 
GGCheckButton(java.lang.String text,
             int textColor,
             int bkColor)
Creates a unchecked check button with the given text annotation and given
 text and background colors. 
 | 
GGCheckButton(java.lang.String text,
             int textColor,
             int bkColor,
             int textSize,
             boolean isChecked)
Creates a check button with the given text annotation and given
 text and background colors and given text size. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCheckButtonListener(GGCheckButtonListener listener)
Registers a GGCheckButtonListener to get notifications when the button is manipulated. 
 | 
boolean | 
isChecked()
Returns the current state of the button. 
 | 
void | 
reset()
Overrides the actor's reset() called when the button is added to the game grid. 
 | 
void | 
setChecked(boolean b)
Sets the button in the checked/unchecked state. 
 | 
isEnabled, setEnabled, setHotspotArea, setRefreshEnabledact, addActorCollisionListener, addActorTouchListener, addActorTouchListener, addBorderListener, addCollisionActor, addCollisionActors, addCollisionTile, addCollisionTiles, addTileCollisionListener, collide, collide, containsPixel, delay, displace, getBackground, getCollisionActors, getCollisionActorsInRange, getCollisionTiles, getCurrentImage, getDirection, getDirectionStart, getDisplacePosition, getHeight, getIdVisible, getImage, getImage, getIntDirection, getLocation, getLocationOffset, getLocationStart, getNbCycles, getNbHorzCells, getNbSprites, getNbVertCells, getNeighbours, getNeighbours, getNextMoveLocation, getPixelColor, getPixelLocation, getRotatedImage, getRotatedPosition, getRotationIndex, getScaledImage, getScaledImage, getScaledImage, getSlowDown, getWidth, getX, getXStart, getY, getYStart, getZoomedImage, hide, isActEnabled, isActorCollisionEnabled, isHorzMirror, isInGrid, isMoveValid, isNearBorder, isRemoved, isRotatable, isTileCollisionEnabled, isVertMirror, isVisible, move, move, nearBorder, removeSelf, rotate, rotate, setActEnabled, setActorCollisionEnabled, setActorTouchCircle, setActorTouchCircle, setActorTouchEnabled, setActorTouchImage, setActorTouchImage, setActorTouchRectangle, setActorTouchRectangle, setCollisionCircle, setCollisionCircle, setCollisionImage, setCollisionImage, setCollisionLine, setCollisionLine, setCollisionRectangle, setCollisionRectangle, setCollisionSpot, setCollisionSpot, setDirection, setDirection, setDisplacePosition, setHorzMirror, setLocation, setLocationOffset, setLocationOffset, setOnBottom, setOnTop, setPixelLocation, setSlowDown, setTileCollisionEnabled, setVertMirror, setX, setY, show, show, showNextSprite, showPreviousSprite, turnpublic GGCheckButton(java.lang.String text)
text - the text annotationpublic GGCheckButton(java.lang.String text,
             boolean isChecked)
text - the text annotationisChecked - if true, the check box is initially checkedpublic GGCheckButton(java.lang.String text,
             int textColor,
             int bkColor)
text - the text annotationtextColor - the color of the annotation text and the square checkboxbkColor - the background colorpublic GGCheckButton(java.lang.String text,
             int textColor,
             int bkColor,
             int textSize,
             boolean isChecked)
text - the text annotationtextColor - the color of the annotation text and the square checkboxbkColor - the background colortextSize - the size of the text in pixelsisChecked - if true, the check box is initially checkedpublic void reset()
public boolean isChecked()
public void setChecked(boolean b)
b - if true, the button is checked; otherwise it is uncheckedpublic void addCheckButtonListener(GGCheckButtonListener listener)
listener - the GGCheckButtonListener to register