Make Data and Rendering with Java
The Web Access Recorder uses Java Connector. When you write complex code, the Java is good solution on making application with Alinous-Core.
- Location of Java Source Code
- Parse HTML ans CSS
- Heatmap raster buffer and draw image
The source code of Java is in the "/src/" folder of this application's project.
In this folder, there is java program to do below.
- Parse Html and replace, detect the url and included items
- Parse Css file and replace url detected in it
- Handle raster buffer to calculate heatmap
When it archives the web page, fetch the html from url and parse it. After that, it parse the html and detect the items, and rewrite html. The items are also fetched and archived.
Then the css is rewroten by the Java program.
The "org.alinous.css" package is to handle the css files. The css file has "url" to point the images. It is necessary to convert the url to the archived item's one.
This java program do it.
In the "org.alinous.heatmap" package, the java classes to handle raster buffer of heatmap and draw images is there.
Both the Mouse Move Heat Map and the Window Scroll Heat Map uses java classes of this package.
The Mouse Move Heat Map uses Java classes below.
The LasterBufferIf is the JavaConnector class, and this class is the interface to the Alinous-Core programming language.
The Window Scroll Heat Map uses Java classes below.
The ScrollHeatmapIf is the JavaConnector class, and this class is the interface to the Alinous-Core programming language.
The class to draw heatmap image from the calculated data is below.
The HeatmapDrawer is the JavaConnector class, and this class is the interface to the Alinous-Core programming language.