public class ModelInfo
extends java.lang.Object
implements java.io.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(java.lang.String name)
This method returns LayerInfo for specified layer name
|
java.util.Set<LayerInfo> |
getLayersByType(java.lang.String layerType) |
java.util.Set<java.lang.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(java.lang.String name)
name
- public LayerInfo getLayerInfoByCoords(int x, int y)
x
- y
- public int size()
public java.util.Set<java.lang.String> getLayerTypes()
public java.util.Set<LayerInfo> getLayersByType(java.lang.String layerType)