public static Size sizeFromSettingString(String sizeSettingString){
  if (sizeSettingString == null) {
    return null;
  }
  String[] parts=sizeSettingString.split(SIZE_SETTING_STRING_DIMENSION_DELIMITER);
  if (parts.length != 2) {
    return null;
  }
  try {
    int width=Integer.parseInt(parts[0]);
    int height=Integer.parseInt(parts[1]);
    return new Size(width,height);
  }
 catch (  NumberFormatException ex) {
    return null;
  }
}

public static Size sizeFromSettingString ( String sizeSettingString ) { if ( sizeSettingString == null ) { return null ; } String [ ] parts = sizeSettingString . split ( SIZE_SETTING_STRING_DIMENSION_DELIMITER ) ; if ( parts . length != 2 ) { return null ; } try { int width = Integer . parseInt ( parts [ 0 ] ) ; int height = Integer . parseInt ( parts [ 1 ] ) ; return new Size ( width , height ) ; } catch ( NumberFormatException ex ) { return null ; } }
this parses a setting string and returns the representative size .
