![JAR search and dependency download from the Maven repository](/logo.png)
org.diirt.javafx.graphene.BubbleGraphApp Maven / Gradle / Ivy
/**
* Copyright (C) 2010-18 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.javafx.graphene;
import javafx.stage.Stage;
/**
* Creates bubble graphs.
*
* @author mjchao
*/
public class BubbleGraphApp extends BaseGraphApp {
private final BubbleGraphView bubbleGraphView = new BubbleGraphView();
@Override
public BaseGraphView getGraphView() {
return this.bubbleGraphView;
}
@Override
public void start( Stage stage ) throws Exception {
super.start( stage );
this.addDataFormulae( "=tableOf(column(\"X\", range(-10,10)), column(\"Y\", 'sim://noiseWaveform'), column(\"SIZE\", 'sim://gaussianWaveform'), column(\"COLOR\", 'sim://sineWaveform'))",
"=tableOf(column(\"X\", range(-10,10)), column(\"Y\", 'sim://noiseWaveform'))",
"=tableOf(column(\"X\", arrayOf(2,3,4,3,2,1,0,1)), column(\"Y\", arrayOf(0,1,2,3,4,3,2,1)), column(\"SIZE\", arrayOf(5,4,3,2,1,2,3,4)), column(\"COLOR\", arrayOf(\"A\",\"A\",\"B\",\"B\",\"B\",\"B\",\"A\",\"A\")))",
"=tableOf(column(\"X\", arrayOf(1,2,3,4,5)), column(\"Y\", arrayOf(3,1,4,2,5)), column(\"NAMES\", arrayOf(\"A\", \"A\", \"A\", \"B\", \"B\")))"
);
}
@Override
public void openConfigurationPanel() {
this.bubbleGraphView.getDefaultConfigurationDialog().open();
}
final public static void main( String[] args ) {
launch( args );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy