public class ModelInfo extends Object implements Serializable
| Constructor and Description |
|---|
ModelInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayer(LayerInfo layer)
This method maps given layer into model coordinate space
|
LayerInfo |
getLayerInfoByCoords(int x,
int y)
This method returns LayerInfo for specified grid coordinates
|
LayerInfo |
getLayerInfoByName(String name)
This method returns LayerInfo for specified layer name
|
Set<LayerInfo> |
getLayersByType(String layerType) |
Set<String> |
getLayerTypes()
This method returns all LayerTypes used in this model
|
int |
size()
This method returns the total number of nodes within described model
|
public void addLayer(@NonNull
LayerInfo layer)
layer - public LayerInfo getLayerInfoByName(String name)
name - public LayerInfo getLayerInfoByCoords(int x, int y)
x - y - public int size()
public Set<String> getLayerTypes()
Copyright © 2017. All rights reserved.