public class PrioritizableScene extends AbstractScene
Modifier and Type | Field and Description |
---|---|
static boolean |
ADD_HIGHEST_PRIORITY |
static boolean |
ADD_LOWEST_PRIORITY |
Constructor and Description |
---|
PrioritizableScene() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(PhysicalObject e) |
boolean |
add(PhysicalObject e,
boolean addMode) |
boolean |
add(PhysicalObject e,
int priority)
This method is always called if an object is added to the scene.
|
boolean |
addAll(java.util.Collection<? extends PhysicalObject> c) |
boolean |
addAll(PrioritizableScene c) |
void |
clear() |
void |
clearObjectsOnly() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
int |
getHighestPriority() |
int |
getLowestPriority() |
PhysicalObject |
getObject(int i) |
int |
getPriority(PhysicalObject o) |
boolean |
isEmpty() |
java.util.Iterator<PhysicalObject> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
getBackgroundMaterial, getMax, getMin, getName, setBackground, setMax, setMin, setName
public static final boolean ADD_HIGHEST_PRIORITY
public static final boolean ADD_LOWEST_PRIORITY
public int getPriority(PhysicalObject o)
public int getHighestPriority()
public int getLowestPriority()
public boolean add(PhysicalObject e)
public boolean add(PhysicalObject e, boolean addMode)
public boolean add(PhysicalObject e, int priority)
e
- The object to addpriority
- The object's prioritypublic boolean addAll(java.util.Collection<? extends PhysicalObject> c)
public boolean addAll(PrioritizableScene c)
public void clear()
public void clearObjectsOnly()
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean isEmpty()
public java.util.Iterator<PhysicalObject> iterator()
public PhysicalObject getObject(int i)
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public int size()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)