Package net.dermetfan.gdx
Class Multiplexer<T>
java.lang.Object
net.dermetfan.gdx.Multiplexer<T>
- Type Parameters:
T
- the type of the receivers
- Direct Known Subclasses:
EventMultiplexer
,Popup.BehaviorMultiplexer
,Popup.PositionBehavior.PositionMultiplexer
public abstract class Multiplexer<T>
extends java.lang.Object
Base class for multiplexers that forward e.g. events to an Array of receivers
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Multiplexer()
Multiplexer(int size)
Multiplexer(com.badlogic.gdx.utils.Array<T> receivers)
Multiplexer(T... receivers)
-
Method Summary
Modifier and Type Method Description void
add(T receiver)
void
clear()
com.badlogic.gdx.utils.Array<T>
getReceivers()
boolean
remove(T receiver)
void
setReceivers(com.badlogic.gdx.utils.Array<T> receivers)
void
setReceivers(T... receivers)
int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
receivers
the receivers
-
-
Constructor Details
-
Method Details
-
add
- Parameters:
receiver
- the receiver to add
-
remove
- Parameters:
receiver
- the receiver to remove
-
clear
public void clear()- See Also:
Array.clear()
-
size
public int size()- See Also:
Array.size
-
setReceivers
- Parameters:
receivers
- thereceivers
to set
-
setReceivers
- Parameters:
receivers
- thereceivers
to set
-
getReceivers
- Returns:
- the
receivers
-