本文整理汇总了Java中org.jzy3d.chart.ChartLauncher.openChart方法的典型用法代码示例。如果您正苦于以下问题:Java ChartLauncher.openChart方法的具体用法?Java ChartLauncher.openChart怎么用?Java ChartLauncher.openChart使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jzy3d.chart.ChartLauncher
的用法示例。
在下文中一共展示了ChartLauncher.openChart方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import org.jzy3d.chart.ChartLauncher; //导入方法依赖的package包/类
public static void main(String[] args) throws UnsupportedAudioFileException, IOException {
VocoParseFileAndFFT voice = new VocoParseFileAndFFT(new File("data/sound/piano.wav"));
Chart chart = AWTChartComponentFactory.chart();
SpectrumSurface d = new SpectrumSurface(new SpectrumModelSpectro(voice.getAnalysis()));
chart.addDrawable(d);
ChartLauncher.openChart(chart);
}
示例2: main
import org.jzy3d.chart.ChartLauncher; //导入方法依赖的package包/类
public static void main(String[] args) throws Exception {
LineSegmentChart d = new LineSegmentChart();
d.makeMidiNoteChart(duration);
ChartLauncher.openChart(d.midiNoteChart);
d.midiNoteSerie.add(0.0f, 0.1f, Color.RED);
d.midiNoteSerie.add(0.1f, 0.2f, Color.BLUE);
/*d.midiNoteSerie.addOff(0.2f, 0.3f, Color.GREEN);
d.midiNoteSerie.add(0.3f, 0.5f, Color.RED);
d.midiNoteSerie.add(0.4f, 0.6f, Color.RED);
d.midiNoteSerie.addOff(0.5f, 0.7f, Color.RED);*/
}
示例3: main
import org.jzy3d.chart.ChartLauncher; //导入方法依赖的package包/类
public static void main(String[] args) {
AWTChartComponentFactory factory = new AWTChartComponentFactory();
Chart chart = new Chart(factory, Quality.Nicest, SurfaceDemoTest.DEFAULT_CANVAS_TYPE,
Settings.getInstance().getGLCapabilities());
Cylinder cylinder = new Cylinder();
cylinder.setData(new Coord3d(0, 0, 0), 5, 1, 20, 0, new Color(1, 1, 1, 0.75f));
cylinder.setFaceDisplayed(true);
// cylinder.setWireframeDisplayed(true);
cylinder.setColorMapper(new ColorMapper(new ColorMapRainbow(), cylinder.getBounds()
.getZmin(), cylinder.getBounds().getZmax(), new Color(1, 1, 1, 0.75f)));
chart.getScene().getGraph().add(cylinder);
cylinder = new Cylinder();
cylinder.setData(new Coord3d(-10, -10, -10), 10, 3, 20, 0, new Color(-10, -10, -10, 0.75f));
cylinder.setFaceDisplayed(true);
cylinder.setWireframeDisplayed(true);
cylinder.setColorMapper(new ColorMapper(new ColorMapRainbow(), cylinder.getBounds()
.getZmin(), cylinder.getBounds().getZmax(), new Color(10, 10, 10, 0.75f)));
chart.getScene().getGraph().add(cylinder);
ChartLauncher.openChart(chart);
}
示例4: openDelaunayChart
import org.jzy3d.chart.ChartLauncher; //导入方法依赖的package包/类
/**
* @param coordinates
*/
public void openDelaunayChart(List<Coord3d> coordinates) {
ChartLauncher.openChart(this.getDelaunayChart(coordinates));
}
示例5: openScatterChart
import org.jzy3d.chart.ChartLauncher; //导入方法依赖的package包/类
/**
* @param coordinates
*/
public void openScatterChart(List<Coord3d> coordinates, float width) {
ChartLauncher.openChart(this.getScatterChart(coordinates, width));
}
示例6: openCylinderChart
import org.jzy3d.chart.ChartLauncher; //导入方法依赖的package包/类
public void openCylinderChart(List<Cylinder> cylinders) {
ChartLauncher.openChart(this.getCylinder3DChart(cylinders));
}