Package org.gephi.utils.sparklines

Examples of org.gephi.utils.sparklines.SparklineComponent


    public void execute() {
        //Show interactive sparkline window:
        SparklineParameters parameters = new SparklineParameters(200, 20, SparklineParameters.DEFAULT_LINE_COLOR, new Color(225, 255, 255), Color.RED, Color.GREEN);//Dimension is automatically updated by SparklineComponent
        parameters.setHighlightTextColor(SparklineParameters.DEFAULT_TEXT_COLOR);
        parameters.setHighlightTextBoxColor(SparklineParameters.DEFAULT_TEXT_BOX_COLOR);
        SparklineComponent sparklineUI = new SparklineComponent(xValues, yValues, parameters, true);//True makes it interactive to mouse
        sparklineUI.setPreferredSize(new Dimension(200, 20));//Initial size
        //Using Netbeans RCP Dialogs API:       
        DialogDescriptor dd = new DialogDescriptor(sparklineUI, column.getTitle());
        dd.setModal(false);
        dd.setOptions(new Object[0]);//No buttons
        DialogDisplayer.getDefault().createDialog(dd).setVisible(true);
View Full Code Here

TOP

Related Classes of org.gephi.utils.sparklines.SparklineComponent

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.