Class AutoRepeatValue


  • public class AutoRepeatValue
    extends TemplateValue
    This class represents an auto-repeat template value. This value is preprocessed before grid sizing algorithm so its only exists at template level.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean autoFit  
      private java.util.List<GridValue> values  
    • Constructor Summary

      Constructors 
      Constructor Description
      AutoRepeatValue​(boolean autoFit, java.util.List<GridValue> values)
      Create a new auto-repeat value
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<GridValue> getValues()
      Get template values which should be repeated.
      boolean isAutoFit()
      Determines whether to shrink flatten template values to match the grid size.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • values

        private final java.util.List<GridValue> values
      • autoFit

        private final boolean autoFit
    • Constructor Detail

      • AutoRepeatValue

        public AutoRepeatValue​(boolean autoFit,
                               java.util.List<GridValue> values)
        Create a new auto-repeat value
        Parameters:
        autoFit - determines whether to shrink flatten template values to match the grid size
        values - template values to repeat
    • Method Detail

      • getValues

        public java.util.List<GridValue> getValues()
        Get template values which should be repeated.
        Returns:
        template values list
      • isAutoFit

        public boolean isAutoFit()
        Determines whether to shrink flatten template values to match the grid size.
        Returns:
        true if to shrink, false otherwise