Examples of GwtPlotLines


Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

                .createArray().cast();
        int numOfChartAxisPlotLines = chartAxisPlotLines.length();
        int numOfUIDLAxisPlotLines = uidlAxisPlotLines.length();
        boolean updatedAxisPlotLines = false;
        for (int indOuter = 0; indOuter < numOfChartAxisPlotLines; indOuter++) {
            GwtPlotLines chartPlotLine = chartAxisPlotLines.get(indOuter);
            String plotLineId = chartPlotLine.getId();
            boolean found = false;
            for (int indInner = 0; indInner < numOfUIDLAxisPlotLines; indInner++) {
                GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(indInner);
                if (uidlPlotLine != null
                        && uidlPlotLine.getId().equals(plotLineId)) {
                    if (uidlPlotLine.getValue() == chartPlotLine.getValue()) {
                        // PlotLine exists and value is same so no action should
                        // be taken except marking UIDL PlotLine to null.
                        // Setting UIDL PlotLine
                        // to null ensures that remaining PlotLines in UIDL can
                        // be added
                        // safely to the chart.
                        uidlAxisPlotLines.set(indInner, null);
                        updatedChartAxisPlotLines.push(chartPlotLine);
                        found = true;
                    }
                    break;
                }
            }
            if (!found) {
                // remove plot line as it is not found in UIDL received from the
                // server
                updatedAxisPlotLines = true;
                chartAxis.removePlotLine(plotLineId);
            }
        }
        // Add all remaining plot lines in UIDL to the chart
        for (int ind = 0; ind < numOfUIDLAxisPlotLines; ind++) {
            GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(ind);
            if (uidlPlotLine != null) {
                updatedAxisPlotLines = true;
                chartAxis.addPlotLine(uidlPlotLine);
                updatedChartAxisPlotLines.push(uidlPlotLine);
            }
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

            UIDL plotLineUIDL = plotLinesUIDL.getChildUIDL(cnt);
            if (plotLineUIDL.getAttributeNames().size() == 0
                    && plotLineUIDL.getChildCount() == 0) {
                continue;
            }
            GwtPlotLines plotLines = GwtPlotLines.create();
            if (plotLineUIDL.hasAttribute("color")) {
                plotLines.setColor(plotLineUIDL.getStringAttribute("color"));
            }
            if (plotLineUIDL.hasAttribute("dashStyle")) {
                plotLines.setDashStyle(plotLineUIDL
                        .getStringAttribute("dashStyle"));
            }
            if (plotLineUIDL.hasAttribute("id")) {
                plotLines.setId(plotLineUIDL.getStringAttribute("id"));
            }
            if (plotLineUIDL.hasAttribute("width")) {
                plotLines.setWidth(plotLineUIDL.getIntAttribute("width"));
            }
            if (plotLineUIDL.hasAttribute("zIndex")) {
                plotLines.setZIndex(plotLineUIDL.getIntAttribute("zIndex"));
            }
            // label
            GwtPlotLabel label = getPlotLabel(plotLineUIDL.getChildUIDL(0));
            if (label != null) {
                plotLines.setLabel(label);
            }
            // line value
            UIDL lineValueUIDL = plotLineUIDL.getChildUIDL(1);
            if (lineValueUIDL.hasAttribute("valueType")) {
                String valueType = lineValueUIDL
                        .getStringAttribute("valueType");
                if (valueType.equals("number")) {
                    if (lineValueUIDL.hasAttribute("value")) {
                        plotLines.setValue(lineValueUIDL
                                .getDoubleAttribute("value"));
                    }
                } else { // date
                    int year = lineValueUIDL.getIntAttribute("year");
                    int month = lineValueUIDL.getIntAttribute("month");
                    int day = lineValueUIDL.getIntAttribute("day");
                    plotLines.setValue("Date.UTC(" + year + ", " + month + ","
                            + day + ")");
                }
            }
            //
            plotLinesArr.push(plotLines);
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

                .createArray().cast();
        int numOfChartAxisPlotLines = chartAxisPlotLines.length();
        int numOfUIDLAxisPlotLines = uidlAxisPlotLines.length();
        boolean updatedAxisPlotLines = false;
        for (int indOuter = 0; indOuter < numOfChartAxisPlotLines; indOuter++) {
            GwtPlotLines chartPlotLine = chartAxisPlotLines.get(indOuter);
            String plotLineId = chartPlotLine.getId();
            boolean found = false;
            for (int indInner = 0; indInner < numOfUIDLAxisPlotLines; indInner++) {
                GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(indInner);
                if (uidlPlotLine != null
                        && uidlPlotLine.getId().equals(plotLineId)) {
                    if (uidlPlotLine.getValue() == chartPlotLine.getValue()) {
                        // PlotLine exists and value is same so no action should
                        // be taken except marking UIDL PlotLine to null.
                        // Setting UIDL PlotLine
                        // to null ensures that remaining PlotLines in UIDL can
                        // be added
                        // safely to the chart.
                        uidlAxisPlotLines.set(indInner, null);
                        updatedChartAxisPlotLines.push(chartPlotLine);
                        found = true;
                    }
                    break;
                }
            }
            if (!found) {
                // remove plot line as it is not found in UIDL received from the
                // server
                updatedAxisPlotLines = true;
                chartAxis.removePlotLine(plotLineId);
            }
        }
        // Add all remaining plot lines in UIDL to the chart
        for (int ind = 0; ind < numOfUIDLAxisPlotLines; ind++) {
            GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(ind);
            if (uidlPlotLine != null) {
                updatedAxisPlotLines = true;
                chartAxis.addPlotLine(uidlPlotLine);
                updatedChartAxisPlotLines.push(uidlPlotLine);
            }
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

            UIDL plotLineUIDL = plotLinesUIDL.getChildUIDL(cnt);
            if (plotLineUIDL.getAttributeNames().size() == 0
                    && plotLineUIDL.getChildCount() == 0) {
                continue;
            }
            GwtPlotLines plotLines = GwtPlotLines.create();
            if (plotLineUIDL.hasAttribute("color")) {
                plotLines.setColor(plotLineUIDL.getStringAttribute("color"));
            }
            if (plotLineUIDL.hasAttribute("dashStyle")) {
                plotLines.setDashStyle(plotLineUIDL
                        .getStringAttribute("dashStyle"));
            }
            if (plotLineUIDL.hasAttribute("id")) {
                plotLines.setId(plotLineUIDL.getStringAttribute("id"));
            }
            if (plotLineUIDL.hasAttribute("width")) {
                plotLines.setWidth(plotLineUIDL.getIntAttribute("width"));
            }
            if (plotLineUIDL.hasAttribute("zIndex")) {
                plotLines.setZIndex(plotLineUIDL.getIntAttribute("zIndex"));
            }
            // label
            GwtPlotLabel label = getPlotLabel(plotLineUIDL.getChildUIDL(0));
            if (label != null) {
                plotLines.setLabel(label);
            }
            // line value
            UIDL lineValueUIDL = plotLineUIDL.getChildUIDL(1);
            if (lineValueUIDL.hasAttribute("valueType")) {
                String valueType = lineValueUIDL
                        .getStringAttribute("valueType");
                if (valueType.equals("number")) {
                    if (lineValueUIDL.hasAttribute("value")) {
                        plotLines.setValue(lineValueUIDL
                                .getDoubleAttribute("value"));
                    }
                } else { // date
                    int year = lineValueUIDL.getIntAttribute("year");
                    int month = lineValueUIDL.getIntAttribute("month");
                    int day = lineValueUIDL.getIntAttribute("day");
                    plotLines.setValue("Date.UTC(" + year + ", " + month + ","
                            + day + ")");
                }
            }
            //
            plotLinesArr.push(plotLines);
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

                .createArray().cast();
        int numOfChartAxisPlotLines = chartAxisPlotLines.length();
        int numOfUIDLAxisPlotLines = uidlAxisPlotLines.length();
        boolean updatedAxisPlotLines = false;
        for (int indOuter = 0; indOuter < numOfChartAxisPlotLines; indOuter++) {
            GwtPlotLines chartPlotLine = chartAxisPlotLines.get(indOuter);
            String plotLineId = chartPlotLine.getId();
            boolean found = false;
            for (int indInner = 0; indInner < numOfUIDLAxisPlotLines; indInner++) {
                GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(indInner);
                if (uidlPlotLine != null
                        && uidlPlotLine.getId().equals(plotLineId)) {
                    if (uidlPlotLine.getValue() == chartPlotLine.getValue()) {
                        // PlotLine exists and value is same so no action should
                        // be taken except marking UIDL PlotLine to null.
                        // Setting UIDL PlotLine
                        // to null ensures that remaining PlotLines in UIDL can
                        // be added
                        // safely to the chart.
                        uidlAxisPlotLines.set(indInner, null);
                        updatedChartAxisPlotLines.push(chartPlotLine);
                        found = true;
                    }
                    break;
                }
            }
            if (!found) {
                // remove plot line as it is not found in UIDL received from the
                // server
                updatedAxisPlotLines = true;
                chartAxis.removePlotLine(plotLineId);
            }
        }
        // Add all remaining plot lines in UIDL to the chart
        for (int ind = 0; ind < numOfUIDLAxisPlotLines; ind++) {
            GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(ind);
            if (uidlPlotLine != null) {
                updatedAxisPlotLines = true;
                chartAxis.addPlotLine(uidlPlotLine);
                updatedChartAxisPlotLines.push(uidlPlotLine);
            }
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

            UIDL plotLineUIDL = plotLinesUIDL.getChildUIDL(cnt);
            if (plotLineUIDL.getAttributeNames().size() == 0
                    && plotLineUIDL.getChildCount() == 0) {
                continue;
            }
            GwtPlotLines plotLines = GwtPlotLines.create();
            if (plotLineUIDL.hasAttribute("color")) {
                plotLines.setColor(plotLineUIDL.getStringAttribute("color"));
            }
            if (plotLineUIDL.hasAttribute("dashStyle")) {
                plotLines.setDashStyle(plotLineUIDL
                        .getStringAttribute("dashStyle"));
            }
            if (plotLineUIDL.hasAttribute("id")) {
                plotLines.setId(plotLineUIDL.getStringAttribute("id"));
            }
            if (plotLineUIDL.hasAttribute("width")) {
                plotLines.setWidth(plotLineUIDL.getIntAttribute("width"));
            }
            if (plotLineUIDL.hasAttribute("zIndex")) {
                plotLines.setZIndex(plotLineUIDL.getIntAttribute("zIndex"));
            }
            // label
            GwtPlotLabel label = getPlotLabel(plotLineUIDL.getChildUIDL(0));
            if (label != null) {
                plotLines.setLabel(label);
            }
            // line value
            UIDL lineValueUIDL = plotLineUIDL.getChildUIDL(1);
            if (lineValueUIDL.hasAttribute("valueType")) {
                String valueType = lineValueUIDL
                        .getStringAttribute("valueType");
                if (valueType.equals("number")) {
                    if (lineValueUIDL.hasAttribute("value")) {
                        plotLines.setValue(lineValueUIDL
                                .getDoubleAttribute("value"));
                    }
                } else { // date
                    int year = lineValueUIDL.getIntAttribute("year");
                    int month = lineValueUIDL.getIntAttribute("month");
                    int day = lineValueUIDL.getIntAttribute("day");
                    plotLines.setValue("Date.UTC(" + year + ", " + month + ","
                            + day + ")");
                }
            }
            //
            plotLinesArr.push(plotLines);
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

                .createArray().cast();
        int numOfChartAxisPlotLines = chartAxisPlotLines.length();
        int numOfUIDLAxisPlotLines = uidlAxisPlotLines.length();
        boolean updatedAxisPlotLines = false;
        for (int indOuter = 0; indOuter < numOfChartAxisPlotLines; indOuter++) {
            GwtPlotLines chartPlotLine = chartAxisPlotLines.get(indOuter);
            String plotLineId = chartPlotLine.getId();
            boolean found = false;
            for (int indInner = 0; indInner < numOfUIDLAxisPlotLines; indInner++) {
                GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(indInner);
                if (uidlPlotLine != null
                        && uidlPlotLine.getId().equals(plotLineId)) {
                    if (uidlPlotLine.getValue() == chartPlotLine.getValue()) {
                        // PlotLine exists and value is same so no action should
                        // be taken except marking UIDL PlotLine to null.
                        // Setting UIDL PlotLine
                        // to null ensures that remaining PlotLines in UIDL can
                        // be added
                        // safely to the chart.
                        uidlAxisPlotLines.set(indInner, null);
                        updatedChartAxisPlotLines.push(chartPlotLine);
                        found = true;
                    }
                    break;
                }
            }
            if (!found) {
                // remove plot line as it is not found in UIDL received from the
                // server
                updatedAxisPlotLines = true;
                chartAxis.removePlotLine(plotLineId);
            }
        }
        // Add all remaining plot lines in UIDL to the chart
        for (int ind = 0; ind < numOfUIDLAxisPlotLines; ind++) {
            GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(ind);
            if (uidlPlotLine != null) {
                updatedAxisPlotLines = true;
                chartAxis.addPlotLine(uidlPlotLine);
                updatedChartAxisPlotLines.push(uidlPlotLine);
            }
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

            UIDL plotLineUIDL = plotLinesUIDL.getChildUIDL(cnt);
            if (plotLineUIDL.getAttributeNames().size() == 0
                    && plotLineUIDL.getChildCount() == 0) {
                continue;
            }
            GwtPlotLines plotLines = GwtPlotLines.create();
            if (plotLineUIDL.hasAttribute("color")) {
                plotLines.setColor(plotLineUIDL.getStringAttribute("color"));
            }
            if (plotLineUIDL.hasAttribute("dashStyle")) {
                plotLines.setDashStyle(plotLineUIDL
                        .getStringAttribute("dashStyle"));
            }
            if (plotLineUIDL.hasAttribute("id")) {
                plotLines.setId(plotLineUIDL.getStringAttribute("id"));
            }
            if (plotLineUIDL.hasAttribute("width")) {
                plotLines.setWidth(plotLineUIDL.getIntAttribute("width"));
            }
            if (plotLineUIDL.hasAttribute("zIndex")) {
                plotLines.setZIndex(plotLineUIDL.getIntAttribute("zIndex"));
            }
            // label
            GwtPlotLabel label = getPlotLabel(plotLineUIDL.getChildUIDL(0));
            if (label != null) {
                plotLines.setLabel(label);
            }
            // line value
            UIDL lineValueUIDL = plotLineUIDL.getChildUIDL(1);
            if (lineValueUIDL.hasAttribute("valueType")) {
                String valueType = lineValueUIDL
                        .getStringAttribute("valueType");
                if (valueType.equals("number")) {
                    if (lineValueUIDL.hasAttribute("value")) {
                        plotLines.setValue(lineValueUIDL
                                .getDoubleAttribute("value"));
                    }
                } else { // date
                    int year = lineValueUIDL.getIntAttribute("year");
                    int month = lineValueUIDL.getIntAttribute("month");
                    int day = lineValueUIDL.getIntAttribute("day");
                    plotLines.setValue("Date.UTC(" + year + ", " + month + ","
                            + day + ")");
                }
            }
            //
            plotLinesArr.push(plotLines);
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

                .createArray().cast();
        int numOfChartAxisPlotLines = chartAxisPlotLines.length();
        int numOfUIDLAxisPlotLines = uidlAxisPlotLines.length();
        boolean updatedAxisPlotLines = false;
        for (int indOuter = 0; indOuter < numOfChartAxisPlotLines; indOuter++) {
            GwtPlotLines chartPlotLine = chartAxisPlotLines.get(indOuter);
            String plotLineId = chartPlotLine.getId();
            boolean found = false;
            for (int indInner = 0; indInner < numOfUIDLAxisPlotLines; indInner++) {
                GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(indInner);
                if (uidlPlotLine != null
                        && uidlPlotLine.getId().equals(plotLineId)) {
                    if (uidlPlotLine.getValue() == chartPlotLine.getValue()) {
                        // PlotLine exists and value is same so no action should
                        // be taken except marking UIDL PlotLine to null.
                        // Setting UIDL PlotLine
                        // to null ensures that remaining PlotLines in UIDL can
                        // be added
                        // safely to the chart.
                        uidlAxisPlotLines.set(indInner, null);
                        updatedChartAxisPlotLines.push(chartPlotLine);
                        found = true;
                    }
                    break;
                }
            }
            if (!found) {
                // remove plot line as it is not found in UIDL received from the
                // server
                updatedAxisPlotLines = true;
                chartAxis.removePlotLine(plotLineId);
            }
        }
        // Add all remaining plot lines in UIDL to the chart
        for (int ind = 0; ind < numOfUIDLAxisPlotLines; ind++) {
            GwtPlotLines uidlPlotLine = uidlAxisPlotLines.get(ind);
            if (uidlPlotLine != null) {
                updatedAxisPlotLines = true;
                chartAxis.addPlotLine(uidlPlotLine);
                updatedChartAxisPlotLines.push(uidlPlotLine);
            }
View Full Code Here

Examples of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtPlotLines

            UIDL plotLineUIDL = plotLinesUIDL.getChildUIDL(cnt);
            if (plotLineUIDL.getAttributeNames().size() == 0
                    && plotLineUIDL.getChildCount() == 0) {
                continue;
            }
            GwtPlotLines plotLines = GwtPlotLines.create();
            if (plotLineUIDL.hasAttribute("color")) {
                plotLines.setColor(plotLineUIDL.getStringAttribute("color"));
            }
            if (plotLineUIDL.hasAttribute("dashStyle")) {
                plotLines.setDashStyle(plotLineUIDL
                        .getStringAttribute("dashStyle"));
            }
            if (plotLineUIDL.hasAttribute("id")) {
                plotLines.setId(plotLineUIDL.getStringAttribute("id"));
            }
            if (plotLineUIDL.hasAttribute("width")) {
                plotLines.setWidth(plotLineUIDL.getIntAttribute("width"));
            }
            if (plotLineUIDL.hasAttribute("zIndex")) {
                plotLines.setZIndex(plotLineUIDL.getIntAttribute("zIndex"));
            }
            // label
            GwtPlotLabel label = getPlotLabel(plotLineUIDL.getChildUIDL(0));
            if (label != null) {
                plotLines.setLabel(label);
            }
            // line value
            UIDL lineValueUIDL = plotLineUIDL.getChildUIDL(1);
            if (lineValueUIDL.hasAttribute("valueType")) {
                String valueType = lineValueUIDL
                        .getStringAttribute("valueType");
                if (valueType.equals("number")) {
                    if (lineValueUIDL.hasAttribute("value")) {
                        plotLines.setValue(lineValueUIDL
                                .getDoubleAttribute("value"));
                    }
                } else { // date
                    int year = lineValueUIDL.getIntAttribute("year");
                    int month = lineValueUIDL.getIntAttribute("month");
                    int day = lineValueUIDL.getIntAttribute("day");
                    plotLines.setValue("Date.UTC(" + year + ", " + month + ","
                            + day + ")");
                }
            }
            //
            plotLinesArr.push(plotLines);
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.