Package org.openmrs.module.drawing

Examples of org.openmrs.module.drawing.Position


            String idString = attributes.getNamedItem("id").getNodeValue();
            String date = attributes.getNamedItem("date").getNodeValue();
            String userid = attributes.getNamedItem("userid").getNodeValue();
            String xcoordinate = attributes.getNamedItem("xcoordinate").getNodeValue();
            String ycoordinate = attributes.getNamedItem("ycoordinate").getNodeValue();
            Position position = new Position(Integer.parseInt(xcoordinate), Integer.parseInt(ycoordinate));
            User user = Context.getUserService().getUser(Integer.parseInt(userid));
            annotations.add(new ImageAnnotation(Integer.parseInt(idString), position, text, new Date(Long
                    .parseLong(date)), user, Status.UNCHANGED));
          }
          catch (NumberFormatException e) {
View Full Code Here

TOP

Related Classes of org.openmrs.module.drawing.Position

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.