public class LXRegistry extends Object implements LXSerializable
Modifier and Type | Class and Description |
---|---|
class |
LXRegistry.JsonFixture
JSON fixture type
|
static interface |
LXRegistry.Listener |
class |
LXRegistry.Plugin |
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
List<Class<? extends LXBlend>> |
channelBlends
The list of globally registered channel blend classes
|
protected LXClassLoader |
classLoader |
List<Class<? extends LXBlend>> |
crossfaderBlends
The list of globally registered crossfader blend classes
|
List<Class<? extends LXEffect>> |
effects
The list of globally registered effects
|
List<Class<? extends LXFixture>> |
fixtures
List of globally registered fixtures.
|
List<LXRegistry.JsonFixture> |
jsonFixtures
The list of globally registered JSON fixture types
|
LX |
lx |
List<LXClassLoader.Package> |
packages
Registered packages
|
List<Class<? extends LXPattern>> |
patterns |
List<LXRegistry.Plugin> |
plugins
Registered plugins
|
List<Class<? extends LXBlend>> |
transitionBlends
The list of globally registered transition blend classes
|
Constructor and Description |
---|
LXRegistry(LX lx) |
Modifier and Type | Method and Description |
---|---|
LXRegistry |
addBlend(Class<? extends LXBlend> blend)
Register a [channel and crossfader] blend class with the engine
|
LXRegistry |
addBlends(Class<LXBlend>[] blends)
Register multiple [channel and crossfader] blend classes with the engine
|
LXRegistry |
addChannelBlend(Class<? extends LXBlend> blend)
Register a channel blend class with the engine
|
LXRegistry |
addChannelBlends(Class<LXBlend>[] blends)
Register multiple channel blend classes with the engine
|
protected void |
addClass(Class<?> clz) |
LXRegistry |
addCrossfaderBlend(Class<? extends LXBlend> blend)
Register a crossfader blend class with the engine
|
LXRegistry |
addCrossfaderBlends(Class<LXBlend>[] blends)
Register multiple crossfader blend classes with the engine
|
LXRegistry |
addEffect(Class<? extends LXEffect> effect)
Register an effect class with the engine
|
LXRegistry |
addEffects(Class<? extends LXEffect>[] effects)
Register an effect class with the engine
|
LXRegistry |
addFixture(Class<? extends LXFixture> fixture)
Register a fixture class with the engine
|
LXRegistry |
addFixtures(List<Class<? extends LXFixture>> fixtures)
Register a set of fixture classes with the engine
|
LXRegistry |
addListener(LXRegistry.Listener listener) |
LXRegistry |
addPattern(Class<? extends LXPattern> pattern)
Register a pattern class with the engine
|
LXRegistry |
addPatterns(Class<? extends LXPattern>[] patterns)
Register a pattern class with the engine
|
protected void |
addPlugin(Class<? extends LXPlugin> plugin) |
LXRegistry |
addTransitionBlend(Class<? extends LXBlend> blend)
Register a transition blend class with the engine
|
LXRegistry |
addTransitionBlends(Class<LXBlend>[] blends)
Register multiple channel blend classes with the engine
|
void |
checkRegistration() |
protected void |
initialize() |
protected void |
initializePlugins() |
void |
installPackage(File file) |
void |
load(LX lx,
JsonObject object)
Restores this instance from a JSON object
|
void |
reloadContent() |
protected void |
removeClass(Class<?> clz) |
LXRegistry |
removeEffect(Class<? extends LXEffect> effect)
Unregister effect class with the engine
|
LXRegistry |
removeEffects(List<Class<? extends LXEffect>> effects)
Unregister effect classes with the engine
|
LXRegistry |
removeFixture(Class<? extends LXFixture> fixture)
Unregister fixture class with the engine
|
LXRegistry |
removeFixtures(List<Class<? extends LXFixture>> fixtures)
Unregister fixture classes with the engine
|
LXRegistry |
removeListener(LXRegistry.Listener listener) |
LXRegistry |
removePattern(Class<? extends LXPattern> pattern)
Unregister pattern class with the engine
|
LXRegistry |
removePatterns(List<Class<? extends LXPattern>> patterns)
Unregister pattern classes with the engine
|
void |
save(LX lx,
JsonObject object)
Serializes this instance into the JSON object
|
void |
uninstallPackage(LXClassLoader.Package pack) |
public final List<Class<? extends LXEffect>> effects
public final List<Class<? extends LXBlend>> channelBlends
public final List<Class<? extends LXBlend>> transitionBlends
public final List<Class<? extends LXBlend>> crossfaderBlends
public final List<Class<? extends LXFixture>> fixtures
public final List<LXRegistry.JsonFixture> jsonFixtures
public final List<LXClassLoader.Package> packages
public final List<LXRegistry.Plugin> plugins
public final LX lx
protected LXClassLoader classLoader
public LXRegistry(LX lx)
public LXRegistry addListener(LXRegistry.Listener listener)
public LXRegistry removeListener(LXRegistry.Listener listener)
protected void initialize()
public void checkRegistration()
public void reloadContent()
public void installPackage(File file)
public void uninstallPackage(LXClassLoader.Package pack)
protected void addClass(Class<?> clz)
protected void removeClass(Class<?> clz)
public LXRegistry addPattern(Class<? extends LXPattern> pattern)
pattern
- Pattern classpublic LXRegistry addPatterns(Class<? extends LXPattern>[] patterns)
patterns
- List of pattern classespublic LXRegistry removePattern(Class<? extends LXPattern> pattern)
pattern
- Pattern classpublic LXRegistry removePatterns(List<Class<? extends LXPattern>> patterns)
patterns
- Pattern classespublic LXRegistry addEffect(Class<? extends LXEffect> effect)
effect
- Effect classpublic LXRegistry addEffects(Class<? extends LXEffect>[] effects)
effects
- List of effect classespublic LXRegistry removeEffect(Class<? extends LXEffect> effect)
effect
- Effect classpublic LXRegistry removeEffects(List<Class<? extends LXEffect>> effects)
effects
- Effect classespublic LXRegistry addFixture(Class<? extends LXFixture> fixture)
fixture
- Fixture classpublic LXRegistry addFixtures(List<Class<? extends LXFixture>> fixtures)
fixtures
- List of fixture classespublic LXRegistry removeFixture(Class<? extends LXFixture> fixture)
fixture
- Fixture classpublic LXRegistry removeFixtures(List<Class<? extends LXFixture>> fixtures)
fixtures
- Fixture classespublic LXRegistry addBlend(Class<? extends LXBlend> blend)
blend
- Blend classpublic LXRegistry addBlends(Class<LXBlend>[] blends)
blends
- List of blend classespublic LXRegistry addChannelBlend(Class<? extends LXBlend> blend)
blend
- Blend classpublic LXRegistry addChannelBlends(Class<LXBlend>[] blends)
blends
- List of blend classespublic LXRegistry addTransitionBlend(Class<? extends LXBlend> blend)
blend
- Blend classpublic LXRegistry addTransitionBlends(Class<LXBlend>[] blends)
blends
- List of blend classespublic LXRegistry addCrossfaderBlend(Class<? extends LXBlend> blend)
blend
- Blend classpublic LXRegistry addCrossfaderBlends(Class<LXBlend>[] blends)
blends
- List of blend classesprotected void initializePlugins()
public void save(LX lx, JsonObject object)
LXSerializable
save
in interface LXSerializable
lx
- LX instanceobject
- Object to serialize intopublic void load(LX lx, JsonObject object)
LXSerializable
load
in interface LXSerializable
lx
- LX instanceobject
- Object to deserializeLX library by Mark C. Slee. © 2012-2020