net.avh4.framework.uilayer.scene
Class Scene

java.lang.Object
  extended by net.avh4.framework.uilayer.scene.Scene
All Implemented Interfaces:
Iterable<SceneElement>

public class Scene
extends Object
implements Iterable<SceneElement>


Field Summary
protected  String title
           
 
Constructor Summary
Scene()
           
Scene(String title)
           
 
Method Summary
<T extends SceneElement>
T
add(T element)
          The provided element will be returned for convenience.
<T extends SceneElement>
T
findSceneElement(Class<T> elementType, String what)
           
<T extends SceneElement>
T
findSceneElement(String what)
           
 int getHeight()
           
 String getTitle()
           
 int getWidth()
           
 Iterator<SceneElement> iterator()
           
 void setSize(int width, int height)
           
 void setTitle(String newTitle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected String title
Constructor Detail

Scene

public Scene(String title)

Scene

public Scene()
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

getTitle

public String getTitle()

setSize

public void setSize(int width,
                    int height)

add

public <T extends SceneElement> T add(T element)
The provided element will be returned for convenience.


iterator

public Iterator<SceneElement> iterator()
Specified by:
iterator in interface Iterable<SceneElement>

findSceneElement

public <T extends SceneElement> T findSceneElement(String what)

findSceneElement

public <T extends SceneElement> T findSceneElement(Class<T> elementType,
                                                   String what)

setTitle

public void setTitle(String newTitle)


Copyright © 2012. All Rights Reserved.