Package org.zkforge.timeplot

Examples of org.zkforge.timeplot.Plotinfo


        tg.setGridStep(2 * 60 * 60 * 1000);
        tg.setAxisLabelsPlacement("bottom");
        tg.setGridStepRange(30 * 60 * 1000);
        timeplot.setWidth("100%");
        timeplot.setHeight("300px");
        plotinfo = new Plotinfo();
        plotinfo.setShowValues(true);
        ListModelList dataModel = new ListModelList(initDataMode());
        plotinfo.setDataModel(dataModel);
        plotinfo.setParent(timeplot);
        plotinfo.setTimeGeometry(tg);
View Full Code Here


        vg.setAxisLabelsPlacement("left");
        TimeGeometry tg = new DefaultTimeGeometry();
        tg.setAxisLabelsPlacement("bottom");
        timeplot.setWidth("100%");
        timeplot.setHeight("300px");
        plotinfo = new Plotinfo();
        plotinfo.setShowValues(true);
        ListModelList dataModel = new ListModelList(initDataMode());
        plotinfo.setDataModel(dataModel);
        plotinfo.setParent(timeplot);
        plotinfo.setTimeGeometry(tg);
View Full Code Here

//        btn = (Button)comp.getFellow("click");
//        btn.setLabel("Click");
//        Timeplot timeplot = new Timeplot();
        timeplot.setWidth("100%");
        timeplot.setHeight("300px");
        dfPlot1 = new Plotinfo();
        dfPlot2 = new Plotinfo();
        dfPlot3 = new Plotinfo();
        dfPlot1.setParent(timeplot);
        dfPlot2.setParent(timeplot);
        dfPlot3.setParent(timeplot);
        timeplot.setParent(comp);
        showTimeplot();
View Full Code Here

    public void doAfterCompose(Component comp) throws Exception
    {
        super.doAfterCompose(comp);
        relatedPlot = new Timeplot();
        relatedPlot.setParent(comp);
        plot1=new Plotinfo();

        plot1.setParent(relatedPlot);
  
        relatedPlot.setHideTimeFlag(false);
        showTimePlot();
View Full Code Here

    public void doAfterCompose(Component comp) throws Exception
    {
        super.doAfterCompose(comp);
        relatedPlot = new Timeplot();
        relatedPlot.setParent(comp);
        plot1=new Plotinfo();

        plot1.setParent(relatedPlot);
  
        relatedPlot.setHideTimeFlag(false);
        showTimePlot();
View Full Code Here

    public void showTimePlot()
    {
        Components.removeAllChildren(div);
        Timeplot relatedPlot = new Timeplot();
        relatedPlot.setParent(div);
        Plotinfo plot1=new Plotinfo();

        plot1.setParent(relatedPlot);
       
        ValueGeometry vg = new DefaultValueGeometry();
        vg.setGridColor("red");
        vg.setAxisLabelsPlacement("left");


        TimeGeometry tg = new DefaultTimeGeometry();
        tg.setAxisLabelsPlacement("bottom");
        tg.setFormat(TimeGeometry.FORMAT_DAY, "yyyy-MM-dd hh:mm:ss");
        tg.setGridColor("red");
    
        plot1.setValueGeometry(vg);
        plot1.setTimeGeometry(tg);
        plot1.setShowValues(true);
//        plot1.setHideValueFlag(true);
        plot1.setRoundValues(false);
       

        plot1.addEventListener("onOverPlotData",new EventListener()
        {

            @Override
            public void onEvent(Event arg0) throws Exception
            {
                OverPlotEvent ove =(OverPlotEvent) arg0;
                date1.setValue(ove.getValue()+"");
                Map map =ove.getCustomValues();
                value1.setValue(map.get("txf")+"");
               
            }
           
        });
        PlotDataSource pds = new PlotDataSource();

        pds.setSeparator(" ");
        pds.setDataSourceUri(null);
        plot1.setPlotDataSource(pds);
 
         plot1.setRoundValues(false);
         plot1.setLineColor("#0067AB");// 729692
         plot1.setFillColor("#70A8E5");// E2F6F2
         plot1.setShowValues(true);
        ListModelList model = new ListModelList();
        Calendar cal = Calendar.getInstance();
        for (int j = 0; j < 10; j++)
        {

            PlotData data = new PlotData();
            cal.add(Calendar.MINUTE, j);
            data.setTime(cal.getTime());

            float i = 0.0f;
 
            i=(float) (1.0-0.42);
            System.out.println(1.0-0.42);
            System.out.println("i:"+i);
            data.setValue(i);
            model.add(data);
        }

        plot1.setDataModel(model);
        plot1.setDotColor("#000000");
        plot1.setFillColor("#70A8E5");// E2F6F2
        plot1.setLineColor("red");



    }
View Full Code Here

//        final SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        Timeplot relatedPlot = new Timeplot();
        relatedPlot.setHeight("300px");
        relatedPlot.setWidth("90%");

        Plotinfo plot1 = new Plotinfo();
        ValueGeometry vg = new DefaultValueGeometry();
        vg.setGridColor("red");
        vg.setAxisLabelsPlacement("left");

        TimeGeometry tg = new DefaultTimeGeometry();
        tg.setAxisLabelsPlacement("bottom");
        tg.setGridColor("red");
        plot1.setValueGeometry(vg);
        plot1.setTimeGeometry(tg);
        plot1.setShowValues(true);
       
        plot1.addEventListener(OverPlotEvent.ON_OVER_PLOTDATA, new EventListener() {
     
      @Override
      public void onEvent(Event event) throws Exception {
        OverPlotEvent evt = (OverPlotEvent) event;
        Plotinfo plot = (Plotinfo) evt.getTarget();
       
        System.out.println(evt.getTime());
        System.out.println(evt.getValue());
        System.out.println(evt.getCustomValues());
        ListModelList model = (ListModelList) plot.getDataModel();
        System.out.println(model.get(evt.getPlotDataIndex()));
        System.out.println();
      }
    });
View Full Code Here

        resourcesLoadPanel.getTimeTrackerComponent().movePositionScroll();
    }

    private Timeplot createEmptyTimeplot() {
        Timeplot timeplot = new Timeplot();
        timeplot.appendChild(new Plotinfo());
        return timeplot;
    }
View Full Code Here

        this.earnedValueCalculator = earnedValueCalculator;
    }

    protected Plotinfo createPlotInfo(SortedMap<LocalDate, BigDecimal> map,
            Interval interval, String lineColor) {
        Plotinfo plotInfo = createPlotinfo(map, interval, true);
        plotInfo.setLineColor(lineColor);
        return plotInfo;
    }
View Full Code Here

        calculateValues(interval);

        List<Plotinfo> plotinfos = new ArrayList<Plotinfo>();
        for (EarnedValueType indicator : getSelectedIndicators()) {
            Plotinfo plotinfo = createPlotInfo(indicators.get(indicator),
                    interval, indicator.getColor());
            plotinfos.add(plotinfo);
        }

        if (plotinfos.isEmpty()) {
            // If user doesn't select any indicator, it is needed to create
            // a default Plotinfo in order to avoid errors on Timemplot
            plotinfos.add(new Plotinfo());
        }

        ValueGeometry valueGeometry = getValueGeometry();
        TimeGeometry timeGeometry = getTimeGeometry(interval);
View Full Code Here

TOP

Related Classes of org.zkforge.timeplot.Plotinfo

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.