Package com.invient.vaadin.charts.InvientChartsConfig.AxisBase.DateTimePlotBand

Examples of com.invient.vaadin.charts.InvientChartsConfig.AxisBase.DateTimePlotBand.DateTimeRange


                if (numberRange.getTo() != null) {
                    target.addAttribute("to", numberRange.getTo());
                }
            } else if (plotBandRange instanceof DateTimeRange) {
                target.addAttribute("valueType", "date");
                DateTimeRange dateRange = (DateTimeRange) plotBandRange;
                target.startTag("from");
                if (dateRange.getFrom() != null) {
                    target.addAttribute("year",
                            getYearFromDate(dateRange.getFrom()));
                    target.addAttribute("month",
                            getMonthFromDate(dateRange.getFrom()));
                    target.addAttribute("day",
                            getDayFromDate(dateRange.getFrom()));
                }
                target.endTag("from");
                target.startTag("to");
                if (dateRange.getTo() != null) {
                    target.addAttribute("year",
                            getYearFromDate(dateRange.getTo()));
                    target.addAttribute("month",
                            getMonthFromDate(dateRange.getTo()));
                    target.addAttribute("day",
                            getDayFromDate(dateRange.getTo()));
                }
                target.endTag("to");
            }
        }
        target.endTag("rangeValue");
View Full Code Here


                if (numberRange.getTo() != null) {
                    target.addAttribute("to", numberRange.getTo());
                }
            } else if (plotBandRange instanceof DateTimeRange) {
                target.addAttribute("valueType", "date");
                DateTimeRange dateRange = (DateTimeRange) plotBandRange;
                target.startTag("from");
                if (dateRange.getFrom() != null) {
                    target.addAttribute("year",
                            getYearFromDate(dateRange.getFrom()));
                    target.addAttribute("month",
                            getMonthFromDate(dateRange.getFrom()));
                    target.addAttribute("day",
                            getDayFromDate(dateRange.getFrom()));
                }
                target.endTag("from");
                target.startTag("to");
                if (dateRange.getTo() != null) {
                    target.addAttribute("year",
                            getYearFromDate(dateRange.getTo()));
                    target.addAttribute("month",
                            getMonthFromDate(dateRange.getTo()));
                    target.addAttribute("day",
                            getDayFromDate(dateRange.getTo()));
                }
                target.endTag("to");
            }
        }
        target.endTag("rangeValue");
View Full Code Here

                if (numberRange.getTo() != null) {
                    target.addAttribute("to", numberRange.getTo());
                }
            } else if (plotBandRange instanceof DateTimeRange) {
                target.addAttribute("valueType", "date");
                DateTimeRange dateRange = (DateTimeRange) plotBandRange;
                target.startTag("from");
                if (dateRange.getFrom() != null) {
                    target.addAttribute("year",
                            getYearFromDate(dateRange.getFrom()));
                    target.addAttribute("month",
                            getMonthFromDate(dateRange.getFrom()));
                    target.addAttribute("day",
                            getDayFromDate(dateRange.getFrom()));
                }
                target.endTag("from");
                target.startTag("to");
                if (dateRange.getTo() != null) {
                    target.addAttribute("year",
                            getYearFromDate(dateRange.getTo()));
                    target.addAttribute("month",
                            getMonthFromDate(dateRange.getTo()));
                    target.addAttribute("day",
                            getDayFromDate(dateRange.getTo()));
                }
                target.endTag("to");
            }
        }
        target.endTag("rangeValue");
View Full Code Here

                if (numberRange.getTo() != null) {
                    target.addAttribute("to", numberRange.getTo());
                }
            } else if (plotBandRange instanceof DateTimeRange) {
                target.addAttribute("valueType", "date");
                DateTimeRange dateRange = (DateTimeRange) plotBandRange;
                target.startTag("from");
                if (dateRange.getFrom() != null) {
                    target.addAttribute("year",
                            getYearFromDate(dateRange.getFrom()));
                    target.addAttribute("month",
                            getMonthFromDate(dateRange.getFrom()));
                    target.addAttribute("day",
                            getDayFromDate(dateRange.getFrom()));
                }
                target.endTag("from");
                target.startTag("to");
                if (dateRange.getTo() != null) {
                    target.addAttribute("year",
                            getYearFromDate(dateRange.getTo()));
                    target.addAttribute("month",
                            getMonthFromDate(dateRange.getTo()));
                    target.addAttribute("day",
                            getDayFromDate(dateRange.getTo()));
                }
                target.endTag("to");
            }
        }
        target.endTag("rangeValue");
View Full Code Here

                DateTimeAxis masterDateTimeAxis = (DateTimeAxis) masterChart
                        .getConfig().getXAxes().iterator().next();
                masterDateTimeAxis.removePlotBand("mask-before");
                DateTimePlotBand plotBandBefore = new DateTimePlotBand(
                        "mask-before");
                plotBandBefore.setRange(new DateTimeRange(masterChartMinDate,
                        new Date((long) min)));
                plotBandBefore.setColor(new RGBA(0, 0, 0, 0.2f));
                masterDateTimeAxis.addPlotBand(plotBandBefore);

                masterDateTimeAxis.removePlotBand("mask-after");
                DateTimePlotBand plotBandAfter = new DateTimePlotBand(
                        "mask-after");
                plotBandAfter.setRange(new DateTimeRange(new Date((long) max),
                        masterChartMaxDate));
                plotBandAfter.setColor(new RGBA(0, 0, 0, 0.2f));
                masterDateTimeAxis.addPlotBand(plotBandAfter);
                masterChart.refresh();
            }
View Full Code Here

        DateTimeAxis xAxis = new DateTimeAxis();
        xAxis.setShowLastLabel(true);
        xAxis.setMaxZoom(14 * 24 * 3600000);
        DateTimePlotBand plotBand = new DateTimePlotBand("mask-before");
        plotBand.setRange(new DateTimeRange(masterChartMinDate,
                detailChartPointStartDate));
        plotBand.setColor(new RGBA(0, 0, 0, 0.2f));
        xAxis.addPlotBand(plotBand);
        xAxis.setTitle(new AxisTitle(""));

View Full Code Here

TOP

Related Classes of com.invient.vaadin.charts.InvientChartsConfig.AxisBase.DateTimePlotBand.DateTimeRange

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.