Package com.zk.test.timeplot

Examples of com.zk.test.timeplot.TimeplotData


                    }
                    Executions.activate(_desktop);
                    try
                    {
                        ListModelList dml = (ListModelList) _plotinfo.getDataModel();
                        TimeplotData td = new TimeplotData();
//                        time = time + 1000 * 60 * 60 * 8 ;
                        time = new Date().getTime();
                        td.setTime(new Date(time));
                        td.setValue(10f);
                        dml.add(td);
                    }
                    finally
                    {
                        Executions.deactivate(_desktop);
View Full Code Here


            @Override
            public void onEvent(Event event) throws Exception
            {
                // TODO Auto-generated method stub
                ListModelList dml = (ListModelList) plotinfo.getDataModel();
                TimeplotData td = new TimeplotData();
                td.setTime(new Date(time + 1000 * 60 * 60 * 8));
                td.setValue(10f);
                dml.add(td);
            }
        });
    }
View Full Code Here

    private ArrayList<TimeplotData> initDataMode()
    {
        ArrayList<TimeplotData> datas = new ArrayList<TimeplotData>();
        for (int i = 0; i < 10; i++)
        {
            TimeplotData pd = new TimeplotData();
            pd.setTime(new Date(time + 1000 * 60 * 60 * 24 * i));
            pd.setValue((float) (i*0.1));
            datas.add(pd);
        }
//        TimeplotData pd1 = new TimeplotData();
//        pd1.setTime(new Date(time + 1000 * 10));
//        pd1.setValue(-1);
View Full Code Here

            public void onEvent(Event event) throws Exception
            {
                // TODO Auto-generated method stub
                ListModelList dataModel = (ListModelList)plotinfo.getDataModel();
                ArrayList<TimeplotData> datas = new ArrayList<TimeplotData>();
                TimeplotData pd = new TimeplotData();
                pd.setTime(new Date(new Date().getTime() + 1000 * 1));
                pd.setValue(10f);
                datas.add(pd);
                dataModel.clear();
                dataModel.addAll(datas);
            }});
    }
View Full Code Here

    private ArrayList<TimeplotData> initDataMode()
    {
        ArrayList<TimeplotData> datas = new ArrayList<TimeplotData>();
        for (int i = 0; i < 10; i++)
        {
            TimeplotData pd = new TimeplotData();
            pd.setTime(new Date(new Date().getTime() + 1000 * i));
            pd.setValue(0f);
            datas.add(pd);
        }
        return datas;
    }
View Full Code Here

TOP

Related Classes of com.zk.test.timeplot.TimeplotData

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.