Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:05 CET 2013 -->
6
<TITLE>
7
Skin (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Skin (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Skin.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/SelectBox.SelectBoxStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.TintedDrawable.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../../../index.html?com/badlogic/gdx/scenes/scene2d/ui/Skin.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Skin.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.scenes.scene2d.ui</FONT>
107
<BR>
108
Class Skin</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.scenes.scene2d.ui.Skin</B>
112
</PRE>
113
<DL>
114
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DD>
115
</DL>
116
<HR>
117
<DL>
118
<DT><PRE>public class <B>Skin</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DL>
119
</PRE>
120
 
121
<P>
122
A skin stores resources for UI widgets to use (texture regions, ninepatches, fonts, colors, etc). Resources are named and can
123
 be looked up by name and type. Resources can be described in JSON. Skin provides useful conversions, such as allowing access to
124
 regions in the atlas as ninepatches, sprites, drawables, etc. The get* methods return an instance of the object in the skin.
125
 The new* methods return a copy of an instance in the skin.
126
 <p>
127
 See the <a href="https://code.google.com/p/libgdx/wiki/Skin">documentation</a> for more.
128
<P>
129
 
130
<P>
131
<DL>
132
<DT><B>Author:</B></DT>
133
  <DD>Nathan Sweet</DD>
134
</DL>
135
<HR>
136
 
137
<P>
138
<!-- ======== NESTED CLASS SUMMARY ======== -->
139
 
140
<A NAME="nested_class_summary"><!-- --></A>
141
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
142
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
143
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
144
<B>Nested Class Summary</B></FONT></TH>
145
</TR>
146
<TR BGCOLOR="white" CLASS="TableRowColor">
147
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148
<CODE>static&nbsp;class</CODE></FONT></TD>
149
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.TintedDrawable.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Skin.TintedDrawable</A></B></CODE>
150
 
151
<BR>
152
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153
</TR>
154
</TABLE>
155
&nbsp;
156
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
157
 
158
<A NAME="constructor_summary"><!-- --></A>
159
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
160
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
161
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
162
<B>Constructor Summary</B></FONT></TH>
163
</TR>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#Skin()">Skin</A></B>()</CODE>
166
 
167
<BR>
168
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an empty skin.</TD>
169
</TR>
170
<TR BGCOLOR="white" CLASS="TableRowColor">
171
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#Skin(com.badlogic.gdx.files.FileHandle)">Skin</A></B>(<A HREF="../../../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;skinFile)</CODE>
172
 
173
<BR>
174
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a skin containing the resources in the specified skin JSON file.</TD>
175
</TR>
176
<TR BGCOLOR="white" CLASS="TableRowColor">
177
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#Skin(com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.graphics.g2d.TextureAtlas)">Skin</A></B>(<A HREF="../../../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;skinFile,
178
     <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d">TextureAtlas</A>&nbsp;atlas)</CODE>
179
 
180
<BR>
181
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a skin containing the resources in the specified skin JSON file and the texture regions from the specified atlas.</TD>
182
</TR>
183
<TR BGCOLOR="white" CLASS="TableRowColor">
184
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#Skin(com.badlogic.gdx.graphics.g2d.TextureAtlas)">Skin</A></B>(<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d">TextureAtlas</A>&nbsp;atlas)</CODE>
185
 
186
<BR>
187
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a skin containing the texture regions from the specified atlas.</TD>
188
</TR>
189
</TABLE>
190
&nbsp;
191
<!-- ========== METHOD SUMMARY =========== -->
192
 
193
<A NAME="method_summary"><!-- --></A>
194
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
195
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
196
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
197
<B>Method Summary</B></FONT></TH>
198
</TR>
199
<TR BGCOLOR="white" CLASS="TableRowColor">
200
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201
<CODE>&nbsp;void</CODE></FONT></TD>
202
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#add(java.lang.String, java.lang.Object)">add</A></B>(java.lang.String&nbsp;name,
203
    java.lang.Object&nbsp;resource)</CODE>
204
 
205
<BR>
206
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
207
</TR>
208
<TR BGCOLOR="white" CLASS="TableRowColor">
209
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210
<CODE>&nbsp;void</CODE></FONT></TD>
211
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#add(java.lang.String, java.lang.Object, java.lang.Class)">add</A></B>(java.lang.String&nbsp;name,
212
    java.lang.Object&nbsp;resource,
213
    java.lang.Class&nbsp;type)</CODE>
214
 
215
<BR>
216
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
217
</TR>
218
<TR BGCOLOR="white" CLASS="TableRowColor">
219
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
220
<CODE>&nbsp;void</CODE></FONT></TD>
221
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#addRegions(com.badlogic.gdx.graphics.g2d.TextureAtlas)">addRegions</A></B>(<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d">TextureAtlas</A>&nbsp;atlas)</CODE>
222
 
223
<BR>
224
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds all named txeture regions from the atlas.</TD>
225
</TR>
226
<TR BGCOLOR="white" CLASS="TableRowColor">
227
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
228
<CODE>&nbsp;void</CODE></FONT></TD>
229
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#dispose()">dispose</A></B>()</CODE>
230
 
231
<BR>
232
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disposes the <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureAtlas</CODE></A> and all <A HREF="../../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils"><CODE>Disposable</CODE></A> resources in the skin.</TD>
233
</TR>
234
<TR BGCOLOR="white" CLASS="TableRowColor">
235
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
236
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
237
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#find(java.lang.Object)">find</A></B>(java.lang.Object&nbsp;resource)</CODE>
238
 
239
<BR>
240
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the specified style object, or null if it is not in the skin.</TD>
241
</TR>
242
<TR BGCOLOR="white" CLASS="TableRowColor">
243
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244
<CODE>
245
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
246
<TR ALIGN="right" VALIGN="">
247
<TD NOWRAP><FONT SIZE="-1">
248
<CODE>&lt;T&gt; T</CODE></FONT></TD>
249
</TR>
250
</TABLE>
251
</CODE></FONT></TD>
252
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#get(java.lang.Class)">get</A></B>(java.lang.Class&lt;T&gt;&nbsp;type)</CODE>
253
 
254
<BR>
255
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
256
</TR>
257
<TR BGCOLOR="white" CLASS="TableRowColor">
258
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259
<CODE>
260
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
261
<TR ALIGN="right" VALIGN="">
262
<TD NOWRAP><FONT SIZE="-1">
263
<CODE>&lt;T&gt; T</CODE></FONT></TD>
264
</TR>
265
</TABLE>
266
</CODE></FONT></TD>
267
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#get(java.lang.String, java.lang.Class)">get</A></B>(java.lang.String&nbsp;name,
268
    java.lang.Class&lt;T&gt;&nbsp;type)</CODE>
269
 
270
<BR>
271
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
272
</TR>
273
<TR BGCOLOR="white" CLASS="TableRowColor">
274
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275
<CODE>
276
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
277
<TR ALIGN="right" VALIGN="">
278
<TD NOWRAP><FONT SIZE="-1">
279
<CODE>&lt;T&gt; <A HREF="../../../../../../com/badlogic/gdx/utils/ObjectMap.html" title="class in com.badlogic.gdx.utils">ObjectMap</A>&lt;java.lang.String,T&gt;</CODE></FONT></TD>
280
</TR>
281
</TABLE>
282
</CODE></FONT></TD>
283
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getAll(java.lang.Class)">getAll</A></B>(java.lang.Class&lt;T&gt;&nbsp;type)</CODE>
284
 
285
<BR>
286
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name to resource mapping for the specified type, or null if no resources of that type exist.</TD>
287
</TR>
288
<TR BGCOLOR="white" CLASS="TableRowColor">
289
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
290
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d">TextureAtlas</A></CODE></FONT></TD>
291
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getAtlas()">getAtlas</A></B>()</CODE>
292
 
293
<BR>
294
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureAtlas</CODE></A> that resources in this skin reference, or null.</TD>
295
</TR>
296
<TR BGCOLOR="white" CLASS="TableRowColor">
297
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color</A></CODE></FONT></TD>
299
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getColor(java.lang.String)">getColor</A></B>(java.lang.String&nbsp;name)</CODE>
300
 
301
<BR>
302
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
303
</TR>
304
<TR BGCOLOR="white" CLASS="TableRowColor">
305
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A></CODE></FONT></TD>
307
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)">getDrawable</A></B>(java.lang.String&nbsp;name)</CODE>
308
 
309
<BR>
310
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a registered drawable.</TD>
311
</TR>
312
<TR BGCOLOR="white" CLASS="TableRowColor">
313
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
314
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/BitmapFont.html" title="class in com.badlogic.gdx.graphics.g2d">BitmapFont</A></CODE></FONT></TD>
315
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getFont(java.lang.String)">getFont</A></B>(java.lang.String&nbsp;name)</CODE>
316
 
317
<BR>
318
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
319
</TR>
320
<TR BGCOLOR="white" CLASS="TableRowColor">
321
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
322
<CODE>protected &nbsp;<A HREF="../../../../../../com/badlogic/gdx/utils/Json.html" title="class in com.badlogic.gdx.utils">Json</A></CODE></FONT></TD>
323
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getJsonLoader(com.badlogic.gdx.files.FileHandle)">getJsonLoader</A></B>(<A HREF="../../../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;skinFile)</CODE>
324
 
325
<BR>
326
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
327
</TR>
328
<TR BGCOLOR="white" CLASS="TableRowColor">
329
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
330
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch</A></CODE></FONT></TD>
331
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getPatch(java.lang.String)">getPatch</A></B>(java.lang.String&nbsp;name)</CODE>
332
 
333
<BR>
334
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a registered ninepatch.</TD>
335
</TR>
336
<TR BGCOLOR="white" CLASS="TableRowColor">
337
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
338
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion</A></CODE></FONT></TD>
339
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getRegion(java.lang.String)">getRegion</A></B>(java.lang.String&nbsp;name)</CODE>
340
 
341
<BR>
342
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a registered texture region.</TD>
343
</TR>
344
<TR BGCOLOR="white" CLASS="TableRowColor">
345
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
346
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/Sprite.html" title="class in com.badlogic.gdx.graphics.g2d">Sprite</A></CODE></FONT></TD>
347
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getSprite(java.lang.String)">getSprite</A></B>(java.lang.String&nbsp;name)</CODE>
348
 
349
<BR>
350
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a registered sprite.</TD>
351
</TR>
352
<TR BGCOLOR="white" CLASS="TableRowColor">
353
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
354
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/TiledDrawable.html" title="class in com.badlogic.gdx.scenes.scene2d.utils">TiledDrawable</A></CODE></FONT></TD>
355
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getTiledDrawable(java.lang.String)">getTiledDrawable</A></B>(java.lang.String&nbsp;name)</CODE>
356
 
357
<BR>
358
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a registered tiled drawable.</TD>
359
</TR>
360
<TR BGCOLOR="white" CLASS="TableRowColor">
361
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
362
<CODE>&nbsp;boolean</CODE></FONT></TD>
363
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#has(java.lang.String, java.lang.Class)">has</A></B>(java.lang.String&nbsp;name,
364
    java.lang.Class&nbsp;type)</CODE>
365
 
366
<BR>
367
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
368
</TR>
369
<TR BGCOLOR="white" CLASS="TableRowColor">
370
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
371
<CODE>&nbsp;void</CODE></FONT></TD>
372
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#load(com.badlogic.gdx.files.FileHandle)">load</A></B>(<A HREF="../../../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;skinFile)</CODE>
373
 
374
<BR>
375
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds all resources in the specified skin JSON file.</TD>
376
</TR>
377
<TR BGCOLOR="white" CLASS="TableRowColor">
378
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
379
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A></CODE></FONT></TD>
380
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#newDrawable(com.badlogic.gdx.scenes.scene2d.utils.Drawable)">newDrawable</A></B>(<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A>&nbsp;drawable)</CODE>
381
 
382
<BR>
383
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the specified drawable.</TD>
384
</TR>
385
<TR BGCOLOR="white" CLASS="TableRowColor">
386
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
387
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A></CODE></FONT></TD>
388
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#newDrawable(com.badlogic.gdx.scenes.scene2d.utils.Drawable, com.badlogic.gdx.graphics.Color)">newDrawable</A></B>(<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A>&nbsp;drawable,
389
            <A HREF="../../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color</A>&nbsp;tint)</CODE>
390
 
391
<BR>
392
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a tinted copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.</TD>
393
</TR>
394
<TR BGCOLOR="white" CLASS="TableRowColor">
395
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
396
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A></CODE></FONT></TD>
397
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#newDrawable(com.badlogic.gdx.scenes.scene2d.utils.Drawable, float, float, float, float)">newDrawable</A></B>(<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A>&nbsp;drawable,
398
            float&nbsp;r,
399
            float&nbsp;g,
400
            float&nbsp;b,
401
            float&nbsp;a)</CODE>
402
 
403
<BR>
404
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a tinted copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.</TD>
405
</TR>
406
<TR BGCOLOR="white" CLASS="TableRowColor">
407
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
408
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A></CODE></FONT></TD>
409
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#newDrawable(java.lang.String)">newDrawable</A></B>(java.lang.String&nbsp;name)</CODE>
410
 
411
<BR>
412
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.</TD>
413
</TR>
414
<TR BGCOLOR="white" CLASS="TableRowColor">
415
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
416
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A></CODE></FONT></TD>
417
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#newDrawable(java.lang.String, com.badlogic.gdx.graphics.Color)">newDrawable</A></B>(java.lang.String&nbsp;name,
418
            <A HREF="../../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color</A>&nbsp;tint)</CODE>
419
 
420
<BR>
421
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a tinted copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.</TD>
422
</TR>
423
<TR BGCOLOR="white" CLASS="TableRowColor">
424
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
425
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A></CODE></FONT></TD>
426
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#newDrawable(java.lang.String, float, float, float, float)">newDrawable</A></B>(java.lang.String&nbsp;name,
427
            float&nbsp;r,
428
            float&nbsp;g,
429
            float&nbsp;b,
430
            float&nbsp;a)</CODE>
431
 
432
<BR>
433
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a tinted copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.</TD>
434
</TR>
435
<TR BGCOLOR="white" CLASS="TableRowColor">
436
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
437
<CODE>
438
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
439
<TR ALIGN="right" VALIGN="">
440
<TD NOWRAP><FONT SIZE="-1">
441
<CODE>&lt;T&gt; T</CODE></FONT></TD>
442
</TR>
443
</TABLE>
444
</CODE></FONT></TD>
445
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#optional(java.lang.String, java.lang.Class)">optional</A></B>(java.lang.String&nbsp;name,
446
         java.lang.Class&lt;T&gt;&nbsp;type)</CODE>
447
 
448
<BR>
449
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
450
</TR>
451
<TR BGCOLOR="white" CLASS="TableRowColor">
452
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
453
<CODE>&nbsp;void</CODE></FONT></TD>
454
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#setEnabled(com.badlogic.gdx.scenes.scene2d.Actor, boolean)">setEnabled</A></B>(<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A>&nbsp;actor,
455
           boolean&nbsp;enabled)</CODE>
456
 
457
<BR>
458
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the style on the actor to disabled or enabled.</TD>
459
</TR>
460
</TABLE>
461
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
462
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
463
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
464
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
465
</TR>
466
<TR BGCOLOR="white" CLASS="TableRowColor">
467
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
468
</TR>
469
</TABLE>
470
&nbsp;
471
<P>
472
 
473
<!-- ========= CONSTRUCTOR DETAIL ======== -->
474
 
475
<A NAME="constructor_detail"><!-- --></A>
476
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
477
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
478
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
479
<B>Constructor Detail</B></FONT></TH>
480
</TR>
481
</TABLE>
482
 
483
<A NAME="Skin()"><!-- --></A><H3>
484
Skin</H3>
485
<PRE>
486
public <B>Skin</B>()</PRE>
487
<DL>
488
<DD>Creates an empty skin.
489
<P>
490
</DL>
491
<HR>
492
 
493
<A NAME="Skin(com.badlogic.gdx.files.FileHandle)"><!-- --></A><H3>
494
Skin</H3>
495
<PRE>
496
public <B>Skin</B>(<A HREF="../../../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;skinFile)</PRE>
497
<DL>
498
<DD>Creates a skin containing the resources in the specified skin JSON file. If a file in the same directory with a ".atlas"
499
 extension exists, it is loaded as a <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureAtlas</CODE></A> and the texture regions added to the skin. The atlas is
500
 automatically disposed when the skin is disposed.
501
<P>
502
</DL>
503
<HR>
504
 
505
<A NAME="Skin(com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.graphics.g2d.TextureAtlas)"><!-- --></A><H3>
506
Skin</H3>
507
<PRE>
508
public <B>Skin</B>(<A HREF="../../../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;skinFile,
509
            <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d">TextureAtlas</A>&nbsp;atlas)</PRE>
510
<DL>
511
<DD>Creates a skin containing the resources in the specified skin JSON file and the texture regions from the specified atlas.
512
 The atlas is automatically disposed when the skin is disposed.
513
<P>
514
</DL>
515
<HR>
516
 
517
<A NAME="Skin(com.badlogic.gdx.graphics.g2d.TextureAtlas)"><!-- --></A><H3>
518
Skin</H3>
519
<PRE>
520
public <B>Skin</B>(<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d">TextureAtlas</A>&nbsp;atlas)</PRE>
521
<DL>
522
<DD>Creates a skin containing the texture regions from the specified atlas. The atlas is automatically disposed when the skin is
523
 disposed.
524
<P>
525
</DL>
526
 
527
<!-- ============ METHOD DETAIL ========== -->
528
 
529
<A NAME="method_detail"><!-- --></A>
530
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
531
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
532
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
533
<B>Method Detail</B></FONT></TH>
534
</TR>
535
</TABLE>
536
 
537
<A NAME="load(com.badlogic.gdx.files.FileHandle)"><!-- --></A><H3>
538
load</H3>
539
<PRE>
540
public void <B>load</B>(<A HREF="../../../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;skinFile)</PRE>
541
<DL>
542
<DD>Adds all resources in the specified skin JSON file.
543
<P>
544
<DD><DL>
545
</DL>
546
</DD>
547
<DD><DL>
548
</DL>
549
</DD>
550
</DL>
551
<HR>
552
 
553
<A NAME="addRegions(com.badlogic.gdx.graphics.g2d.TextureAtlas)"><!-- --></A><H3>
554
addRegions</H3>
555
<PRE>
556
public void <B>addRegions</B>(<A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d">TextureAtlas</A>&nbsp;atlas)</PRE>
557
<DL>
558
<DD>Adds all named txeture regions from the atlas. The atlas will not be automatically disposed when the skin is disposed.
559
<P>
560
<DD><DL>
561
</DL>
562
</DD>
563
<DD><DL>
564
</DL>
565
</DD>
566
</DL>
567
<HR>
568
 
569
<A NAME="add(java.lang.String, java.lang.Object)"><!-- --></A><H3>
570
add</H3>
571
<PRE>
572
public void <B>add</B>(java.lang.String&nbsp;name,
573
                java.lang.Object&nbsp;resource)</PRE>
574
<DL>
575
<DD><DL>
576
</DL>
577
</DD>
578
<DD><DL>
579
</DL>
580
</DD>
581
</DL>
582
<HR>
583
 
584
<A NAME="add(java.lang.String, java.lang.Object, java.lang.Class)"><!-- --></A><H3>
585
add</H3>
586
<PRE>
587
public void <B>add</B>(java.lang.String&nbsp;name,
588
                java.lang.Object&nbsp;resource,
589
                java.lang.Class&nbsp;type)</PRE>
590
<DL>
591
<DD><DL>
592
</DL>
593
</DD>
594
<DD><DL>
595
</DL>
596
</DD>
597
</DL>
598
<HR>
599
 
600
<A NAME="get(java.lang.Class)"><!-- --></A><H3>
601
get</H3>
602
<PRE>
603
public &lt;T&gt; T <B>get</B>(java.lang.Class&lt;T&gt;&nbsp;type)</PRE>
604
<DL>
605
<DD><DL>
606
</DL>
607
</DD>
608
<DD><DL>
609
</DL>
610
</DD>
611
</DL>
612
<HR>
613
 
614
<A NAME="get(java.lang.String, java.lang.Class)"><!-- --></A><H3>
615
get</H3>
616
<PRE>
617
public &lt;T&gt; T <B>get</B>(java.lang.String&nbsp;name,
618
                 java.lang.Class&lt;T&gt;&nbsp;type)</PRE>
619
<DL>
620
<DD><DL>
621
</DL>
622
</DD>
623
<DD><DL>
624
</DL>
625
</DD>
626
</DL>
627
<HR>
628
 
629
<A NAME="optional(java.lang.String, java.lang.Class)"><!-- --></A><H3>
630
optional</H3>
631
<PRE>
632
public &lt;T&gt; T <B>optional</B>(java.lang.String&nbsp;name,
633
                      java.lang.Class&lt;T&gt;&nbsp;type)</PRE>
634
<DL>
635
<DD><DL>
636
</DL>
637
</DD>
638
<DD><DL>
639
</DL>
640
</DD>
641
</DL>
642
<HR>
643
 
644
<A NAME="has(java.lang.String, java.lang.Class)"><!-- --></A><H3>
645
has</H3>
646
<PRE>
647
public boolean <B>has</B>(java.lang.String&nbsp;name,
648
                   java.lang.Class&nbsp;type)</PRE>
649
<DL>
650
<DD><DL>
651
</DL>
652
</DD>
653
<DD><DL>
654
</DL>
655
</DD>
656
</DL>
657
<HR>
658
 
659
<A NAME="getAll(java.lang.Class)"><!-- --></A><H3>
660
getAll</H3>
661
<PRE>
662
public &lt;T&gt; <A HREF="../../../../../../com/badlogic/gdx/utils/ObjectMap.html" title="class in com.badlogic.gdx.utils">ObjectMap</A>&lt;java.lang.String,T&gt; <B>getAll</B>(java.lang.Class&lt;T&gt;&nbsp;type)</PRE>
663
<DL>
664
<DD>Returns the name to resource mapping for the specified type, or null if no resources of that type exist.
665
<P>
666
<DD><DL>
667
</DL>
668
</DD>
669
<DD><DL>
670
</DL>
671
</DD>
672
</DL>
673
<HR>
674
 
675
<A NAME="getColor(java.lang.String)"><!-- --></A><H3>
676
getColor</H3>
677
<PRE>
678
public <A HREF="../../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color</A> <B>getColor</B>(java.lang.String&nbsp;name)</PRE>
679
<DL>
680
<DD><DL>
681
</DL>
682
</DD>
683
<DD><DL>
684
</DL>
685
</DD>
686
</DL>
687
<HR>
688
 
689
<A NAME="getFont(java.lang.String)"><!-- --></A><H3>
690
getFont</H3>
691
<PRE>
692
public <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/BitmapFont.html" title="class in com.badlogic.gdx.graphics.g2d">BitmapFont</A> <B>getFont</B>(java.lang.String&nbsp;name)</PRE>
693
<DL>
694
<DD><DL>
695
</DL>
696
</DD>
697
<DD><DL>
698
</DL>
699
</DD>
700
</DL>
701
<HR>
702
 
703
<A NAME="getRegion(java.lang.String)"><!-- --></A><H3>
704
getRegion</H3>
705
<PRE>
706
public <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureRegion.html" title="class in com.badlogic.gdx.graphics.g2d">TextureRegion</A> <B>getRegion</B>(java.lang.String&nbsp;name)</PRE>
707
<DL>
708
<DD>Returns a registered texture region. If no region is found but a texture exists with the name, a region is created from the
709
 texture and stored in the skin.
710
<P>
711
<DD><DL>
712
</DL>
713
</DD>
714
<DD><DL>
715
</DL>
716
</DD>
717
</DL>
718
<HR>
719
 
720
<A NAME="getTiledDrawable(java.lang.String)"><!-- --></A><H3>
721
getTiledDrawable</H3>
722
<PRE>
723
public <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/TiledDrawable.html" title="class in com.badlogic.gdx.scenes.scene2d.utils">TiledDrawable</A> <B>getTiledDrawable</B>(java.lang.String&nbsp;name)</PRE>
724
<DL>
725
<DD>Returns a registered tiled drawable. If no tiled drawable is found but a region exists with the name, a tiled drawable is
726
 created from the region and stored in the skin.
727
<P>
728
<DD><DL>
729
</DL>
730
</DD>
731
<DD><DL>
732
</DL>
733
</DD>
734
</DL>
735
<HR>
736
 
737
<A NAME="getPatch(java.lang.String)"><!-- --></A><H3>
738
getPatch</H3>
739
<PRE>
740
public <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d">NinePatch</A> <B>getPatch</B>(java.lang.String&nbsp;name)</PRE>
741
<DL>
742
<DD>Returns a registered ninepatch. If no ninepatch is found but a region exists with the name, a ninepatch is created from the
743
 region and stored in the skin. If the region is an <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.AtlasRegion.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureAtlas.AtlasRegion</CODE></A> then the <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.AtlasRegion.html#splits"><CODE>TextureAtlas.AtlasRegion.splits</CODE></A> are used,
744
 otherwise the ninepatch will have the region as the center patch.
745
<P>
746
<DD><DL>
747
</DL>
748
</DD>
749
<DD><DL>
750
</DL>
751
</DD>
752
</DL>
753
<HR>
754
 
755
<A NAME="getSprite(java.lang.String)"><!-- --></A><H3>
756
getSprite</H3>
757
<PRE>
758
public <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/Sprite.html" title="class in com.badlogic.gdx.graphics.g2d">Sprite</A> <B>getSprite</B>(java.lang.String&nbsp;name)</PRE>
759
<DL>
760
<DD>Returns a registered sprite. If no sprite is found but a region exists with the name, a sprite is created from the region
761
 and stored in the skin. If the region is an <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.AtlasRegion.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureAtlas.AtlasRegion</CODE></A> then an <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.AtlasSprite.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureAtlas.AtlasSprite</CODE></A> is used if the region has been
762
 whitespace stripped or packed rotated 90 degrees.
763
<P>
764
<DD><DL>
765
</DL>
766
</DD>
767
<DD><DL>
768
</DL>
769
</DD>
770
</DL>
771
<HR>
772
 
773
<A NAME="getDrawable(java.lang.String)"><!-- --></A><H3>
774
getDrawable</H3>
775
<PRE>
776
public <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A> <B>getDrawable</B>(java.lang.String&nbsp;name)</PRE>
777
<DL>
778
<DD>Returns a registered drawable. If no drawable is found but a region, ninepatch, or sprite exists with the name, then the
779
 appropriate drawable is created and stored in the skin.
780
<P>
781
<DD><DL>
782
</DL>
783
</DD>
784
<DD><DL>
785
</DL>
786
</DD>
787
</DL>
788
<HR>
789
 
790
<A NAME="find(java.lang.Object)"><!-- --></A><H3>
791
find</H3>
792
<PRE>
793
public java.lang.String <B>find</B>(java.lang.Object&nbsp;resource)</PRE>
794
<DL>
795
<DD>Returns the name of the specified style object, or null if it is not in the skin. This compares potentially every style
796
 object in the skin of the same type as the specified style, which may be a somewhat expensive operation.
797
<P>
798
<DD><DL>
799
</DL>
800
</DD>
801
<DD><DL>
802
</DL>
803
</DD>
804
</DL>
805
<HR>
806
 
807
<A NAME="newDrawable(java.lang.String)"><!-- --></A><H3>
808
newDrawable</H3>
809
<PRE>
810
public <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A> <B>newDrawable</B>(java.lang.String&nbsp;name)</PRE>
811
<DL>
812
<DD>Returns a copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.
813
<P>
814
<DD><DL>
815
</DL>
816
</DD>
817
<DD><DL>
818
</DL>
819
</DD>
820
</DL>
821
<HR>
822
 
823
<A NAME="newDrawable(java.lang.String, float, float, float, float)"><!-- --></A><H3>
824
newDrawable</H3>
825
<PRE>
826
public <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A> <B>newDrawable</B>(java.lang.String&nbsp;name,
827
                            float&nbsp;r,
828
                            float&nbsp;g,
829
                            float&nbsp;b,
830
                            float&nbsp;a)</PRE>
831
<DL>
832
<DD>Returns a tinted copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.
833
<P>
834
<DD><DL>
835
</DL>
836
</DD>
837
<DD><DL>
838
</DL>
839
</DD>
840
</DL>
841
<HR>
842
 
843
<A NAME="newDrawable(java.lang.String, com.badlogic.gdx.graphics.Color)"><!-- --></A><H3>
844
newDrawable</H3>
845
<PRE>
846
public <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A> <B>newDrawable</B>(java.lang.String&nbsp;name,
847
                            <A HREF="../../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color</A>&nbsp;tint)</PRE>
848
<DL>
849
<DD>Returns a tinted copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.
850
<P>
851
<DD><DL>
852
</DL>
853
</DD>
854
<DD><DL>
855
</DL>
856
</DD>
857
</DL>
858
<HR>
859
 
860
<A NAME="newDrawable(com.badlogic.gdx.scenes.scene2d.utils.Drawable)"><!-- --></A><H3>
861
newDrawable</H3>
862
<PRE>
863
public <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A> <B>newDrawable</B>(<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A>&nbsp;drawable)</PRE>
864
<DL>
865
<DD>Returns a copy of the specified drawable.
866
<P>
867
<DD><DL>
868
</DL>
869
</DD>
870
<DD><DL>
871
</DL>
872
</DD>
873
</DL>
874
<HR>
875
 
876
<A NAME="newDrawable(com.badlogic.gdx.scenes.scene2d.utils.Drawable, float, float, float, float)"><!-- --></A><H3>
877
newDrawable</H3>
878
<PRE>
879
public <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A> <B>newDrawable</B>(<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A>&nbsp;drawable,
880
                            float&nbsp;r,
881
                            float&nbsp;g,
882
                            float&nbsp;b,
883
                            float&nbsp;a)</PRE>
884
<DL>
885
<DD>Returns a tinted copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.
886
<P>
887
<DD><DL>
888
</DL>
889
</DD>
890
<DD><DL>
891
</DL>
892
</DD>
893
</DL>
894
<HR>
895
 
896
<A NAME="newDrawable(com.badlogic.gdx.scenes.scene2d.utils.Drawable, com.badlogic.gdx.graphics.Color)"><!-- --></A><H3>
897
newDrawable</H3>
898
<PRE>
899
public <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A> <B>newDrawable</B>(<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Drawable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Drawable</A>&nbsp;drawable,
900
                            <A HREF="../../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color</A>&nbsp;tint)</PRE>
901
<DL>
902
<DD>Returns a tinted copy of a drawable found in the skin via <A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html#getDrawable(java.lang.String)"><CODE>getDrawable(String)</CODE></A>.
903
<P>
904
<DD><DL>
905
</DL>
906
</DD>
907
<DD><DL>
908
</DL>
909
</DD>
910
</DL>
911
<HR>
912
 
913
<A NAME="setEnabled(com.badlogic.gdx.scenes.scene2d.Actor, boolean)"><!-- --></A><H3>
914
setEnabled</H3>
915
<PRE>
916
public void <B>setEnabled</B>(<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor</A>&nbsp;actor,
917
                       boolean&nbsp;enabled)</PRE>
918
<DL>
919
<DD>Sets the style on the actor to disabled or enabled. This is done by appending "-disabled" to the style name when enabled is
920
 false, and removing "-disabled" from the style name when enabled is true. A method named "getStyle" is called the actor via
921
 reflection and the name of that style is found in the skin. If the actor doesn't have a "getStyle" method or the style was
922
 not found in the skin, no exception is thrown and the actor is left unchanged.
923
<P>
924
<DD><DL>
925
</DL>
926
</DD>
927
<DD><DL>
928
</DL>
929
</DD>
930
</DL>
931
<HR>
932
 
933
<A NAME="getAtlas()"><!-- --></A><H3>
934
getAtlas</H3>
935
<PRE>
936
public <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d">TextureAtlas</A> <B>getAtlas</B>()</PRE>
937
<DL>
938
<DD>Returns the <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureAtlas</CODE></A> that resources in this skin reference, or null.
939
<P>
940
<DD><DL>
941
</DL>
942
</DD>
943
<DD><DL>
944
</DL>
945
</DD>
946
</DL>
947
<HR>
948
 
949
<A NAME="dispose()"><!-- --></A><H3>
950
dispose</H3>
951
<PRE>
952
public void <B>dispose</B>()</PRE>
953
<DL>
954
<DD>Disposes the <A HREF="../../../../../../com/badlogic/gdx/graphics/g2d/TextureAtlas.html" title="class in com.badlogic.gdx.graphics.g2d"><CODE>TextureAtlas</CODE></A> and all <A HREF="../../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils"><CODE>Disposable</CODE></A> resources in the skin.
955
<P>
956
<DD><DL>
957
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">dispose</A></CODE> in interface <CODE><A HREF="../../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></CODE></DL>
958
</DD>
959
<DD><DL>
960
</DL>
961
</DD>
962
</DL>
963
<HR>
964
 
965
<A NAME="getJsonLoader(com.badlogic.gdx.files.FileHandle)"><!-- --></A><H3>
966
getJsonLoader</H3>
967
<PRE>
968
protected <A HREF="../../../../../../com/badlogic/gdx/utils/Json.html" title="class in com.badlogic.gdx.utils">Json</A> <B>getJsonLoader</B>(<A HREF="../../../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;skinFile)</PRE>
969
<DL>
970
<DD><DL>
971
</DL>
972
</DD>
973
<DD><DL>
974
</DL>
975
</DD>
976
</DL>
977
<!-- ========= END OF CLASS DATA ========= -->
978
<HR>
979
 
980
 
981
<!-- ======= START OF BOTTOM NAVBAR ====== -->
982
<A NAME="navbar_bottom"><!-- --></A>
983
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
984
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
985
<TR>
986
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
987
<A NAME="navbar_bottom_firstrow"><!-- --></A>
988
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
989
  <TR ALIGN="center" VALIGN="top">
990
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
991
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
992
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
993
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Skin.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
994
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
995
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
996
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
997
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
998
  </TR>
999
</TABLE>
1000
</TD>
1001
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1002
libgdx API</EM>
1003
</TD>
1004
</TR>
1005
 
1006
<TR>
1007
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1008
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/SelectBox.SelectBoxStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><B>PREV CLASS</B></A>&nbsp;
1009
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.TintedDrawable.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><B>NEXT CLASS</B></A></FONT></TD>
1010
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1011
  <A HREF="../../../../../../index.html?com/badlogic/gdx/scenes/scene2d/ui/Skin.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1012
&nbsp;<A HREF="Skin.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1013
&nbsp;<SCRIPT type="text/javascript">
1014
  <!--
1015
  if(window==top) {
1016
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1017
  }
1018
  //-->
1019
</SCRIPT>
1020
<NOSCRIPT>
1021
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
1022
</NOSCRIPT>
1023
 
1024
 
1025
</FONT></TD>
1026
</TR>
1027
<TR>
1028
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1029
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1030
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1031
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1032
</TR>
1033
</TABLE>
1034
<A NAME="skip-navbar_bottom"></A>
1035
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1036
 
1037
<HR>
1038
 
1039
                                <div style="font-size:9pt"><i>
1040
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
1041
                                </i></div>
1042
 
1043
</BODY>
1044
</HTML>