public class FigureProvider extends Object implements NodeProvider
FigureProvider can be used
to quickly add a lot of Figures
to a scene, from [figure].json files.
Exceptions thrown from the ResourceLoader will
get catched and rethrown as RuntimeException.| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected List<String> |
names |
| Constructor and Description |
|---|
FigureProvider(String name,
List<String> names)
Construct a new FigureProvider...
|
FigureProvider(String name,
String... names)
Construct a new FigureProvider...
|
public FigureProvider(String name, List<String> names)
name - Name of the root Node returnednames - Names of json figure declarationspublic Node get()
| Node(name)
|
| -> | Node(floor)
| | -> Figure(floor)
|
| -> | Node(another)
| | -> Figure(another)
get in interface NodeProviderRuntimeException - when an Excpetion is thrown from the ResourceLoaderCopyright © 2014. All rights reserved.