Class Model


  • public class Model
    extends java.lang.Object
    Model holds RPS representation of layout geometry and logical structure.

    The layout geometry is expressed as a set of (perhaps overlapping) Regions.

    Since:
    2.1.7
    • Constructor Detail

    • Method Detail

      • addRegion

        public void addRegion​(Region r)
        Include a region in the model.
        Parameters:
        r - region to add.
      • removeRegion

        public void removeRegion​(Region r)
        Include a region in the model.
        Parameters:
        r - region to remove.
      • getRegions

        public java.util.List<RegiongetRegions()
        Get the list of active regions.

        This list should be immutable, hence copied, but for now it's not.

        Returns:
        list of regions.
      • storeModel

        public void storeModel​(java.io.File file)
      • loadModel

        public void loadModel​(java.io.File file)