Class AreaSize


  • public class AreaSize
    extends java.lang.Object
    Represents the size of a sizable area in a pane-layout-form.
    • Constructor Summary

      Constructors 
      Constructor Description
      AreaSize​(int id, java.lang.String size)
      Creates a new AreaSize.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asString()  
      static AreaSize fromString​(java.lang.String string)
      Createa an AreaSize instance by parsing the specified string.
      int getId()  
      java.lang.String getSize()  
      static java.lang.String mapToString​(java.util.Map<java.lang.Integer,​AreaSize> map)
      Converts a map with AreaSizes to a string.
      static java.util.Map<java.lang.Integer,​AreaSize> stringToMap​(java.lang.String string)
      Converts a string to a map of AreaSizes.
      • Methods inherited from class java.lang.Object

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

      • AreaSize

        public AreaSize​(int id,
                        java.lang.String size)
        Creates a new AreaSize.
        Parameters:
        id - the ID of the ares
        size - the size of the area. This is either height or width, depending on the type of the area.
    • Method Detail

      • fromString

        public static AreaSize fromString​(java.lang.String string)
        Createa an AreaSize instance by parsing the specified string.
        Parameters:
        string - string-representation of an AreaSize
        Returns:
        mew AreaSize instance
      • asString

        public java.lang.String asString()
        Returns:
        string-representation of this AreaSize
      • getId

        public int getId()
        Returns:
        ID of the area
      • getSize

        public java.lang.String getSize()
        Returns:
        size of the area (either height or width)
      • stringToMap

        public static java.util.Map<java.lang.Integer,​AreaSize> stringToMap​(java.lang.String string)
        Converts a string to a map of AreaSizes.
        Parameters:
        string - string to parse
        Returns:
        map with AreaSizes. Never null.
      • mapToString

        public static java.lang.String mapToString​(java.util.Map<java.lang.Integer,​AreaSize> map)
        Converts a map with AreaSizes to a string.
        Parameters:
        map - the map to create the string for
        Returns:
        string-representation of the AreaSizes in the map. Never null.