Examples of MapPointBean


Examples of org.dspace.app.cris.statistics.bean.MapPointBean

                    if (result.getVal(i).getClass().equals(Integer.class))
                    {
                        StringTokenizer st = new StringTokenizer(
                                (result.getName(i)).toString(),
                                DELIM_LATITUDE_LONGITUDE);
                        MapPointBean mapPointBean = new MapPointBean(
                                st.nextToken(), st.nextToken(),
                                (Integer) result.getVal(i));
                        fullData.add(mapPointBean);
                    }

                }
                catch (Exception e)
                {
                    fullData.add(new MapPointBean(_NotAvailable, _NotAvailable,
                            null));
                    e.printStackTrace();
                }
            }
            mapDataBean.setHits(result.size());
            mapDataBean.setDataTable(fullData);
            try
            {
                mapDataBean.setPercentages();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }
        catch (Exception e)
        {
            log.warn(e.getMessage());
            fullData.add(new MapPointBean(_NotAvailable, _NotAvailable, null));
        }
        return mapDataBean;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.