Package com.prineside.tdi2.scene2d.ui
Class ImageButton
java.lang.Object
com.prineside.tdi2.scene2d.Actor
com.prineside.tdi2.scene2d.Group
com.prineside.tdi2.scene2d.ui.WidgetGroup
com.prineside.tdi2.scene2d.ui.Table
com.prineside.tdi2.scene2d.ui.Button
com.prineside.tdi2.scene2d.ui.ImageButton
- All Implemented Interfaces:
 Cullable,Disableable,Layout
A button with a child 
Image to display an image. This is useful when the button must be larger than the image and the
 image centered on the button. If the image is the size of the button, a Button without any children can be used, where
 the Button.ButtonStyle.up, Button.ButtonStyle.down, and Button.ButtonStyle.checked nine patches define
 the image.- Author:
 - Nathan Sweet
 
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.scene2d.ui.Button
Button.ButtonStyleNested classes/interfaces inherited from class com.prineside.tdi2.scene2d.ui.Table
Table.Debug, Table.DebugRect - 
Field Summary
Fields inherited from class com.prineside.tdi2.scene2d.ui.Table
backgroundBottom, backgroundLeft, backgroundRight, backgroundTop, debugActorColor, debugCellColor, debugTableColor - 
Constructor Summary
ConstructorsConstructorDescriptionImageButton(Drawable imageUp) ImageButton(Drawable imageUp, Drawable imageDown) ImageButton(Drawable imageUp, Drawable imageDown, Drawable imageChecked)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidIf this method is overridden, the super method orWidgetGroup.validate()should be called to ensure the widget group is laid out.getImage()getStyle()Returns the button's style.voidsetStyle(Button.ButtonStyle style) toString()Returns a description of the actor hierarchy, recursively.Methods inherited from class com.prineside.tdi2.scene2d.ui.Button
getButtonGroup, getClickListener, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, isChecked, isDisabled, isOver, isPressed, setChecked, setDisabled, setProgrammaticChangeEvents, toggleMethods inherited from class com.prineside.tdi2.scene2d.ui.Table
add, add, add, align, background, bottom, center, clearChildren, clip, clip, columnDefaults, debug, debug, debugActor, debugAll, debugCell, debugTable, defaults, drawDebug, getAlign, getBackground, getCell, getCells, getClip, getColumnMinWidth, getColumnPrefWidth, getColumns, getColumnWidth, getPadBottom, getPadBottomValue, getPadLeft, getPadLeftValue, getPadRight, getPadRightValue, getPadTop, getPadTopValue, getPadX, getPadY, getRow, getRowHeight, getRowMinHeight, getRowPrefHeight, getRows, getTableDebug, hit, invalidate, layout, left, pad, pad, pad, pad, padBottom, padBottom, padLeft, padLeft, padRight, padRight, padTop, padTop, removeActor, removeActor, removeActorAt, reset, right, row, setBackground, setClip, setDebug, setRound, stack, topMethods inherited from class com.prineside.tdi2.scene2d.ui.WidgetGroup
getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeightValue, getMinWidthValue, getPrefHeightValue, getPrefWidthValue, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setPrefHeight, setPrefHeight, setPrefWidth, setPrefWidth, setWidth, validateMethods inherited from class com.prineside.tdi2.scene2d.Group
act, addActor, addActorAfter, addActorAt, addActorBefore, clear, clear, clearChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, setCullingArea, setDebug, setTransform, swapActor, swapActorMethods inherited from class com.prineside.tdi2.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront 
- 
Constructor Details
- 
ImageButton
 - 
ImageButton
 - 
ImageButton
 - 
ImageButton
 
 - 
 - 
Method Details
- 
setStyle
 - 
getStyle
Description copied from class:ButtonReturns the button's style. Modifying the returned style may not have an effect untilButton.setStyle(ButtonStyle)is called. - 
draw
Description copied from class:WidgetGroupIf this method is overridden, the super method orWidgetGroup.validate()should be called to ensure the widget group is laid out. - 
getImage
 - 
getImageCell
 - 
toString
Description copied from class:GroupReturns a description of the actor hierarchy, recursively. 
 -