Class Pattern


  • public class Pattern
    extends Object
    • Constructor Detail

      • Pattern

        public Pattern​(PageArea a)
    • Method Detail

      • calculateConsistency

        public int calculateConsistency()
      • filterContained

        public void filterContained​(PatternElement el)
      • getUpdatedPattern

        public Pattern getUpdatedPattern​(PageArea newChild)
        This function creates a testing pattern which would be a result if a new child was added
        Parameters:
        newChild - the child object which is to be added and the new pattern computed
        Returns:
        returns a new Pattern object which can be then compared to this one to determine if the change is acceptable
      • getConsistency

        public int getConsistency()