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

 The source code of Java is in the "/src/" folder of this application's project.

Source code of  Java program

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

Parse HTML ans CSS

 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.

Java program to Handle Html

 The "org.alinous.html" package is to fetch and handle the Html files. The class in this pachage also fetch the css, javascript, image files and so on.

Package of Html handler

Java program to handle css

 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.

Package of css handler

Heatmap raster buffer and draw image

 In the "org.alinous.heatmap" package, the java classes to handle raster buffer of heatmap and draw images is there.

Java package to handle image and buffer

 Both the Mouse Move Heat Map and the Window Scroll Heat Map uses java classes of this package.

Mouse move heat map

 The Mouse Move Heat Map uses Java classes below.

  • HeatMath
  • LasterBuffer
  • LasterBufferIf
  • LasterBufferLine

The LasterBufferIf is the JavaConnector class, and this class is the interface to the Alinous-Core programming language.

Scroll Heat map

 The Window Scroll Heat Map uses Java classes below.

  • ScrollHeatmapBuffer
  • ScrollHeatmapIf

The ScrollHeatmapIf is the JavaConnector class, and this class is the interface to the Alinous-Core programming language.

Draw Heat map image

 The class to draw heatmap image from the calculated data is below.

  • HeatmapColor
  • HeatmapDrawer
  • ImageDescriptor

The HeatmapDrawer is the JavaConnector class, and this class is the interface to the Alinous-Core programming language.


Go to Top