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

Examples of com.invient.vaadin.charts.InvientChartsConfig.AxisBase.NumberPlotBand.NumberRange


            Range plotBandRange) throws PaintException {
        target.startTag("rangeValue");
        if (plotBandRange != null) {
            if (plotBandRange instanceof NumberRange) {
                target.addAttribute("valueType", "number");
                NumberRange numberRange = (NumberRange) plotBandRange;
                if (numberRange.getFrom() != null) {
                    target.addAttribute("from", numberRange.getFrom());
                }
                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");
View Full Code Here


            Range plotBandRange) throws PaintException {
        target.startTag("rangeValue");
        if (plotBandRange != null) {
            if (plotBandRange instanceof NumberRange) {
                target.addAttribute("valueType", "number");
                NumberRange numberRange = (NumberRange) plotBandRange;
                if (numberRange.getFrom() != null) {
                    target.addAttribute("from", numberRange.getFrom());
                }
                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");
View Full Code Here

            Range plotBandRange) throws PaintException {
        target.startTag("rangeValue");
        if (plotBandRange != null) {
            if (plotBandRange instanceof NumberRange) {
                target.addAttribute("valueType", "number");
                NumberRange numberRange = (NumberRange) plotBandRange;
                if (numberRange.getFrom() != null) {
                    target.addAttribute("from", numberRange.getFrom());
                }
                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");
View Full Code Here

            Range plotBandRange) throws PaintException {
        target.startTag("rangeValue");
        if (plotBandRange != null) {
            if (plotBandRange instanceof NumberRange) {
                target.addAttribute("valueType", "number");
                NumberRange numberRange = (NumberRange) plotBandRange;
                if (numberRange.getFrom() != null) {
                    target.addAttribute("from", numberRange.getFrom());
                }
                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");
View Full Code Here

        CategoryAxis xAxis = new CategoryAxis();
        xAxis.setCategories(Arrays.asList("Monday", "Tuesday", "Wednesday",
                "Thursday", "Friday", "Saturday", "Sunday"));
        NumberPlotBand plotBand = new NumberPlotBand("sat-sun");
        plotBand.setRange(new NumberRange(4.6, 6.5));
        plotBand.setColor(new RGBA(68, 170, 213, 0.2f));
        xAxis.addPlotBand(plotBand);

        LinkedHashSet<XAxis> xAxesSet = new LinkedHashSet<InvientChartsConfig.XAxis>();
        xAxesSet.add(xAxis);
View Full Code Here

        yAxis.setMinorGrid(new MinorGrid());
        yAxis.getMinorGrid().setLineWidth(0);
        yAxis.setGrid(new Grid());
        yAxis.getGrid().setLineWidth(0);
        NumberPlotBand numberBand = new NumberPlotBand("Light air");
        numberBand.setRange(new NumberRange(0.3, 1.5));
        numberBand.setColor(new RGBA(68, 170, 213, 0.1f));
        numberBand.setLabel(new PlotLabel("Light air"));
        numberBand.getLabel().setStyle("{ color: '#606060' }");
        yAxis.getPlotBands().add(numberBand);

        numberBand = new NumberPlotBand("Light breeze");
        numberBand.setRange(new NumberRange(1.5, 3.3));
        numberBand.setColor(new RGBA(0, 0, 0, 0.0f));
        numberBand.setLabel(new PlotLabel("Light breeze"));
        numberBand.getLabel().setStyle("{ color: '#606060' }");
        yAxis.getPlotBands().add(numberBand);

        numberBand = new NumberPlotBand("Gentle breeze");
        numberBand.setRange(new NumberRange(3.3, 5.5));
        numberBand.setColor(new RGBA(68, 170, 213, 0.1f));
        numberBand.setLabel(new PlotLabel("Gentle breeze"));
        numberBand.getLabel().setStyle("{ color: '#606060' }");
        yAxis.getPlotBands().add(numberBand);

        numberBand = new NumberPlotBand("Moderate breeze");
        numberBand.setRange(new NumberRange(5.5, 8.0));
        numberBand.setColor(new RGBA(0, 0, 0, 0.0f));
        numberBand.setLabel(new PlotLabel("Moderate breeze"));
        numberBand.getLabel().setStyle("{ color: '#606060' }");
        yAxis.getPlotBands().add(numberBand);

        numberBand = new NumberPlotBand("Fresh breeze");
        numberBand.setRange(new NumberRange(8.0, 11.0));
        numberBand.setColor(new RGBA(68, 170, 213, 0.1f));
        numberBand.setLabel(new PlotLabel("Fresh breeze"));
        numberBand.getLabel().setStyle("{ color: '#606060' }");
        yAxis.getPlotBands().add(numberBand);

        numberBand = new NumberPlotBand("Strong breeze");
        numberBand.setRange(new NumberRange(11.0, 14.0));
        numberBand.setColor(new RGBA(0, 0, 0, 0.0f));
        numberBand.setLabel(new PlotLabel("Strong breeze"));
        numberBand.getLabel().setStyle("{ color: '#606060' }");
        yAxis.getPlotBands().add(numberBand);

        numberBand = new NumberPlotBand("High wind");
        numberBand.setRange(new NumberRange(14.0, 15.0));
        numberBand.setColor(new RGBA(68, 170, 213, 0.1f));
        numberBand.setLabel(new PlotLabel("High wind"));
        numberBand.getLabel().setStyle("{ color: '#606060' }");
        yAxis.getPlotBands().add(numberBand);
View Full Code Here

TOP

Related Classes of com.invient.vaadin.charts.InvientChartsConfig.AxisBase.NumberPlotBand.NumberRange

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.