|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.rps.Model
public class Model
Model holds RPS representation of layout geometry and logical structure.
The layout geometry is expressed as a set of (perhaps overlapping) Regions.
| Constructor Summary | |
|---|---|
Model()
|
|
| Method Summary | |
|---|---|
void |
addRegion(Region r)
Include a region in the model |
void |
dispose()
|
List<Region> |
getRegions()
Get the list of active regions. |
static Model |
instance()
|
void |
loadModel(File file)
|
void |
removeRegion(Region r)
Include a region in the model |
void |
storeModel(File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Model()
| Method Detail |
|---|
public void dispose()
public void addRegion(Region r)
public void removeRegion(Region r)
public List<Region> getRegions()
This list should be immutable, hence copied, but for now it's not.
public void storeModel(File file)
public void loadModel(File file)
public static Model instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||