344345346347348349350351352353354
f = -Float.parseFloat(y); f *= ref.height(); n = Math.round(f); } rt.top(ref.bottom() - n); } else { try { n = Integer.parseInt(y); } catch (NumberFormatException ex) { f = Float.parseFloat(y);
354355356357358359360361362363364
f = Float.parseFloat(y); f *= ref.height(); n = Math.round(f); } rt.top(ref.top() + n); } if (w.startsWith("-")) { try { n = -Integer.parseInt(w);
389390391392393394395396397398399
f = -Float.parseFloat(h); f *= ref.height; n = Math.round(f); } rt.bottom(rt.top()); rt.top(rt.bottom() - n); } else { try { n = Integer.parseInt(h); } catch (NumberFormatException ex) {
390391392393394395396397398399400
f *= ref.height; n = Math.round(f); } rt.bottom(rt.top()); rt.top(rt.bottom() - n); } else { try { n = Integer.parseInt(h); } catch (NumberFormatException ex) { f = Float.parseFloat(h);
400401402403404405406407408409410
f = Float.parseFloat(h); f *= ref.height; n = Math.round(f); } rt.bottom(rt.top() + n); } return rt; }