Package org.zkforge.timeplot.geometry

Examples of org.zkforge.timeplot.geometry.TimeGeometry


    protected TimeGeometry getTimeGeometry(Interval interval) {
        LocalDate start = new LocalDate(interval.getStart());
        LocalDate finish = new LocalDate(interval.getFinish());

        TimeGeometry timeGeometry = new DefaultTimeGeometry();

        if (!isZoomByDayOrWeek()) {
            start = getThursdayOfThisWeek(start);
            finish = getThursdayOfThisWeek(finish);
        }

        timeGeometry.setMin(start.toDateTimeAtStartOfDay().toDate());
        timeGeometry.setMax(finish.toDateTimeAtStartOfDay().toDate());
        timeGeometry.setAxisLabelsPlacement("bottom");
        // Remove year separators
        timeGeometry.setGridColor("#FFFFFF");

        return timeGeometry;
    }
View Full Code Here


            Clients.evalJavaScript(getOptionalJavascriptCall());
        }
        resetMinimumAndMaximumValueForChart();

        ValueGeometry valueGeometry = getValueGeometry();
        TimeGeometry timeGeometry = getTimeGeometry(interval);
        Plotinfo[] plotInfos = getPlotInfos(interval);
        for (Plotinfo each : plotInfos) {
            appendPlotinfo(chart, each, valueGeometry, timeGeometry);
        }
        chart.setWidth(size + "px");
View Full Code Here

TOP

Related Classes of org.zkforge.timeplot.geometry.TimeGeometry

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.