Examples of ChartTitle


Examples of org.openfaces.component.chart.ChartTitle

        setValueExpressionProperty(chart, "model");
        setEnumerationProperty(chart, "view", ChartViewType.class);

        String titleText = getPropertyValue("titleText");
        if (titleText != null) {
            ChartTitle title = new ChartTitle();
            title.setId(Components.generateIdWithSuffix(chart, "chartTitle"));
            setStringProperty(title, "text", titleText, "titleText");
            chart.getChildren().add(title);
            title.setTextStyle("font-size: 14pt;");
        }

        setIntProperty(chart, "height");
        setIntProperty(chart, "width");
        setBooleanProperty(chart, "legendVisible");
View Full Code Here

Examples of org.openfaces.component.chart.ChartTitle

        setStringProperty(component, "text");
        setStringProperty(component, "url");
        setStringProperty(component, "tooltip");

        ChartTitle chartTitle = (ChartTitle) component;
        setActionProperty(facesContext, chartTitle);
        setActionListener(facesContext, chartTitle);
    }
View Full Code Here

Examples of org.openfaces.component.chart.ChartTitle

            Chart chart,
            ToolTipTagFragmentGenerator toolTipTagFragmentGenerator,
            URLTagFragmentGenerator urlTagFragmentGenerator,
            ChartEntity entity) {
        StringBuilder tag = new StringBuilder();
        ChartTitle title = chart.getTitle();
        if (title == null) return "";
        boolean hasURL = entity.getURLText() != null && !entity.getURLText().equals("");
        boolean hasAction = title.getActionExpression() != null || title.getActionListeners().length > 0;
        boolean hasToolTip = title.getTooltip() != null && !title.getTooltip().equals("");

        if (!hasURL && !hasToolTip && !hasAction) return "";

        String fieldId = chart.getClientId(FacesContext.getCurrentInstance()) + ACTION_FIELD_SUFFIX;
View Full Code Here

Examples of org.openfaces.component.chart.ChartTitle

/**
* @author Ekaterina Shliakhovetskaya
*/
class TextTitleAdapter extends TextTitle {
    public TextTitleAdapter(Chart chart) {
        ChartTitle title = chart.getTitle();
        if (title == null || title.getText() == null)
            return;

        setText(title.getText());

        if (title.getActionExpression() == null && title.getUrl() != null) {
            setURLText(title.getUrl());
        }

        setToolTipText(title.getTooltip());

        StyleObjectModel styleModel = title.getStyleObjectModel();
        if (styleModel != null) {
            setFont(CSSUtil.getFont(styleModel));

            final boolean chartTitlePaintDefined = chart.getChartView().getBackgroundPaint() != null;

View Full Code Here

Examples of org.swtchart.internal.ChartTitle

        parent.layout();

        setLayout(new ChartLayout());

        title = new ChartTitle(this, SWT.NONE);
        title.setLayoutData(new ChartLayoutData(SWT.DEFAULT, 100));
        legend = new Legend(this, SWT.NONE);
        legend.setLayoutData(new ChartLayoutData(200, SWT.DEFAULT));
        plotArea = new PlotArea(this, SWT.NONE);
        axisSet = new AxisSet(this);
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.