Package com.sun.tools.visualvm.charts

Examples of com.sun.tools.visualvm.charts.SimpleXYChartDescriptor


    private SimpleXYChartSupport createChart(DataTypeEnum dataType,
            ChartTypeEnum chartType, String name, String[] lineItems,
            String xDesc, String yDesc, String[] dataItemKeys) {

        SimpleXYChartDescriptor description;
        if (dataType == DataTypeEnum.DECIMAL) {
            description = SimpleXYChartDescriptor.decimal(0, true, 1000);
        } else {
            description = SimpleXYChartDescriptor.bytes(0, true, 1000);
        }

        description.setChartTitle(name);

        if (chartType == ChartTypeEnum.LINE) {
            description.addLineItems(lineItems);
        } else {
            description.addFillItems(lineItems);
        }

        description.setXAxisDescription(xDesc);
        description.setYAxisDescription(yDesc);
        final SimpleXYChartSupport chart = ChartFactory.createSimpleXYChart(description);
        charts.put(chart, dataItemKeys);
        return chart;
    }
View Full Code Here

TOP

Related Classes of com.sun.tools.visualvm.charts.SimpleXYChartDescriptor

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.