jzy3d プロット ライブラリで Hello World アプリケーションを実行しようとしました。Web サイトから例を取得しましたが、実行すると次のエラーが発生しました。
スレッド「メイン」の例外 java.lang.RuntimeException: 実装された例外はありません
誰がこれが何を意味するのか教えてもらえますか?
参照用のコードは次のとおりです。
import org.jzy3d.chart.Chart;
import org.jzy3d.chart.ChartLauncher;
import org.jzy3d.colors.Color;
import org.jzy3d.colors.ColorMapper;
import org.jzy3d.colors.colormaps.ColorMapRainbow;
import org.jzy3d.maths.Range;
import org.jzy3d.plot3d.builder.Builder;
import org.jzy3d.plot3d.builder.Mapper;
import org.jzy3d.plot3d.builder.concrete.OrthonormalGrid;
import org.jzy3d.plot3d.primitives.Shape;
import org.jzy3d.plot3d.rendering.canvas.Quality;
public class HelloWorld {
public static void main(String[] args) {
// Define a function to plot
Mapper mapper = new Mapper() {
public double f(double x, double y) {
return 10 * Math.sin(x / 10) * Math.cos(y / 20) * x;
}
};
// Define range and precision for the function to plot
Range range = new Range(-150, 150);
int steps = 50;
// Create a surface drawing that function
Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(range, steps, range, steps), mapper);
surface.setColorMapper(new ColorMapper(new ColorMapRainbow(), surface.getBounds().getZmin(), surface.getBounds().getZmax(), new Color(1, 1, 1, .5f)));
surface.setFaceDisplayed(true);
surface.setWireframeDisplayed(false);
surface.setWireframeColor(Color.BLACK);
// Create a chart and add the surface
Chart chart = new Chart(Quality.Advanced);
chart.getScene().getGraph().add(surface);
ChartLauncher.openChart(chart);
}
}
エラー:
スレッド「メイン」での例外 java.lang.RuntimeException: org.jzy3d.chart.factories.ChartComponentFactory.newFrame(ChartComponentFactory.java:148) で例外が実装されていません org.jzy3d.chart.ChartLauncher.frame(ChartLauncher.java:82) ) org.jzy3d.chart.ChartLauncher.openChart(ChartLauncher.java:39) で org.jzy3d.chart.ChartLauncher.openChart(ChartLauncher.java:33) で org.jzy3d.chart.ChartLauncher.openChart(ChartLauncher.java: 17) helloworld.HelloWorld.main(HelloWorld.java:77) で