Package org.zkforge.timeplot

Examples of org.zkforge.timeplot.Timeplot


    @Override
    public void doAfterCompose(Component comp) throws Exception
    {
        // TODO Auto-generated method stub
        timeplot = new Timeplot();
        ValueGeometry vg = new DefaultValueGeometry();
        vg.setGridColor("#000000");
        vg.setAxisLabelsPlacement("left");
        TimeGeometry tg = new DefaultTimeGeometry();
        tg.setGridStep(2 * 60 * 60 * 1000);
 
View Full Code Here


    @Override
    public void doAfterCompose(final Component comp) throws Exception
    {
        // TODO Auto-generated method stub
        timeplot = new Timeplot();
        ValueGeometry vg = new DefaultValueGeometry();
        vg.setGridColor("#000000");
        vg.setAxisLabelsPlacement("left");
        TimeGeometry tg = new DefaultTimeGeometry();
        tg.setAxisLabelsPlacement("bottom");
View Full Code Here

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

        plot1.setParent(relatedPlot);
  
View Full Code Here

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

        plot1.setParent(relatedPlot);
  
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();
View Full Code Here

    }

    public void showTimePlot()
    {
//        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();
      }
    });

        List<Float> records = new ArrayList<Float>();

        for (int i = 0; i < 10; i++)
        {
            records.add(i + 0f);
        }
        ListModelList model = new ListModelList();
        Calendar cal = Calendar.getInstance();
        cal.setTime(now);
        for (int j = 0; j < 10; j++)
        {
            PlotData data = new PlotData();
            Map _customValues = new HashMap();
            _customValues.put("reliability", j);
      data.setCustomValues(_customValues );
     
     
            cal.add(Calendar.DATE, j);
            data.setFormat("yyyy/MM/dd HH:mm:ss");
            data.setTime(cal.getTime());
//            data.setReliability(j);
            data.setValue(records.get(j));
            model.add(data);
        }

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

        plot1.setParent(relatedPlot);
        relatedPlot.setParent(win);
    }
View Full Code Here

    private void adjustZoomPositionScroll(ResourcesLoadPanel resourcesLoadPanel) {
        resourcesLoadPanel.getTimeTrackerComponent().movePositionScroll();
    }

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

                ResourceLoadDisplayData generatedData) {
            TimeTracker timeTracker = panel.getTimeTracker();
            zoomLevelListener = fillOnZoomChange(panel);
            timeTracker.addZoomListener(zoomLevelListener);

            Timeplot newLoadChart = buildLoadChart(panel, generatedData,
                    timeTracker);
            emitter.emit(newLoadChart);
        }
View Full Code Here

            emitter.emit(newLoadChart);
        }

        private Timeplot buildLoadChart(ResourcesLoadPanel resourcesLoadPanel,
                ResourceLoadDisplayData generatedData, TimeTracker timeTracker) {
            Timeplot chartLoadTimeplot = createEmptyTimeplot();

            ResourceLoadChartFiller chartFiller =
                    new ResourceLoadChartFiller(generatedData);
            loadChart = new Chart(chartLoadTimeplot,
                    chartFiller, timeTracker);
View Full Code Here

        return configurationDAO.getConfiguration().getDefaultCalendar();
    }

    private void setupChartAndItsContent(final Planner planner,
           final Tabbox chartComponent) {
        Timeplot chartLoadTimeplot = createEmptyTimeplot();

        appendTab(chartComponent, appendLoadChartAndLegend(new Tabpanel(), chartLoadTimeplot));

        setupChart(chartLoadTimeplot, new CompanyLoadChartFiller(), planner);
View Full Code Here

TOP

Related Classes of org.zkforge.timeplot.Timeplot

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.