Examples of AxisProperties


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

        // chartViewer.setChartBackground(new Color(255, 255, 255, 0));
        // chartViewer.setChartMainBackground(new Color(255, 255, 255, 0));

        chartViewer.setHeaderVisible(true);

        xProp = new AxisProperties();
        xProp.setPosition(IChartViewer.HORIZONTAL_ORGY1);
        xProp.setDrawOpposite(true);
        xProp.setAutoScale(false);
        xProp.setScaleMin(DEFAULT_X_MIN_VALUE);
        xProp.setScaleMax(DEFAULT_X_MAX_VALUE);

        y1Prop = new AxisProperties();
        y1Prop.setDrawOpposite(true);
        y1Prop.setAutoScale(false);
        y1Prop.setScaleMin(DEFAULT_Y_MIN_VALUE);
        y1Prop.setScaleMax(DEFAULT_Y_MAX_VALUE);
        y1Prop.setGridVisible(true);
View Full Code Here

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

                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);
View Full Code Here

Examples of org.jCharts.properties.AxisProperties

      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);

      BufferedImage bufferedImage = new BufferedImage(500, 350, BufferedImage.TYPE_INT_RGB);
View Full Code Here

Examples of org.jCharts.properties.AxisProperties

      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,
          element.getWidth(), element.getHeight());
View Full Code Here

Examples of org.jCharts.properties.AxisProperties

                    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
            DataAxisProperties daxp = (DataAxisProperties)axisProperties.getYAxisProperties();
            daxp.setRoundToNearest(1);
            LegendProperties legendProperties = new LegendProperties();
            AxisChart axisChart = new AxisChart(
                    dataSeries, chartProperties, axisProperties,
                    legendProperties, _width, _height );
View Full Code Here

Examples of org.jCharts.properties.AxisProperties

                yaxis.setShowGridLines(1);
            } catch (PropertyException e) {
                log.warn("",e);
            }

            AxisProperties axisProperties= new AxisProperties(xaxis, yaxis);
            axisProperties.setXAxisLabelsAreVertical(true);
            LegendProperties legendProperties= new LegendProperties();
            AxisChart axisChart = new AxisChart(
                    dataSeries, chartProperties, axisProperties,
                    legendProperties, _width, _height );
            axisChart.setGraphics2D((Graphics2D) g);
View Full Code Here

Examples of org.jCharts.properties.AxisProperties

        yaxis.setShowGridLines(1);

        LabelAxisProperties xaxis = new LabelAxisProperties();
        xaxis.setShowGridLines(1);

        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.AxisProperties

                    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
            DataAxisProperties daxp = (DataAxisProperties)axisProperties.getYAxisProperties();
            daxp.setRoundToNearest(1);
            LegendProperties legendProperties = new LegendProperties();
            AxisChart axisChart = new AxisChart(
                    dataSeries, chartProperties, axisProperties,
                    legendProperties, _width, _height );
View Full Code Here

Examples of org.krysalis.jcharts.properties.AxisProperties

    ChartProperties chartProperties= this.getChartProperties();
    GradientPaint paint= new GradientPaint( 250, 0, Color.white,
                               250, 800, new Color( 0, 255, 255, 220 ) );
    chartProperties.setBackgroundPaint( paint );

    AxisProperties axisProperties= new AxisProperties();
    axisProperties.setXAxisLabelsAreVertical( true );
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( this.dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "backgroundPaint" );
View Full Code Here

Examples of org.krysalis.jcharts.properties.AxisProperties

    ChartProperties chartProperties= this.getChartProperties();

    ChartStroke borderStroke= new ChartStroke( new BasicStroke( 2.0f ), Color.red );
    chartProperties.setBorderStroke( borderStroke );

    AxisProperties axisProperties= new AxisProperties();
    axisProperties.setXAxisLabelsAreVertical( true );
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( this.dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "chartBorder" );
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.