Lines Matching defs:string
90 * Return the size represented as a string with the format {@code "WxH"}
92 * @return string representation of the size
104 * Parses the specified string as a size value.
116 * where <i>width</i> and <i>height</i> are string floats potentially
118 * an {@code 'x'} (such as a float in hexadecimal string format).</p>
126 * @param string the string representation of a size value.
127 * @return the size value represented by {@code string}.
129 * @throws NumberFormatException if {@code string} cannot be parsed
131 * @throws NullPointerException if {@code string} was {@code null}
133 public static SizeF parseSizeF(String string)
135 checkNotNull(string, "string must not be null");
137 int sep_ix = string.indexOf('*');
139 sep_ix = string.indexOf('x');
142 throw invalidSizeF(string);
145 return new SizeF(Float.parseFloat(string.substring(0, sep_ix)),
146 Float.parseFloat(string.substring(sep_ix + 1)));
148 throw invalidSizeF(string);
150 throw invalidSizeF(string);