You are here

function pSpring::pSpring in Visitors 7

Same name and namespace in other branches
  1. 7.2 pChart/class/pSpring.class.php \pSpring::pSpring()

File

pChart/class/pSpring.class.php, line 46

Class

pSpring

Code

function pSpring() {

  /* Initialise data arrays */
  $this->Data = "";
  $this->Links = "";

  /* Set nodes defaults */
  $this->Default["R"] = 255;
  $this->Default["G"] = 255;
  $this->Default["B"] = 255;
  $this->Default["Alpha"] = 100;
  $this->Default["BorderR"] = 0;
  $this->Default["BorderG"] = 0;
  $this->Default["BorderB"] = 0;
  $this->Default["BorderAlpha"] = 100;
  $this->Default["Surrounding"] = NULL;
  $this->Default["BackgroundR"] = 255;
  $this->Default["BackgroundG"] = 255;
  $this->Default["BackgroundB"] = 255;
  $this->Default["BackgroundAlpha"] = 0;
  $this->Default["Force"] = 1;
  $this->Default["NodeType"] = NODE_TYPE_FREE;
  $this->Default["Size"] = 5;
  $this->Default["Shape"] = NODE_SHAPE_CIRCLE;
  $this->Default["FreeZone"] = 40;
  $this->Default["LinkR"] = 0;
  $this->Default["LinkG"] = 0;
  $this->Default["LinkB"] = 0;
  $this->Default["LinkAlpha"] = 0;
  $this->Labels["Type"] = LABEL_CLASSIC;
  $this->Labels["R"] = 0;
  $this->Labels["G"] = 0;
  $this->Labels["B"] = 0;
  $this->Labels["Alpha"] = 100;
  $this->AutoComputeFreeZone = FALSE;
}