Is it possible using java to create a dynamic graphs that update itself automatically when it receives values from outside?
I would create an application that check automatically the statistics of a server (data in,data out,etc...) drawing those values on the graph dynamically when those change.
I found JFreeChart but I don't know if it make those things
Go to JFreeChart demo's page, Download the jnlp and launch it via Java Web start. There are plenty of JFreeChart examples with source code. In the samples directory tree, under "Miscellaneous -> Dynamic charts" you'll find what you need
Related
I have a JAVA application that includes creating VM instances in GCP.
I now am attempting to use the new "machine images" functionality in order to be able to replicate whole instances (as opposed to using the images from disk option).
I am using the beta api to create images from instances, however I need to be able to then fetch a list of these machine-images back to my application in order for them to be used to create new instances.
I am looking for some GET api for this purpose, but
I cannot find documentation on this anywhere. any ideas??
As per this doc you can get list of machine images within a project.
We are trying to develop a website for tracking the progress of pipeline and assets. I want to link progress data entered from forms developed in Java to GIS. We will be capturing all the lat and longs of pipeline stretch and lat and log of progress of work.
I need help in developing shapefile dynamically based on the progress and also to view that shape file in my webpage
The javascript API does have functionality for uploading shapefiles form your desktop into the browser, but you will need another tool to create those shapefiles based on the progress.
For uploading the shapefiles, see the example here: https://developers.arcgis.com/javascript/3/jssamples/portal_addshapefile.html
There may be more examples available at https://developers.arcgis.com/javascript/3/.
For creating the shapefiles dynamically, you could use ArcMap or ArcPro if you have those, or one of many python libraries to help write shapefiles. There may even be some Java libraries to help with this as well but I only work on the front end so I cannot help you there.
For something simple in context, the complexity of what kind of workflow to best suite your needs can range depending on these questions (and probably others I'm not thinking of):
Do you absolutely need to create a shapefile for this? Why can't you just push the form to a spatial database (e.g. PostGIS) and then return the XYs of the points or the string of XYs for line features, etc.?
Where is the source of the data & what is the format? Is it a PDF, text on an HTML page, a .csv file downloadable from a page, etc.? You may need to implement scraping (from a site) or download and update, or your data could be live streaming - these are all different workflows and you need to establish these boundaries before setting up your workflow.
If your end game are points, all you need is XYs in a table format to display in GIS software. If they are lines or polygons, it'd be a little different. Again - what output type are they and what are you trying to do with it (e.g. import into QGIS)?
Without these answers, it doesn't make sense for anyone to suggest something to you that could be totally impossible for you to execute. Please answer these and think through your workflow from beginning to end and/or visa versa.
Cheers,
Shawn
I want to represent a business process that I will have from an XML file and represent it in a JPanel, and I need also to visualize its evolution in time by changing colors (for example).
Do you know from where I should start, or if jBPMN can be connected to java and represented in my interface.
Any help will be appreciated.
The jBPM web designer can generate a PNG or SVG from an XML file (either by exporting as PNG or you can automatically save the SVG next to the process in the workbench repository when you save the process in designer. Your JPanel could retrieve this process PNG or SVG, and annotate it by first querying the current state of your process (from the engine or the audit tables directly) and using that to highlight certain nodes for example.
For the next version of jBPM we're working on a REST call that would automate all of that for you.
I think I am going to use JGraphix to draw my bpm, because as I saw, it give the possibility to draw shapes like bpmn ones.
I didn't see if it allows to change the color of the task case after x minut, but I guess it's going to be possible, and it's going to be the way to represent the evolution of the process at run time.
Do you think it's an Ok idea ?
I need help on how to propose a new website. I don’t know how to start and I hope you can guide me( if it is better to make an applet , a servlet, use other technology, etc. ) .
I have a website in ASP, it reads text files that are on the server in the same directory as the web . There are n files (may be about 300 plain text files generated by an external application ) . The website only read them, generates a menu with the data they contain . Depending on the selected menu options , read a specific files and pass this information to Flash movies which generate statistical graphs.
Flash movies are very old and actually cause problems in browsers. They can’t be loaded on all platforms for example. And the ASP technology is also obsolete.
We want to change the technology and create a web that reads a series of text files hosted on the server and pass these parameters to a graphic (we would use javascript libraries, for example Morris). We are interested for JAVA. What you recommend?. if its JAVA , this can be done with Applets ? or Should we use servlets?? or Is there an easier way to do it?
I use amcharts (http://www.amcharts.com/) to generate our charts.
I build the data using classic ASP ... then pass to an array in JS and then use the amcharts tools, which are very powerful and flexible.
I have just started working with GWT. I was wondering how I can dynamically move widgets on fly (at web page on client browser) for example to move a row of table up and down, or upload a excel file and display its content right away....something like a dashboard I am talking about. Are there any comprehensive tutorial to refer.
Have a look at the gwt-dnd lib:
http://code.google.com/p/gwt-dnd/
GWT is made for doing the kind of things you are describing. To move widgets you can either set their position or dynamically modify their css. To move rows around in a table look at the api of whatever table class you are using. To upload an excel file do a google search for 'gwt upload' and there will be some instructions - but to display the file you will need to convert it (probably to xml). Converting the file on the server will depend on which server you are using - I also have seen a 3rd party widget that will do that for you.
If youre looking for transition effects or animations , than check out gwtquery. Its really similar to jquery and has pretty simple good examples to start with.