{
}
private Matrix parseMatrix(String s)
{
Matrix matrix = new Matrix();
for (int i = 0; i < s.length(); i++)
{
char c = s.charAt(i);
switch (c)
{
case 'r':
i++;
String[] parts = StringUtils.split(s.substring(i), "[, ]", 3);
matrix.setRotate(Double.parseDouble(parts[0]), Double.parseDouble(parts[1]));
break;
case 's':
i++;
parts = StringUtils.split(s.substring(i), "[, ]", 3);
matrix.setScale(Double.parseDouble(parts[0]), Double.parseDouble(parts[1]));
break;
case 't':
i++;
parts = StringUtils.split(s.substring(i), "[, ]", 3);
matrix.translateX = Integer.parseInt(parts[0]);