Examples of TimeGeometry


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

Examples of org.zkforge.timeplot.geometry.TimeGeometry

            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
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.