Building a Charting Library on the JVM from Scratch [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I thought I would ask around here as there are a lot of experienced devs with much more understanding of the Java ecosystem than me.
So, I am looking to build a plotting library for some simulation data I am working on. This will consist of having some subset of matplotlib's functionality. From what I understand I can use the following on the JVM:
JavaFX / Swing
Java2d / java3d
Java OpenGL
Could anyone kindly tell me if any of those are suitable for what I am intending to do, or suggest a better alternative?
I do not want to use an existing plotting library as this is for a project which prevents me from doing so. I can however use a lower level library to build higher level components.
Thanks!

JFreeChart is based on Java2d (AFAICT), so that is definitely an option. You could start by looking at their code, understand their approach and then re-implement the pieces you need. Some will argue that in that case use the library, but as you stated you can't. But there is no shame in using what others have done.

Related

2D Real time graphics in Java (IntelliJ) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 months ago.
Improve this question
I'm developing a program that need to display 3 real time graphs, currently I'm working on IntelliJ but if needed I'll move to another IDE like NetBeans, I've been searching some options but I have no clear idea of the direction what would be the best for this kind of aplications.
This will be running on a windows bases enviroment
My observed options are trying JFreeChart but seems to be not so good for the real time nature, I haven't been able to find much documentation of JavaFX with this kind of application and idk how the java.awt.Graphics would work
If you are interested in real-time charting then you should have a look at this library: https://github.com/fair-acc/chart-fx
But doing real-time charts is more than just drawing something. It also involves data acquisition, data reduction, etc. You should do some research first in order to find the best solution for your specific problem.

Good practices for Data Scientists that work in R and engineers who work in Java and C++ collaborating [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
My company has a production application being built in Java and C++. We have recently added Data Scientists who are skilled at and using R. I am wondering what best practices people have for making sure that work done in R is best leveraged. For instance is our best option to call R code from Java or C++? I have located http://www.renjin.org/about.html.
Or is there a good way to convert code from R to Java or C++?
I am not a big fan of Renjin as its Java-based interpreter will only cover a subset of CRAN, and at that the subset that does not involve calls to C++.
I am a bigger fan of either
separation of concern:
use something like Rserve for headless connection from anything (including Java), or
use something like OpenCPU to turn everything into web-based access
for heavier-duty work, interface C++ directly via Rcpp which well over 400 CRAN packages do.

Build gui in java desktop application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm developing a java-database desktop application using netbeans and swing. The application has so many features that creating gui has become a problem and it has a very old look when compared to other modern applications. I found javafx, swingx, jgoodies, netbeans platform and so on...and the discussion on these topics is never ending!! I need good support for customising tables,trees, toolbars and skins. what should i use??
i would suggest you to go for javaFX. I had earlier worked on swing but now moved to javaFX.Benefits are
Good look and feel
can be used server side also.
Use the simplest method possible. Seriously, whatever you find easier go with. I find Eclipse Windows Builder is better than Netbeans but if installing the Eclipse plugin. Netbeans is probably a lot simpler than Eclipse Window Builder, but some people like me prefer Window Builder. Go with whatever you find easiest.
GUI building is complex in Java, they designed it well so it is hard as a novice to jump in, and it is better to start running then learn as you need more complex features. Google then becomes a good ally.

How to do something like Bonjour using open source library? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to make a Java program that allow me this discover my nearby computers who is running the same problem. Which is similar like the iTunes, can discover nearby computer who enable sharing in the iTunes. How can I implement it using open source library? Also, cross platform is very important. Any ideas on that? Thank you.
Well, Bonjour itself is open source, so you might want to start there...
http://developer.apple.com/opensource/
jmdns is a full Bonjour/Zeroconf implementation written in Java compatible with Apple. There is no dependency on native libraries, it is 100% Java.
http://jmdns.sourceforge.net/
I think you definitely should take a look at UPnP. Considering the cross-platformness of such a solution, and its implementation using Java, you can consider
UPNPLib
Cyberlynk for Java
And even the various ways to connect an OSGi application to UPnP.
Finally, considering existing implementation of Bonjour using Java, this reply to a stackoverflow question sums it up.
You can use Avahi - an open-source implementation for zeroconf, which is the protocol used by iTunes. There's a nice list of options for Java at:
http://elliotth.blogspot.com/2009/03/registering-service-with-dns-sd-from.html
I don't know how far it ever got, but Java had the JXTA project, it might do what you want.

What features do you expect from a Java (Rich) Client Framework? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm intending to design (and provide a reference implementation for) a new Swing Rich Client Framework. My job and personal experience covers many project-specific Swing client frameworks as well as the Eclipse RCP, and every one of them had some original and clever concepts, but also drawbacks and rigid realizations.
My plan is to incorporate the best of those concepts and features into a new framework whose core is very open and extendable.
For my must-have-features list, I'm counting on your input and hope you can share some concept pearls & diamonds you've encountered in other frameworks, or features you always wanted to have or have in a better way.
The framework is intended
for very simple to very complex and sophisticated projects
for clients that need full i18n
for richt clients that execute some or all of the non-presentation logic on the server
to be very lightweight
to be easy to learn and use
Thanks in advance for sharing your insights :)
Docking views / windows supporting predefined layouts! I have not found any good, easy to use, stable docking framework for java.

Categories