251252253254255256257258259260261
GraphicSprite S1 = graphic.getSprite("S1"); GraphicSprite S2 = graphic.getSprite("S2"); if (S2 != null) { S2.addAttribute("ui.foobar", "foobar"); S2.setPosition(1, 2, 3, Style.Units.GU); } if (S1 != null) S1.setPosition(0.5f);