I don't see the point in saving any of these as variables. Unless there is a specific reason for doing so, I think these should be changed to something like "view.setX(b.getX());"

Same for the switch statement down below: "switch (b.getDuration()) {".