analog input from magnetic sensor melexis 90217

what can i do if i choose this sensor with the analog inputs?can i represent

them somehow?can i store the on/off inputs with a processing program or a

java code and represent them with a diagram or a statistical ''pie''?
can i measure them and give the average distance of the magnet,the min and max values?
For example how i represent (Flux density in Gauss) analog to (Distance in mils) in an Oxy system?

my project is and it gives this code

import processing.serial.*;

Serial port;
final int LF = 10;
boolean led;

void setup() {
  port = new Serial(this,Serial.list()[1],9600);
  led = false;

void draw() {
  if (port.available()>0) {
    String s1 = port.readStringUntil(LF);
    if (s1!=null) {
      s1 = trim(s1);
      if (s1.equals("1")) {
      } else {

i cant understand what this does...

Your sketch is Processing, to run on the PC, not an Arduino.