Examples of ChartProperties


Examples of fr.soleil.comete.definition.widget.properties.ChartProperties

    }

    @Override
    public void setChartProperties(ChartProperties chartProperties) {

        ChartProperties oldValue = getChartProperties();
        // System.out.println("setChartProperties=" + chartProperties);
        if (!ComparatorUtil.chartPropertiesEquals(oldValue, chartProperties)) {
            baseBean.setChartProperties(chartProperties);
            firePropertyChange("chartProperties", oldValue, chartProperties);
            setModified(true);
View Full Code Here

Examples of fr.soleil.comete.widget.properties.ChartProperties

    public void load() {
        try {
            if (!ModelPreferences.getInstance().getHashMap().isEmpty()) {
                IChartViewer component = view.getComponent(ModelPreferences.getInstance());
                ModelPreferences modelPreferences = ModelPreferences.getInstance();
                ChartProperties chartProperties = component.getChartProperties();

                chartProperties.setLegendsAreVisible(getBoolean(modelPreferences,
                        "viewer.general.legendsAreVisible", true));
                chartProperties.setAutoHighlightOnLegend(getBoolean(modelPreferences,
                        "viewer.general.autoHighlightOnLegend", false));
                chartProperties.setLegendsPlacement(getInteger(modelPreferences,
                        "viewer.general.legendsPlacement", 4));

                String generalPrefix = "viewer.general";
                chartProperties
                        .setBackgroundColor(getColorGeneral(modelPreferences, generalPrefix));

                chartProperties.setHeaderFont(getFont(modelPreferences, generalPrefix
                        + ".headerFont"));
                chartProperties
                        .setLabelFont(getFont(modelPreferences, generalPrefix + ".labelFont"));
                chartProperties.setTitle(getString(modelPreferences, "viewer.general.title", ""));

                chartProperties.setDisplayDuration(getDouble(modelPreferences,
                        "viewer.general.displayDuration", 100.0));

                AxisProperties xAxisProperties = chartProperties.getXAxisProperties();

                xAxisProperties.setScaleMin(getFloat(modelPreferences, "viewer.xaxis.scaleMin",
                        (float) 0.0));
                xAxisProperties.setScaleMax(getFloat(modelPreferences, "viewer.xaxis.scaleMax",
                        (float) 100.0));
                xAxisProperties.setScaleMode(getInteger(modelPreferences, "viewer.xaxis.scaleMode",
                        0));

                xAxisProperties.setAutoScale(getBoolean(modelPreferences, "viewer.xaxis.autoScale",
                        true));

                xAxisProperties.setLabelFormat(getInteger(modelPreferences,
                        "viewer.xaxis.labelFormat", 0));

                xAxisProperties.setTitle(getString(modelPreferences, "viewer.xaxis.title", ""));

                String xaxisPrefix = "viewer.xaxis";
                xAxisProperties.setColor(getColorAxis(modelPreferences, xaxisPrefix));

                xAxisProperties
                        .setPosition(getInteger(modelPreferences, "viewer.xaxis.position", 1));

                xAxisProperties.setSubGridVisible(getBoolean(modelPreferences,
                        "viewer.xaxis.subGridVisible", false));

                xAxisProperties.setDrawOpposite(getBoolean(modelPreferences,
                        "viewer.xaxis.drawOpposite", true));
                xAxisProperties.setVisible(getBoolean(modelPreferences, "viewer.xaxis.visible",
                        true));

                AxisProperties y1AxisProperties = chartProperties.getY1AxisProperties();
                y1AxisProperties.setScaleMin(getFloat(modelPreferences, "viewer.y1axis.scaleMin",
                        (float) 0.0));

                y1AxisProperties.setScaleMax(getFloat(modelPreferences, "viewer.y1axis.scaleMin",
                        (float) 100.0));

                y1AxisProperties.setScaleMode(getInteger(modelPreferences,
                        "viewer.y1axis.scaleMode", 0));

                y1AxisProperties.setAutoScale(getBoolean(modelPreferences,
                        "viewer.y1axis.autoScale", true));

                y1AxisProperties.setLabelFormat(getInteger(modelPreferences,
                        "viewer.y1axis.labelFormat", 0));
                y1AxisProperties.setTitle(getString(modelPreferences, "viewer.y1axis.title", ""));

                String y1axisPrefix = "viewer.y1axis";
                y1AxisProperties.setColor(getColorAxis(modelPreferences, y1axisPrefix));

                y1AxisProperties.setPosition(getInteger(modelPreferences, "viewer.y1axis.position",
                        6));

                y1AxisProperties.setSubGridVisible(getBoolean(modelPreferences,
                        "viewer.y1axis.subGridVisible", false));

                y1AxisProperties.setDrawOpposite(getBoolean(modelPreferences,
                        "viewer.y1axis.drawOpposite", true));

                y1AxisProperties.setVisible(getBoolean(modelPreferences, "viewer.y1axis.visible",
                        true));

                AxisProperties y2AxisProperties = chartProperties.getY2AxisProperties();

                y2AxisProperties.setScaleMin(getFloat(modelPreferences, "viewer.y2axis.scaleMin",
                        (float) 0.0));

                y2AxisProperties.setScaleMax(getFloat(modelPreferences, "viewer.y2axis.scaleMax",
                        (float) 100.0));

                y2AxisProperties.setScaleMode(getInteger(modelPreferences,
                        "viewer.y2axis.scaleMode", 0));

                y2AxisProperties.setAutoScale(getBoolean(modelPreferences,
                        "viewer.y2axis.autoScale", true));

                y2AxisProperties.setLabelFormat(getInteger(modelPreferences,
                        "viewer.y2axis.labelFormat", 0));

                y2AxisProperties.setTitle(getString(modelPreferences, "viewer.y2axis.title", ""));

                String y2axisPrefix = "viewer.y2axis";
                y2AxisProperties.setColor(getColorAxis(modelPreferences, y2axisPrefix));

                y2AxisProperties.setPosition(getInteger(modelPreferences, "viewer.y2axis.position",
                        5));

                y2AxisProperties.setSubGridVisible(getBoolean(modelPreferences,
                        "viewer.y2axis.subGridVisible", false));

                y2AxisProperties.setDrawOpposite(getBoolean(modelPreferences,
                        "viewer.y2axis.drawOpposite", true));

                y2AxisProperties.setVisible(getBoolean(modelPreferences, "viewer.y2axis.visible",
                        true));

                chartProperties.setXAxisProperties(xAxisProperties);
                chartProperties.setY1AxisProperties(y1AxisProperties);
                chartProperties.setY2AxisProperties(y2AxisProperties);

                component.setChartProperties(chartProperties);
            }
        }
        catch (Exception e) {
View Full Code Here

Examples of org.jCharts.properties.ChartProperties

      String[] axisLabels = {"January", "March", "May", "June"};
      DataSeries dataSeries = new DataSeries(axisLabels, "Months", "People", "Popular Events");
      dataSeries.addIAxisPlotDataSet(axisChartDataSet);

      ChartProperties chartProperties = new ChartProperties();
      AxisProperties axisProperties = new AxisProperties();
      axisProperties.setYAxisRoundValuesToNearest(0);
      LegendProperties legendProperties = new LegendProperties();

      AxisChart axisChart = new AxisChart(dataSeries, chartProperties, axisProperties, legendProperties, 500, 350);
View Full Code Here

Examples of org.jCharts.properties.ChartProperties

          paints, ChartType.AREA, areaChartProperties);

      DataSeries dataSeries = new DataSeries(labels, null, null, null);
      dataSeries.addIAxisPlotDataSet(axisChartDataSet);

      ChartProperties chartProperties = new ChartProperties();
      AxisProperties axisProperties = new AxisProperties();
      LegendProperties legendProperties = new LegendProperties();

      JRComponentElement element = fillContext.getComponentElement();
      AxisChart axisChart = new AxisChart(dataSeries, chartProperties, axisProperties, legendProperties,
View Full Code Here

Examples of org.jCharts.properties.ChartProperties

                    paints,
                    ChartType.LINE,
                    lineChartProperties );
            dataSeries.addIAxisPlotDataSet( axisChartDataSet );

            ChartProperties chartProperties = new ChartProperties();
            AxisProperties axisProperties = new AxisProperties();
            // show the grid lines, to turn it off, set it to zero
            axisProperties.getYAxisProperties().setShowGridLines(1);
            axisProperties.setXAxisLabelsAreVertical(true);
            // set the Y Axis to round
View Full Code Here

Examples of org.jCharts.properties.ChartProperties

            AxisChartDataSet axisChartDataSet =
                new AxisChartDataSet(
                        _data, legendLabels, paints, ChartType.BAR, barChartProperties );
            dataSeries.addIAxisPlotDataSet( axisChartDataSet );

            ChartProperties chartProperties= new ChartProperties();
            LabelAxisProperties xaxis = new LabelAxisProperties();
            DataAxisProperties yaxis = new DataAxisProperties();

            try {
                BigDecimal round = new BigDecimal(max / 1000d);
View Full Code Here

Examples of org.jCharts.properties.ChartProperties

        AxisProperties axisProperties = new AxisProperties(xaxis, yaxis);
        axisProperties.setXAxisLabelsAreVertical(true);

        LegendProperties legendProperties = new LegendProperties();
        ChartProperties chartProperties = new ChartProperties();
        return new AxisChart(dataSeries, chartProperties, axisProperties, legendProperties, width, height);
    }
View Full Code Here

Examples of org.jCharts.properties.ChartProperties

                    paints,
                    ChartType.LINE,
                    lineChartProperties );
            dataSeries.addIAxisPlotDataSet( axisChartDataSet );

            ChartProperties chartProperties = new ChartProperties();
            AxisProperties axisProperties = new AxisProperties();
            // show the grid lines, to turn it off, set it to zero
            axisProperties.getYAxisProperties().setShowGridLines(1);
            axisProperties.setXAxisLabelsAreVertical(true);
            // set the Y Axis to round
View Full Code Here

Examples of org.krysalis.jcharts.properties.ChartProperties

   *
   **********************************************************************************************/
  public void init()
  {
    this.legendProperties = new LegendProperties();
    this.chartProperties = new ChartProperties();
    this.axisProperties = new AxisProperties( true );
    ChartFont axisScaleFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.black );
    axisProperties.getXAxisProperties().setScaleChartFont( axisScaleFont );
    axisProperties.getYAxisProperties().setScaleChartFont( axisScaleFont );

View Full Code Here

Examples of org.krysalis.jcharts.properties.ChartProperties

   *
   **********************************************************************************************/
  public void init()
  {
    this.legendProperties = new LegendProperties();
    this.chartProperties = new ChartProperties();
    this.axisProperties = new AxisProperties( false );
    ChartFont axisScaleFont = new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.black );
    axisProperties.getXAxisProperties().setScaleChartFont( axisScaleFont );
    axisProperties.getYAxisProperties().setScaleChartFont( axisScaleFont );

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.