<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jun 03 02:18:08 CEST 2012 -->
<TITLE>
Image (libgdx API)
</TITLE>
<META NAME="date" CONTENT="2012-06-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Image (libgdx API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package
</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class
</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Image.html"><FONT CLASS="NavBarFont1"><B>Use
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help
</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
libgdx API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/FlickScrollPane.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><B>PREV CLASS
</B></A>
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/ImageButton.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><B>NEXT CLASS
</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?com/badlogic/gdx/scenes/scene2d/ui/Image.html" target="_top"><B>FRAMES
</B></A>
<A HREF="Image.html" target="_top"><B>NO FRAMES
</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:
NESTED
|
<A HREF="#fields_inherited_from_class_com.badlogic.gdx.scenes.scene2d.Actor">FIELD
</A> |
<A HREF="#constructor_summary">CONSTR
</A> |
<A HREF="#method_summary">METHOD
</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:
FIELD
|
<A HREF="#constructor_detail">CONSTR
</A> |
<A HREF="#method_detail">METHOD
</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.badlogic.gdx.scenes.scene2d.ui
</FONT>
<BR>
Class Image
</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">com.badlogic.gdx.scenes.scene2d.Actor
</A>
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">com.badlogic.gdx.scenes.scene2d.ui.Widget
</A>
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.scenes.scene2d.ui.Image
</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:
</B> <DD><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d">Layout
</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class
<B>Image
</B><DT>extends
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></DL>
</PRE>
<P>
Displays a
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureRegion
</CODE></A> or
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>NinePatch
</CODE></A>, scaled various way within the widgets bounds. The preferred size is the
actual size of the region or ninepatch. Only when using a TextureRegion will the actor's scale, rotation, and origin be used
when drawing.
<P>
<P>
<DL>
<DT><B>Author:
</B></DT>
<DD>Nathan Sweet
</DD>
</DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_com.badlogic.gdx.scenes.scene2d.Actor"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class com.badlogic.gdx.scenes.scene2d.
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#actions">actions
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#color">color
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#height">height
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#name">name
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#originX">originX
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#originY">originY
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#parent">parent
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#rotation">rotation
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#scaleX">scaleX
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#scaleY">scaleY
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#stage">stage
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#touchable">touchable
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#visible">visible
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#width">width
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#x">x
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#y">y
</A></CODE></TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image()">Image
</A></B>()
</CODE>
<BR>
Creates an image with no region or patch, stretched, and aligned center.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.g2d.NinePatch)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch)
</CODE>
<BR>
Creates an image stretched, and aligned center.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.g2d.NinePatch, com.badlogic.gdx.utils.Scaling)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling)
</CODE>
<BR>
Creates an image aligned center.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.g2d.NinePatch, com.badlogic.gdx.utils.Scaling, int)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.g2d.NinePatch, com.badlogic.gdx.utils.Scaling, int, java.lang.String)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align,
java.lang.String
name)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.Texture)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics">Texture
</A> texture)
</CODE>
<BR>
Creates an image stretched, and aligned center.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.g2d.TextureRegion)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region)
</CODE>
<BR>
Creates an image stretched, and aligned center.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.utils.Scaling)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling)
</CODE>
<BR>
Creates an image aligned center.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.utils.Scaling, int)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.utils.Scaling, int, java.lang.String)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align,
java.lang.String
name)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.Texture, com.badlogic.gdx.utils.Scaling)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics">Texture
</A> texture,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling)
</CODE>
<BR>
Creates an image aligned center.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.Texture, com.badlogic.gdx.utils.Scaling, int)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics">Texture
</A> texture,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#Image(com.badlogic.gdx.graphics.Texture, com.badlogic.gdx.utils.Scaling, int, java.lang.String)">Image
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics">Texture
</A> texture,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align,
java.lang.String
name)
</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">draw
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch
</A> batch,
float
parentAlpha)
</CODE>
<BR>
If this method is overridden, the super method or
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#validate()"><CODE>Widget.validate()
</CODE></A> should be called to ensure the widget is laid out.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getImageHeight()">getImageHeight
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getImageWidth()">getImageWidth
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getImageX()">getImageX
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getImageY()">getImageY
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getMinHeight()">getMinHeight
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getMinWidth()">getMinWidth
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getPatch()">getPatch
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getPrefHeight()">getPrefHeight
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getPrefWidth()">getPrefWidth
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#getRegion()">getRegion
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#layout()">layout
</A></B>()
</CODE>
<BR>
Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child and
calls
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#invalidate()"><CODE>Layout.invalidate()
</CODE></A> and then
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#validate()"><CODE>Layout.validate()
</CODE></A> on each one.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#setAlign(int)">setAlign
</A></B>(int
align)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#setClickListener(com.badlogic.gdx.scenes.scene2d.ui.ClickListener)">setClickListener
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/ClickListener.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">ClickListener
</A> clickListener)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#setPatch(com.badlogic.gdx.graphics.g2d.NinePatch)">setPatch
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#setRegion(com.badlogic.gdx.graphics.g2d.TextureRegion)">setRegion
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#setScaling(com.badlogic.gdx.utils.Scaling)">setScaling
</A></B>(
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#touchDown(float, float, int)">touchDown
</A></B>(float
x,
float
y,
int
pointer)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#touchDragged(float, float, int)">touchDragged
</A></B>(float
x,
float
y,
int
pointer)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Image.html#touchUp(float, float, int)">touchUp
</A></B>(float
x,
float
y,
int
pointer)
</CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_com.badlogic.gdx.scenes.scene2d.ui.Widget"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getMaxHeight()">getMaxHeight
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getMaxWidth()">getMaxWidth
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#hit(float, float)">hit
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#invalidate()">invalidate
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#invalidateHierarchy()">invalidateHierarchy
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#needsLayout()">needsLayout
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#pack()">pack
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#setFillParent(boolean)">setFillParent
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#toScreenCoordinates(com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.math.Vector2)">toScreenCoordinates
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#validate()">validate
</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_com.badlogic.gdx.scenes.scene2d.Actor"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.badlogic.gdx.scenes.scene2d.
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#act(float)">act
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#action(com.badlogic.gdx.scenes.scene2d.Action)">action
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clearActions()">clearActions
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getStage()">getStage
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isMarkedToRemove()">isMarkedToRemove
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#keyDown(int)">keyDown
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#keyTyped(char)">keyTyped
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#keyUp(int)">keyUp
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#markToRemove(boolean)">markToRemove
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#remove()">remove
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#scrolled(int)">scrolled
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#toLocalCoordinates(com.badlogic.gdx.math.Vector2)">toLocalCoordinates
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#toString()">toString
</A>,
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#touchMoved(float, float)">touchMoved
</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object
</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Image()"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>()
</PRE>
<DL>
<DD>Creates an image with no region or patch, stretched, and aligned center.
<P>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.Texture)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics">Texture
</A> texture)
</PRE>
<DL>
<DD>Creates an image stretched, and aligned center.
<P>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.Texture, com.badlogic.gdx.utils.Scaling)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics">Texture
</A> texture,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling)
</PRE>
<DL>
<DD>Creates an image aligned center.
<P>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.Texture, com.badlogic.gdx.utils.Scaling, int)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics">Texture
</A> texture,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align)
</PRE>
<DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.Texture, com.badlogic.gdx.utils.Scaling, int, java.lang.String)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics">Texture
</A> texture,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align,
java.lang.String
name)
</PRE>
<DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.g2d.TextureRegion)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region)
</PRE>
<DL>
<DD>Creates an image stretched, and aligned center.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>region
</CODE> - May be null.
</DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.utils.Scaling)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling)
</PRE>
<DL>
<DD>Creates an image aligned center.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>region
</CODE> - May be null.
</DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.utils.Scaling, int)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align)
</PRE>
<DL>
<DL>
<DT><B>Parameters:
</B><DD><CODE>region
</CODE> - May be null.
</DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.utils.Scaling, int, java.lang.String)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align,
java.lang.String
name)
</PRE>
<DL>
<DL>
<DT><B>Parameters:
</B><DD><CODE>region
</CODE> - May be null.
</DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.g2d.NinePatch)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch)
</PRE>
<DL>
<DD>Creates an image stretched, and aligned center.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>patch
</CODE> - May be null.
</DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.g2d.NinePatch, com.badlogic.gdx.utils.Scaling)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling)
</PRE>
<DL>
<DD>Creates an image aligned center.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>patch
</CODE> - May be null.
</DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.g2d.NinePatch, com.badlogic.gdx.utils.Scaling, int)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align)
</PRE>
<DL>
<DL>
<DT><B>Parameters:
</B><DD><CODE>patch
</CODE> - May be null.
</DL>
</DL>
<HR>
<A NAME="Image(com.badlogic.gdx.graphics.g2d.NinePatch, com.badlogic.gdx.utils.Scaling, int, java.lang.String)"><!-- --></A><H3>
Image
</H3>
<PRE>
public
<B>Image
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch,
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling,
int
align,
java.lang.String
name)
</PRE>
<DL>
<DL>
<DT><B>Parameters:
</B><DD><CODE>patch
</CODE> - May be null.
</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="layout()"><!-- --></A><H3>
layout
</H3>
<PRE>
public void
<B>layout
</B>()
</PRE>
<DL>
<DD><B>Description copied from interface:
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#layout()">Layout
</A></CODE></B></DD>
<DD>Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child and
calls
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#invalidate()"><CODE>Layout.invalidate()
</CODE></A> and then
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#validate()"><CODE>Layout.validate()
</CODE></A> on each one. Usually this should not be called directly, instead
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#validate()"><CODE>Layout.validate()
</CODE></A> should be used.
<P>
<DD><DL>
<DT><B>Specified by:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#layout()">layout
</A></CODE> in interface
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d">Layout
</A></CODE><DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#layout()">layout
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)"><!-- --></A><H3>
draw
</H3>
<PRE>
public void
<B>draw
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch
</A> batch,
float
parentAlpha)
</PRE>
<DL>
<DD><B>Description copied from class:
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">Widget
</A></CODE></B></DD>
<DD>If this method is overridden, the super method or
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#validate()"><CODE>Widget.validate()
</CODE></A> should be called to ensure the widget is laid out.
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">draw
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>batch
</CODE> - the spritebatch to render with
<DD><CODE>parentAlpha
</CODE> - the parent's alpha value.
</DL>
</DD>
</DL>
<HR>
<A NAME="setRegion(com.badlogic.gdx.graphics.g2d.TextureRegion)"><!-- --></A><H3>
setRegion
</H3>
<PRE>
public void
<B>setRegion
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> region)
</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>region
</CODE> - May be null.
</DL>
</DD>
</DL>
<HR>
<A NAME="getRegion()"><!-- --></A><H3>
getRegion
</H3>
<PRE>
public
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion
</A> <B>getRegion
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPatch(com.badlogic.gdx.graphics.g2d.NinePatch)"><!-- --></A><H3>
setPatch
</H3>
<PRE>
public void
<B>setPatch
</B>(
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> patch)
</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>patch
</CODE> - May be null.
</DL>
</DD>
</DL>
<HR>
<A NAME="getPatch()"><!-- --></A><H3>
getPatch
</H3>
<PRE>
public
<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch
</A> <B>getPatch
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setScaling(com.badlogic.gdx.utils.Scaling)"><!-- --></A><H3>
setScaling
</H3>
<PRE>
public void
<B>setScaling
</B>(
<A HREF="../../../../../../com/badlogic/gdx/utils/Scaling.html" title="enum in com.badlogic.gdx.utils">Scaling
</A> scaling)
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setAlign(int)"><!-- --></A><H3>
setAlign
</H3>
<PRE>
public void
<B>setAlign
</B>(int
align)
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMinWidth()"><!-- --></A><H3>
getMinWidth
</H3>
<PRE>
public float
<B>getMinWidth
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#getMinWidth()">getMinWidth
</A></CODE> in interface
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d">Layout
</A></CODE><DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getMinWidth()">getMinWidth
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMinHeight()"><!-- --></A><H3>
getMinHeight
</H3>
<PRE>
public float
<B>getMinHeight
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#getMinHeight()">getMinHeight
</A></CODE> in interface
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d">Layout
</A></CODE><DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getMinHeight()">getMinHeight
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getPrefWidth()"><!-- --></A><H3>
getPrefWidth
</H3>
<PRE>
public float
<B>getPrefWidth
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#getPrefWidth()">getPrefWidth
</A></CODE> in interface
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d">Layout
</A></CODE><DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getPrefWidth()">getPrefWidth
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getPrefHeight()"><!-- --></A><H3>
getPrefHeight
</H3>
<PRE>
public float
<B>getPrefHeight
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html#getPrefHeight()">getPrefHeight
</A></CODE> in interface
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d">Layout
</A></CODE><DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getPrefHeight()">getPrefHeight
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="touchDown(float, float, int)"><!-- --></A><H3>
touchDown
</H3>
<PRE>
public boolean
<B>touchDown
</B>(float
x,
float
y,
int
pointer)
</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#touchDown(float, float, int)">touchDown
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="touchUp(float, float, int)"><!-- --></A><H3>
touchUp
</H3>
<PRE>
public void
<B>touchUp
</B>(float
x,
float
y,
int
pointer)
</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#touchUp(float, float, int)">touchUp
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="touchDragged(float, float, int)"><!-- --></A><H3>
touchDragged
</H3>
<PRE>
public void
<B>touchDragged
</B>(float
x,
float
y,
int
pointer)
</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#touchDragged(float, float, int)">touchDragged
</A></CODE> in class
<CODE><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setClickListener(com.badlogic.gdx.scenes.scene2d.ui.ClickListener)"><!-- --></A><H3>
setClickListener
</H3>
<PRE>
public void
<B>setClickListener
</B>(
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/ClickListener.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">ClickListener
</A> clickListener)
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getImageX()"><!-- --></A><H3>
getImageX
</H3>
<PRE>
public float
<B>getImageX
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getImageY()"><!-- --></A><H3>
getImageY
</H3>
<PRE>
public float
<B>getImageY
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getImageWidth()"><!-- --></A><H3>
getImageWidth
</H3>
<PRE>
public float
<B>getImageWidth
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getImageHeight()"><!-- --></A><H3>
getImageHeight
</H3>
<PRE>
public float
<B>getImageHeight
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package
</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class
</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Image.html"><FONT CLASS="NavBarFont1"><B>Use
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help
</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
libgdx API
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/FlickScrollPane.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><B>PREV CLASS
</B></A>
<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/ImageButton.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><B>NEXT CLASS
</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?com/badlogic/gdx/scenes/scene2d/ui/Image.html" target="_top"><B>FRAMES
</B></A>
<A HREF="Image.html" target="_top"><B>NO FRAMES
</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:
NESTED
|
<A HREF="#fields_inherited_from_class_com.badlogic.gdx.scenes.scene2d.Actor">FIELD
</A> |
<A HREF="#constructor_summary">CONSTR
</A> |
<A HREF="#method_summary">METHOD
</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:
FIELD
|
<A HREF="#constructor_detail">CONSTR
</A> |
<A HREF="#method_detail">METHOD
</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<div style="font-size:9pt"><i>
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
</i></div>
</BODY>
</HTML>