@Test public void testTranslate() throws Exception { ViewDefinition.ViewBoxDefinition definition = SVGViewBoxTranslator.translate("0 0 0 0"); assertDefinition(definition, 0, 0, 0, 0); definition = SVGViewBoxTranslator.translate("0px 0px 0px 0px"); assertDefinition(definition, 0, 0, 0, 0); definition = SVGViewBoxTranslator.translate("123.4 23 567.45 568.70"); assertDefinition(definition, 123.4, 23, 567.45, 568.70); definition = SVGViewBoxTranslator.translate("-123.4 -23.5 567.45 568.70"); assertDefinition(definition, -123.4, -23.5, 567.45, 568.70); }
public static ViewDefinition.ViewBoxDefinition translate(final String raw) throws TranslatorException { final String[] parsed = parse(raw); return build(parsed[0], parsed[1], parsed[2], parsed[3]); }
SVGViewBoxTranslator { public static ViewDefinition.ViewBoxDefinition translate(final String raw) throws TranslatorException { final String[] parsed = parse(raw); return build(parsed[0], parsed[1], parsed[2], parsed[3]); } }
SVGViewBoxTranslator { public static ViewDefinition.ViewBoxDefinition translate(final String raw) throws TranslatorException { final String[] parsed = parse(raw); return build(parsed[0], parsed[1], parsed[2], parsed[3]); }  }
SVGViewBoxTranslator { public static ViewDefinition.ViewBoxDefinition translate(final String raw) throws TranslatorException { final String[] parsed = parse(raw); return build(parsed[0], parsed[1], parsed[2], parsed[3]); }  static ViewDefinition.ViewBoxDefinition translate(final String raw); }
SVGViewBoxTranslator { public static ViewDefinition.ViewBoxDefinition translate(final String raw) throws TranslatorException { final String[] parsed = parse(raw); return build(parsed[0], parsed[1], parsed[2], parsed[3]); }  static ViewDefinition.ViewBoxDefinition translate(final String raw);  }