<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:43 CET 2013 -->
<title>Actor (libgdx API)
</title>
<meta name="date" content="2013-11-03">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Actor (libgdx API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.
</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/Actor.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../../index-all.html">Index
</a></li>
<li><a href="../../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><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></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html" title="class in com.badlogic.gdx.scenes.scene2d"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/badlogic/gdx/scenes/scene2d/Actor.html" target="_top">Frames
</a></li>
<li><a href="Actor.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li>Nested
|
</li>
<li>Field
|
</li>
<li><a href="#constructor_summary">Constr
</a> |
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li>Field
|
</li>
<li><a href="#constructor_detail">Constr
</a> |
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.badlogic.gdx.scenes.scene2d
</div>
<h2 title="Class Actor" class="title">Class Actor
</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object
</li>
<li>
<ul class="inheritance">
<li>com.badlogic.gdx.scenes.scene2d.Actor
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:
</dt>
<dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html" title="class in com.badlogic.gdx.scenes.scene2d">Group
</a>,
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</a></dd>
</dl>
<hr>
<br>
<pre>public class
<span class="strong">Actor
</span>
extends java.lang.Object
</pre>
<div class="block">2D scene graph node. An actor has a position, rectangular size, origin, scale, rotation, Z index, and color. The position
corresponds to the unrotated, unscaled bottom left corner of the actor. The position is relative to the actor's parent. The
origin is relative to the position and is used for scale and rotation.
<p>
An actor has a list of in-progress
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d"><code>actions
</code></a> that are applied to the actor (over time). These are generally used to
change the presentation of the actor (moving it, resizing it, etc). See
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#act(float)"><code>act(float)
</code></a> and
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d"><code>Action
</code></a>.
<p>
An actor has two kinds of listeners associated with it: "capture" and regular. The listeners are notified of events the actor
or its children receive. The capture listeners are designed to allow a parent or container actor to hide events from child
actors. The regular listeners are designed to allow an actor to respond to events that have been delivered. See
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#fire(com.badlogic.gdx.scenes.scene2d.Event)"><code>fire(com.badlogic.gdx.scenes.scene2d.Event)
</code></a>
for more details.
<p>
An
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/InputListener.html" title="class in com.badlogic.gdx.scenes.scene2d"><code>InputListener
</code></a> can receive all the basic input events, and more complex listeners (like
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/utils/ClickListener.html" title="class in com.badlogic.gdx.scenes.scene2d.utils"><code>ClickListener
</code></a> and
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/utils/ActorGestureListener.html" title="class in com.badlogic.gdx.scenes.scene2d.utils"><code>ActorGestureListener
</code></a>) can listen for and combine primitive events and recognize complex interactions like multi-click
or pinch.
</div>
<dl><dt><span class="strong">Author:
</span></dt>
<dd>mzechner, Nathan Sweet
</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description
</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#Actor()">Actor
</a></strong>()
</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Method and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#act(float)">act
</a></strong>(float
delta)
</code>
<div class="block">Updates the actor based on time.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addAction(com.badlogic.gdx.scenes.scene2d.Action)">addAction
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d">Action
</a> action)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)">addCaptureListener
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a> listener)
</code>
<div class="block">Adds a listener that is only notified during the capture phase.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addListener(com.badlogic.gdx.scenes.scene2d.EventListener)">addListener
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a> listener)
</code>
<div class="block">Add a listener to receive events that
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#hit(float, float, boolean)"><code>hit
</code></a> this actor.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clear()">clear
</a></strong>()
</code>
<div class="block">Removes all actions and listeners on this actor.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clearActions()">clearActions
</a></strong>()
</code>
<div class="block">Removes all actions on this actor.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clearListeners()">clearListeners
</a></strong>()
</code>
<div class="block">Removes all listeners on this actor.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipBegin()">clipBegin
</a></strong>()
</code>
<div class="block">Calls
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipBegin(float, float, float, float)"><code>clipBegin(float, float, float, float)
</code></a> to clip this actor's bounds.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipBegin(float, float, float, float)">clipBegin
</a></strong>(float
x,
float
y,
float
width,
float
height)
</code>
<div class="block">Clips the specified screen aligned rectangle, specified relative to the transform matrix of the stage's SpriteBatch.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipEnd()">clipEnd
</a></strong>()
</code>
<div class="block">Ends clipping begun by
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipBegin(float, float, float, float)"><code>clipBegin(float, float, float, float)
</code></a>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">draw
</a></strong>(
<a href="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch
</a> batch,
float
parentAlpha)
</code>
<div class="block">Draws the actor.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#fire(com.badlogic.gdx.scenes.scene2d.Event)">fire
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html" title="class in com.badlogic.gdx.scenes.scene2d">Event
</a> event)
</code>
<div class="block">Sets this actor as the event
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#setTarget(com.badlogic.gdx.scenes.scene2d.Actor)"><code>target
</code></a> and propagates the event to this actor and ancestor
actors as necessary.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array
</a><<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d">Action
</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getActions()">getActions
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array
</a><<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getCaptureListeners()">getCaptureListeners
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getColor()">getColor
</a></strong>()
</code>
<div class="block">Returns the color the actor will be tinted when drawn.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getHeight()">getHeight
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array
</a><<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getListeners()">getListeners
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getName()">getName
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getOriginX()">getOriginX
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getOriginY()">getOriginY
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html" title="class in com.badlogic.gdx.scenes.scene2d">Group
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getParent()">getParent
</a></strong>()
</code>
<div class="block">Returns the parent actor, or null if not in a stage.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getRight()">getRight
</a></strong>()
</code>
<div class="block">Returns x plus width.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getRotation()">getRotation
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getScaleX()">getScaleX
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getScaleY()">getScaleY
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html" title="class in com.badlogic.gdx.scenes.scene2d">Stage
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getStage()">getStage
</a></strong>()
</code>
<div class="block">Returns the stage that this actor is currently in, or null if not in a stage.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getTop()">getTop
</a></strong>()
</code>
<div class="block">Returns y plus height.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getTouchable()">getTouchable
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getWidth()">getWidth
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getX()">getX
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getY()">getY
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getZIndex()">getZIndex
</a></strong>()
</code>
<div class="block">Returns the z-index of this actor.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#hasParent()">hasParent
</a></strong>()
</code>
<div class="block">Returns true if the actor's parent is not null.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#hit(float, float, boolean)">hit
</a></strong>(float
x,
float
y,
boolean
touchable)
</code>
<div class="block">Returns the deepest actor that contains the specified point and is
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getTouchable()"><code>touchable
</code></a> and
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isVisible()"><code>visible
</code></a>, or null if no actor was hit.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isAscendantOf(com.badlogic.gdx.scenes.scene2d.Actor)">isAscendantOf
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a> actor)
</code>
<div class="block">Returns true if this actor is the same as or is the ascendant of the specified actor.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isDescendantOf(com.badlogic.gdx.scenes.scene2d.Actor)">isDescendantOf
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a> actor)
</code>
<div class="block">Returns true if this actor is the same as or is the descendant of the specified actor.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isVisible()">isVisible
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#localToAscendantCoordinates(com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.math.Vector2)">localToAscendantCoordinates
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a> ascendant,
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localCoords)
</code>
<div class="block">Converts coordinates for this actor to those of a parent actor.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#localToParentCoordinates(com.badlogic.gdx.math.Vector2)">localToParentCoordinates
</a></strong>(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localCoords)
</code>
<div class="block">Transforms the specified point in the actor's coordinates to be in the parent's coordinates.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#localToStageCoordinates(com.badlogic.gdx.math.Vector2)">localToStageCoordinates
</a></strong>(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localCoords)
</code>
<div class="block">Transforms the specified point in the actor's coordinates to be in the stage's coordinates.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#notify(com.badlogic.gdx.scenes.scene2d.Event, boolean)">notify
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html" title="class in com.badlogic.gdx.scenes.scene2d">Event
</a> event,
boolean
capture)
</code>
<div class="block">Notifies this actor's listeners of the event.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#parentToLocalCoordinates(com.badlogic.gdx.math.Vector2)">parentToLocalCoordinates
</a></strong>(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> parentCoords)
</code>
<div class="block">Converts the coordinates given in the parent's coordinate system to this actor's coordinate system.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#remove()">remove
</a></strong>()
</code>
<div class="block">Removes this actor from its parent, if it has a parent.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#removeAction(com.badlogic.gdx.scenes.scene2d.Action)">removeAction
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d">Action
</a> action)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#removeCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)">removeCaptureListener
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a> listener)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#removeListener(com.badlogic.gdx.scenes.scene2d.EventListener)">removeListener
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a> listener)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#rotate(float)">rotate
</a></strong>(float
amountInDegrees)
</code>
<div class="block">Adds the specified rotation to the current rotation.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#scale(float)">scale
</a></strong>(float
scale)
</code>
<div class="block">Adds the specified scale to the current scale.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#scale(float, float)">scale
</a></strong>(float
scaleX,
float
scaleY)
</code>
<div class="block">Adds the specified scale to the current scale.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#screenToLocalCoordinates(com.badlogic.gdx.math.Vector2)">screenToLocalCoordinates
</a></strong>(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> screenCoords)
</code>
<div class="block">Transforms the specified point in screen coordinates to the actor's local coordinate system.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setBounds(float, float, float, float)">setBounds
</a></strong>(float
x,
float
y,
float
width,
float
height)
</code>
<div class="block">Set bounds the x, y, width, and height.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setColor(com.badlogic.gdx.graphics.Color)">setColor
</a></strong>(
<a href="../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color
</a> color)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setColor(float, float, float, float)">setColor
</a></strong>(float
r,
float
g,
float
b,
float
a)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setHeight(float)">setHeight
</a></strong>(float
height)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setName(java.lang.String)">setName
</a></strong>(java.lang.String
name)
</code>
<div class="block">Sets a name for easier identification of the actor in application code.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setOrigin(float, float)">setOrigin
</a></strong>(float
originX,
float
originY)
</code>
<div class="block">Sets the originx and originy.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setOriginX(float)">setOriginX
</a></strong>(float
originX)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setOriginY(float)">setOriginY
</a></strong>(float
originY)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setParent(com.badlogic.gdx.scenes.scene2d.Group)">setParent
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html" title="class in com.badlogic.gdx.scenes.scene2d">Group
</a> parent)
</code>
<div class="block">Called by the framework when an actor is added to or removed from a group.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setPosition(float, float)">setPosition
</a></strong>(float
x,
float
y)
</code>
<div class="block">Sets the x and y.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setRotation(float)">setRotation
</a></strong>(float
degrees)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setScale(float)">setScale
</a></strong>(float
scale)
</code>
<div class="block">Sets the scalex and scaley.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setScale(float, float)">setScale
</a></strong>(float
scaleX,
float
scaleY)
</code>
<div class="block">Sets the scalex and scaley.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setScaleX(float)">setScaleX
</a></strong>(float
scaleX)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setScaleY(float)">setScaleY
</a></strong>(float
scaleY)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setSize(float, float)">setSize
</a></strong>(float
width,
float
height)
</code>
<div class="block">Sets the width and height.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setStage(com.badlogic.gdx.scenes.scene2d.Stage)">setStage
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html" title="class in com.badlogic.gdx.scenes.scene2d">Stage
</a> stage)
</code>
<div class="block">Called by the framework when this actor or any parent is added to a group that is in the stage.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setTouchable(com.badlogic.gdx.scenes.scene2d.Touchable)">setTouchable
</a></strong>(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable
</a> touchable)
</code>
<div class="block">Determines how touch events are distributed to this actor.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setVisible(boolean)">setVisible
</a></strong>(boolean
visible)
</code>
<div class="block">If false, the actor will not be drawn and will not receive touch events.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setWidth(float)">setWidth
</a></strong>(float
width)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setX(float)">setX
</a></strong>(float
x)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setY(float)">setY
</a></strong>(float
y)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setZIndex(int)">setZIndex
</a></strong>(int
index)
</code>
<div class="block">Sets the z-index of this actor.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#size(float)">size
</a></strong>(float
size)
</code>
<div class="block">Adds the specified size to the current size.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#size(float, float)">size
</a></strong>(float
width,
float
height)
</code>
<div class="block">Adds the specified size to the current size.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#sizeChanged()">sizeChanged
</a></strong>()
</code>
<div class="block">Called when the actor's size has been changed.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#stageToLocalCoordinates(com.badlogic.gdx.math.Vector2)">stageToLocalCoordinates
</a></strong>(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> stageCoords)
</code>
<div class="block">Transforms the specified point in the stage's coordinates to the actor's local coordinate system.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#toBack()">toBack
</a></strong>()
</code>
<div class="block">Changes the z-order for this actor so it is in back of all siblings.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#toFront()">toFront
</a></strong>()
</code>
<div class="block">Changes the z-order for this actor so it is in front of all siblings.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#toString()">toString
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#translate(float, float)">translate
</a></strong>(float
x,
float
y)
</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class
java.lang.Object
</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail
</h3>
<a name="Actor()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Actor
</h4>
<pre>public
Actor()
</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail
</h3>
<a name="draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>draw
</h4>
<pre>public
void
draw(
<a href="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch
</a> batch,
float
parentAlpha)
</pre>
<div class="block">Draws the actor. The SpriteBatch is configured to draw in the parent's coordinate system.
<a href="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html#draw(com.badlogic.gdx.graphics.g2d.TextureRegion, float, float, float, float, float, float, float, float, float)"><code>This draw method
</code></a> is convenient to draw a rotated and scaled TextureRegion.
<a href="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html#begin()"><code>SpriteBatch.begin()
</code></a> has already been
called on the SpriteBatch. If
<a href="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html#end()"><code>SpriteBatch.end()
</code></a> is called to draw without the SpriteBatch then
<a href="../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html#begin()"><code>SpriteBatch.begin()
</code></a> must be called before the method returns.
<p>
The default implementation does nothing.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>parentAlpha
</code> - Should be multiplied with the actor's alpha, allowing a parent's alpha to affect all children.
</dd></dl>
</li>
</ul>
<a name="act(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>act
</h4>
<pre>public
void
act(float
delta)
</pre>
<div class="block">Updates the actor based on time. Typically this is called each frame by
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#act(float)"><code>Stage.act(float)
</code></a>.
<p>
The default implementation calls
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html#act(float)"><code>Action.act(float)
</code></a> on each action and removes actions that are complete.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>delta
</code> - Time in seconds since the last frame.
</dd></dl>
</li>
</ul>
<a name="fire(com.badlogic.gdx.scenes.scene2d.Event)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fire
</h4>
<pre>public
boolean
fire(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html" title="class in com.badlogic.gdx.scenes.scene2d">Event
</a> event)
</pre>
<div class="block">Sets this actor as the event
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#setTarget(com.badlogic.gdx.scenes.scene2d.Actor)"><code>target
</code></a> and propagates the event to this actor and ancestor
actors as necessary. If this actor is not in the stage, the stage must be set before calling this method.
<p>
Events are fired in 2 phases.
<ol>
<li>The first phase (the "capture" phase) notifies listeners on each actor starting at the root and propagating downward to
(and including) this actor.
</li>
<li>The second phase notifies listeners on each actor starting at this actor and, if
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#getBubbles()"><code>Event.getBubbles()
</code></a> is true,
propagating upward to the root.
</li>
</ol>
If the event is
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#stop()"><code>stopped
</code></a> at any time, it will not propagate to the next actor.
</div>
<dl><dt><span class="strong">Returns:
</span></dt><dd>true if the event was
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#cancel()"><code>cancelled
</code></a>.
</dd></dl>
</li>
</ul>
<a name="notify(com.badlogic.gdx.scenes.scene2d.Event, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notify
</h4>
<pre>public
boolean
notify(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html" title="class in com.badlogic.gdx.scenes.scene2d">Event
</a> event,
boolean
capture)
</pre>
<div class="block">Notifies this actor's listeners of the event. The event is not propagated to any parents. Before notifying the listeners,
this actor is set as the
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#getListenerActor()"><code>listener actor
</code></a>. The event
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#setTarget(com.badlogic.gdx.scenes.scene2d.Actor)"><code>target
</code></a>
must be set before calling this method. If this actor is not in the stage, the stage must be set before calling this method.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>capture
</code> - If true, the capture listeners will be notified instead of the regular listeners.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>true of the event was
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html#cancel()"><code>cancelled
</code></a>.
</dd></dl>
</li>
</ul>
<a name="hit(float, float, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hit
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a> hit(float
x,
float
y,
boolean
touchable)
</pre>
<div class="block">Returns the deepest actor that contains the specified point and is
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getTouchable()"><code>touchable
</code></a> and
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isVisible()"><code>visible
</code></a>, or null if no actor was hit. The point is specified in the actor's local coordinate system (0,0
is the bottom left of the actor and width,height is the upper right).
<p>
This method is used to delegate touchDown, mouse, and enter/exit events. If this method returns null, those events will not
occur on this Actor.
<p>
The default implementation returns this actor if the point is within this actor's bounds.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>touchable
</code> - If true, the hit detection will respect the
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setTouchable(com.badlogic.gdx.scenes.scene2d.Touchable)"><code>touchability
</code></a>.
</dd><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d"><code>Touchable
</code></a></dd></dl>
</li>
</ul>
<a name="remove()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remove
</h4>
<pre>public
boolean
remove()
</pre>
<div class="block">Removes this actor from its parent, if it has a parent.
</div>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html#removeActor(com.badlogic.gdx.scenes.scene2d.Actor)"><code>Group.removeActor(Actor)
</code></a></dd></dl>
</li>
</ul>
<a name="addListener(com.badlogic.gdx.scenes.scene2d.EventListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addListener
</h4>
<pre>public
boolean
addListener(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a> listener)
</pre>
<div class="block">Add a listener to receive events that
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#hit(float, float, boolean)"><code>hit
</code></a> this actor. See
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#fire(com.badlogic.gdx.scenes.scene2d.Event)"><code>fire(Event)
</code></a>.
</div>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/InputListener.html" title="class in com.badlogic.gdx.scenes.scene2d"><code>InputListener
</code></a>,
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/utils/ClickListener.html" title="class in com.badlogic.gdx.scenes.scene2d.utils"><code>ClickListener
</code></a></dd></dl>
</li>
</ul>
<a name="removeListener(com.badlogic.gdx.scenes.scene2d.EventListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeListener
</h4>
<pre>public
boolean
removeListener(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a> listener)
</pre>
</li>
</ul>
<a name="getListeners()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getListeners
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array
</a><<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a>> getListeners()
</pre>
</li>
</ul>
<a name="addCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addCaptureListener
</h4>
<pre>public
boolean
addCaptureListener(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a> listener)
</pre>
<div class="block">Adds a listener that is only notified during the capture phase.
</div>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#fire(com.badlogic.gdx.scenes.scene2d.Event)"><code>fire(Event)
</code></a></dd></dl>
</li>
</ul>
<a name="removeCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeCaptureListener
</h4>
<pre>public
boolean
removeCaptureListener(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a> listener)
</pre>
</li>
</ul>
<a name="getCaptureListeners()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCaptureListeners
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array
</a><<a href="../../../../../com/badlogic/gdx/scenes/scene2d/EventListener.html" title="interface in com.badlogic.gdx.scenes.scene2d">EventListener
</a>> getCaptureListeners()
</pre>
</li>
</ul>
<a name="addAction(com.badlogic.gdx.scenes.scene2d.Action)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAction
</h4>
<pre>public
void
addAction(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d">Action
</a> action)
</pre>
</li>
</ul>
<a name="removeAction(com.badlogic.gdx.scenes.scene2d.Action)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAction
</h4>
<pre>public
void
removeAction(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d">Action
</a> action)
</pre>
</li>
</ul>
<a name="getActions()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getActions
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array
</a><<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d">Action
</a>> getActions()
</pre>
</li>
</ul>
<a name="clearActions()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearActions
</h4>
<pre>public
void
clearActions()
</pre>
<div class="block">Removes all actions on this actor.
</div>
</li>
</ul>
<a name="clearListeners()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearListeners
</h4>
<pre>public
void
clearListeners()
</pre>
<div class="block">Removes all listeners on this actor.
</div>
</li>
</ul>
<a name="clear()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clear
</h4>
<pre>public
void
clear()
</pre>
<div class="block">Removes all actions and listeners on this actor.
</div>
</li>
</ul>
<a name="getStage()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStage
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html" title="class in com.badlogic.gdx.scenes.scene2d">Stage
</a> getStage()
</pre>
<div class="block">Returns the stage that this actor is currently in, or null if not in a stage.
</div>
</li>
</ul>
<a name="setStage(com.badlogic.gdx.scenes.scene2d.Stage)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStage
</h4>
<pre>protected
void
setStage(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html" title="class in com.badlogic.gdx.scenes.scene2d">Stage
</a> stage)
</pre>
<div class="block">Called by the framework when this actor or any parent is added to a group that is in the stage.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>stage
</code> - May be null if the actor or any parent is no longer in a stage.
</dd></dl>
</li>
</ul>
<a name="isDescendantOf(com.badlogic.gdx.scenes.scene2d.Actor)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDescendantOf
</h4>
<pre>public
boolean
isDescendantOf(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a> actor)
</pre>
<div class="block">Returns true if this actor is the same as or is the descendant of the specified actor.
</div>
</li>
</ul>
<a name="isAscendantOf(com.badlogic.gdx.scenes.scene2d.Actor)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAscendantOf
</h4>
<pre>public
boolean
isAscendantOf(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a> actor)
</pre>
<div class="block">Returns true if this actor is the same as or is the ascendant of the specified actor.
</div>
</li>
</ul>
<a name="hasParent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasParent
</h4>
<pre>public
boolean
hasParent()
</pre>
<div class="block">Returns true if the actor's parent is not null.
</div>
</li>
</ul>
<a name="getParent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParent
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html" title="class in com.badlogic.gdx.scenes.scene2d">Group
</a> getParent()
</pre>
<div class="block">Returns the parent actor, or null if not in a stage.
</div>
</li>
</ul>
<a name="setParent(com.badlogic.gdx.scenes.scene2d.Group)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setParent
</h4>
<pre>protected
void
setParent(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html" title="class in com.badlogic.gdx.scenes.scene2d">Group
</a> parent)
</pre>
<div class="block">Called by the framework when an actor is added to or removed from a group.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>parent
</code> - May be null if the actor has been removed from the parent.
</dd></dl>
</li>
</ul>
<a name="getTouchable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTouchable
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable
</a> getTouchable()
</pre>
</li>
</ul>
<a name="setTouchable(com.badlogic.gdx.scenes.scene2d.Touchable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTouchable
</h4>
<pre>public
void
setTouchable(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html" title="enum in com.badlogic.gdx.scenes.scene2d">Touchable
</a> touchable)
</pre>
<div class="block">Determines how touch events are distributed to this actor. Default is
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Touchable.html#enabled"><code>Touchable.enabled
</code></a>.
</div>
</li>
</ul>
<a name="isVisible()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isVisible
</h4>
<pre>public
boolean
isVisible()
</pre>
</li>
</ul>
<a name="setVisible(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVisible
</h4>
<pre>public
void
setVisible(boolean
visible)
</pre>
<div class="block">If false, the actor will not be drawn and will not receive touch events. Default is true.
</div>
</li>
</ul>
<a name="getX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getX
</h4>
<pre>public
float
getX()
</pre>
</li>
</ul>
<a name="setX(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setX
</h4>
<pre>public
void
setX(float
x)
</pre>
</li>
</ul>
<a name="getY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getY
</h4>
<pre>public
float
getY()
</pre>
</li>
</ul>
<a name="setY(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setY
</h4>
<pre>public
void
setY(float
y)
</pre>
</li>
</ul>
<a name="setPosition(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPosition
</h4>
<pre>public
void
setPosition(float
x,
float
y)
</pre>
<div class="block">Sets the x and y.
</div>
</li>
</ul>
<a name="translate(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate
</h4>
<pre>public
void
translate(float
x,
float
y)
</pre>
</li>
</ul>
<a name="getWidth()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWidth
</h4>
<pre>public
float
getWidth()
</pre>
</li>
</ul>
<a name="setWidth(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWidth
</h4>
<pre>public
void
setWidth(float
width)
</pre>
</li>
</ul>
<a name="getHeight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeight
</h4>
<pre>public
float
getHeight()
</pre>
</li>
</ul>
<a name="setHeight(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHeight
</h4>
<pre>public
void
setHeight(float
height)
</pre>
</li>
</ul>
<a name="getTop()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTop
</h4>
<pre>public
float
getTop()
</pre>
<div class="block">Returns y plus height.
</div>
</li>
</ul>
<a name="getRight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRight
</h4>
<pre>public
float
getRight()
</pre>
<div class="block">Returns x plus width.
</div>
</li>
</ul>
<a name="sizeChanged()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sizeChanged
</h4>
<pre>protected
void
sizeChanged()
</pre>
<div class="block">Called when the actor's size has been changed.
</div>
</li>
</ul>
<a name="setSize(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSize
</h4>
<pre>public
void
setSize(float
width,
float
height)
</pre>
<div class="block">Sets the width and height.
</div>
</li>
</ul>
<a name="size(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size
</h4>
<pre>public
void
size(float
size)
</pre>
<div class="block">Adds the specified size to the current size.
</div>
</li>
</ul>
<a name="size(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size
</h4>
<pre>public
void
size(float
width,
float
height)
</pre>
<div class="block">Adds the specified size to the current size.
</div>
</li>
</ul>
<a name="setBounds(float, float, float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBounds
</h4>
<pre>public
void
setBounds(float
x,
float
y,
float
width,
float
height)
</pre>
<div class="block">Set bounds the x, y, width, and height.
</div>
</li>
</ul>
<a name="getOriginX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOriginX
</h4>
<pre>public
float
getOriginX()
</pre>
</li>
</ul>
<a name="setOriginX(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOriginX
</h4>
<pre>public
void
setOriginX(float
originX)
</pre>
</li>
</ul>
<a name="getOriginY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOriginY
</h4>
<pre>public
float
getOriginY()
</pre>
</li>
</ul>
<a name="setOriginY(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOriginY
</h4>
<pre>public
void
setOriginY(float
originY)
</pre>
</li>
</ul>
<a name="setOrigin(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOrigin
</h4>
<pre>public
void
setOrigin(float
originX,
float
originY)
</pre>
<div class="block">Sets the originx and originy.
</div>
</li>
</ul>
<a name="getScaleX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScaleX
</h4>
<pre>public
float
getScaleX()
</pre>
</li>
</ul>
<a name="setScaleX(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScaleX
</h4>
<pre>public
void
setScaleX(float
scaleX)
</pre>
</li>
</ul>
<a name="getScaleY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScaleY
</h4>
<pre>public
float
getScaleY()
</pre>
</li>
</ul>
<a name="setScaleY(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScaleY
</h4>
<pre>public
void
setScaleY(float
scaleY)
</pre>
</li>
</ul>
<a name="setScale(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScale
</h4>
<pre>public
void
setScale(float
scale)
</pre>
<div class="block">Sets the scalex and scaley.
</div>
</li>
</ul>
<a name="setScale(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScale
</h4>
<pre>public
void
setScale(float
scaleX,
float
scaleY)
</pre>
<div class="block">Sets the scalex and scaley.
</div>
</li>
</ul>
<a name="scale(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scale
</h4>
<pre>public
void
scale(float
scale)
</pre>
<div class="block">Adds the specified scale to the current scale.
</div>
</li>
</ul>
<a name="scale(float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scale
</h4>
<pre>public
void
scale(float
scaleX,
float
scaleY)
</pre>
<div class="block">Adds the specified scale to the current scale.
</div>
</li>
</ul>
<a name="getRotation()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotation
</h4>
<pre>public
float
getRotation()
</pre>
</li>
</ul>
<a name="setRotation(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRotation
</h4>
<pre>public
void
setRotation(float
degrees)
</pre>
</li>
</ul>
<a name="rotate(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rotate
</h4>
<pre>public
void
rotate(float
amountInDegrees)
</pre>
<div class="block">Adds the specified rotation to the current rotation.
</div>
</li>
</ul>
<a name="setColor(com.badlogic.gdx.graphics.Color)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setColor
</h4>
<pre>public
void
setColor(
<a href="../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color
</a> color)
</pre>
</li>
</ul>
<a name="setColor(float, float, float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setColor
</h4>
<pre>public
void
setColor(float
r,
float
g,
float
b,
float
a)
</pre>
</li>
</ul>
<a name="getColor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getColor
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/graphics/Color.html" title="class in com.badlogic.gdx.graphics">Color
</a> getColor()
</pre>
<div class="block">Returns the color the actor will be tinted when drawn. The returned instance can be modified to change the color.
</div>
</li>
</ul>
<a name="getName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getName
</h4>
<pre>public
java.lang.String
getName()
</pre>
</li>
</ul>
<a name="setName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setName
</h4>
<pre>public
void
setName(java.lang.String
name)
</pre>
<div class="block">Sets a name for easier identification of the actor in application code.
</div>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html#findActor(java.lang.String)"><code>Group.findActor(String)
</code></a></dd></dl>
</li>
</ul>
<a name="toFront()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toFront
</h4>
<pre>public
void
toFront()
</pre>
<div class="block">Changes the z-order for this actor so it is in front of all siblings.
</div>
</li>
</ul>
<a name="toBack()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toBack
</h4>
<pre>public
void
toBack()
</pre>
<div class="block">Changes the z-order for this actor so it is in back of all siblings.
</div>
</li>
</ul>
<a name="setZIndex(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setZIndex
</h4>
<pre>public
void
setZIndex(int
index)
</pre>
<div class="block">Sets the z-index of this actor. The z-index is the index into the parent's
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Group.html#getChildren()"><code>children
</code></a>, where a
lower index is below a higher index. Setting a z-index higher than the number of children will move the child to the front.
Setting a z-index less than zero is invalid.
</div>
</li>
</ul>
<a name="getZIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getZIndex
</h4>
<pre>public
int
getZIndex()
</pre>
<div class="block">Returns the z-index of this actor.
</div>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setZIndex(int)"><code>setZIndex(int)
</code></a></dd></dl>
</li>
</ul>
<a name="clipBegin()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clipBegin
</h4>
<pre>public
boolean
clipBegin()
</pre>
<div class="block">Calls
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipBegin(float, float, float, float)"><code>clipBegin(float, float, float, float)
</code></a> to clip this actor's bounds.
</div>
</li>
</ul>
<a name="clipBegin(float, float, float, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clipBegin
</h4>
<pre>public
boolean
clipBegin(float
x,
float
y,
float
width,
float
height)
</pre>
<div class="block">Clips the specified screen aligned rectangle, specified relative to the transform matrix of the stage's SpriteBatch. The
transform matrix and the stage's camera must not have rotational components. Calling this method must be followed by a call
to
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipEnd()"><code>clipEnd()
</code></a> if true is returned.
</div>
<dl><dt><span class="strong">Returns:
</span></dt><dd>false if the clipping area is zero and no drawing should occur.
</dd><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/utils/ScissorStack.html" title="class in com.badlogic.gdx.scenes.scene2d.utils"><code>ScissorStack
</code></a></dd></dl>
</li>
</ul>
<a name="clipEnd()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clipEnd
</h4>
<pre>public
void
clipEnd()
</pre>
<div class="block">Ends clipping begun by
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipBegin(float, float, float, float)"><code>clipBegin(float, float, float, float)
</code></a>.
</div>
</li>
</ul>
<a name="screenToLocalCoordinates(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>screenToLocalCoordinates
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> screenToLocalCoordinates(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> screenCoords)
</pre>
<div class="block">Transforms the specified point in screen coordinates to the actor's local coordinate system.
</div>
</li>
</ul>
<a name="stageToLocalCoordinates(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stageToLocalCoordinates
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> stageToLocalCoordinates(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> stageCoords)
</pre>
<div class="block">Transforms the specified point in the stage's coordinates to the actor's local coordinate system.
</div>
</li>
</ul>
<a name="localToStageCoordinates(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>localToStageCoordinates
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localToStageCoordinates(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localCoords)
</pre>
<div class="block">Transforms the specified point in the actor's coordinates to be in the stage's coordinates.
</div>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Stage.html#toScreenCoordinates(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Matrix4)"><code>Stage.toScreenCoordinates(Vector2, com.badlogic.gdx.math.Matrix4)
</code></a></dd></dl>
</li>
</ul>
<a name="localToParentCoordinates(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>localToParentCoordinates
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localToParentCoordinates(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localCoords)
</pre>
<div class="block">Transforms the specified point in the actor's coordinates to be in the parent's coordinates.
</div>
</li>
</ul>
<a name="localToAscendantCoordinates(com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>localToAscendantCoordinates
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localToAscendantCoordinates(
<a href="../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a> ascendant,
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> localCoords)
</pre>
<div class="block">Converts coordinates for this actor to those of a parent actor. The ascendant does not need to be a direct parent.
</div>
</li>
</ul>
<a name="parentToLocalCoordinates(com.badlogic.gdx.math.Vector2)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parentToLocalCoordinates
</h4>
<pre>public
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> parentToLocalCoordinates(
<a href="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2
</a> parentCoords)
</pre>
<div class="block">Converts the coordinates given in the parent's coordinate system to this actor's coordinate system.
</div>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString
</h4>
<pre>public
java.lang.String
toString()
</pre>
<dl>
<dt><strong>Overrides:
</strong></dt>
<dd><code>toString
</code> in class
<code>java.lang.Object
</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/Actor.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../../index-all.html">Index
</a></li>
<li><a href="../../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>libgdx API
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Action.html" title="class in com.badlogic.gdx.scenes.scene2d"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../../com/badlogic/gdx/scenes/scene2d/Event.html" title="class in com.badlogic.gdx.scenes.scene2d"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/badlogic/gdx/scenes/scene2d/Actor.html" target="_top">Frames
</a></li>
<li><a href="Actor.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li>Nested
|
</li>
<li>Field
|
</li>
<li><a href="#constructor_summary">Constr
</a> |
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li>Field
|
</li>
<li><a href="#constructor_detail">Constr
</a> |
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
<div style="font-size:9pt"><i>
Copyright
© 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
</i></div>
</small></p>
</body>
</html>