Package com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions

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


            axisBaseOptions.setType(axisUIDL.getStringAttribute("type"));
        }

        // title
        UIDL titleUIDL = axisUIDL.getChildUIDL(0);
        GwtAxisTitleOptions titleOptions = getAxisTitleOptions(titleUIDL);
        if (titleOptions != null) {
            axisBaseOptions.setTitle(titleOptions);
        }

        // label
View Full Code Here


    private GwtAxisTitleOptions getAxisTitleOptions(UIDL axisTitleUIDL) {
        if (axisTitleUIDL == null
                || axisTitleUIDL.getAttributeNames().size() == 0) {
            return null;
        }
        GwtAxisTitleOptions titleOptions = GwtAxisTitleOptions.create();
        if (axisTitleUIDL.hasAttribute("align")) {
            titleOptions.setAlign(axisTitleUIDL.getStringAttribute("align"));
        }
        if (axisTitleUIDL.hasAttribute("margin")) {
            titleOptions.setMargin(axisTitleUIDL.getIntAttribute("margin"));
        }
        if (axisTitleUIDL.hasAttribute("rotation")) {
            titleOptions.setRotation(axisTitleUIDL.getIntAttribute("rotation"));
        }
        if (axisTitleUIDL.hasAttribute("style")) {
            titleOptions.setStyle(axisTitleUIDL.getStringAttribute("style"));
        }
        if (axisTitleUIDL.hasAttribute("text")) {
            titleOptions.setText(axisTitleUIDL.getStringAttribute("text"));
        }
        return titleOptions;
    }
View Full Code Here

TOP

Related Classes of com.invient.vaadin.charts.widgetset.client.ui.GwtInvientChartsConfig.GwtAxisBaseOptions.GwtAxisTitleOptions

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.