You are here

function pSpring::linkProperties in Visitors 7

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

File

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

Class

pSpring

Code

function linkProperties($FromNode, $ToNode, $Settings) {
  if (!isset($this->Data[$FromNode])) {
    return 0;
  }
  if (!isset($this->Data[$ToNode])) {
    return 0;
  }
  $R = isset($Settings["R"]) ? $Settings["R"] : 0;
  $G = isset($Settings["G"]) ? $Settings["G"] : 0;
  $B = isset($Settings["B"]) ? $Settings["B"] : 0;
  $Alpha = isset($Settings["Alpha"]) ? $Settings["Alpha"] : 100;
  $Name = isset($Settings["Name"]) ? $Settings["Name"] : NULL;
  $Ticks = isset($Settings["Ticks"]) ? $Settings["Ticks"] : NULL;
  $this->Links[$FromNode][$ToNode]["R"] = $R;
  $this->Links[$ToNode][$FromNode]["R"] = $R;
  $this->Links[$FromNode][$ToNode]["G"] = $G;
  $this->Links[$ToNode][$FromNode]["G"] = $G;
  $this->Links[$FromNode][$ToNode]["B"] = $B;
  $this->Links[$ToNode][$FromNode]["B"] = $B;
  $this->Links[$FromNode][$ToNode]["Alpha"] = $Alpha;
  $this->Links[$ToNode][$FromNode]["Alpha"] = $Alpha;
  $this->Links[$FromNode][$ToNode]["Name"] = $Name;
  $this->Links[$ToNode][$FromNode]["Name"] = $Name;
  $this->Links[$FromNode][$ToNode]["Ticks"] = $Ticks;
  $this->Links[$ToNode][$FromNode]["Ticks"] = $Ticks;
}