You are here

function pSpring::setNodeDefaults in Visitors 7

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

File

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

Class

pSpring

Code

function setNodeDefaults($Settings = "") {
  if (isset($Settings["R"])) {
    $this->Default["R"] = $Settings["R"];
  }
  if (isset($Settings["G"])) {
    $this->Default["G"] = $Settings["G"];
  }
  if (isset($Settings["B"])) {
    $this->Default["B"] = $Settings["B"];
  }
  if (isset($Settings["Alpha"])) {
    $this->Default["Alpha"] = $Settings["Alpha"];
  }
  if (isset($Settings["BorderR"])) {
    $this->Default["BorderR"] = $Settings["BorderR"];
  }
  if (isset($Settings["BorderG"])) {
    $this->Default["BorderG"] = $Settings["BorderG"];
  }
  if (isset($Settings["BorderB"])) {
    $this->Default["BorderB"] = $Settings["BorderB"];
  }
  if (isset($Settings["BorderAlpha"])) {
    $this->Default["BorderAlpha"] = $Settings["BorderAlpha"];
  }
  if (isset($Settings["Surrounding"])) {
    $this->Default["Surrounding"] = $Settings["Surrounding"];
  }
  if (isset($Settings["BackgroundR"])) {
    $this->Default["BackgroundR"] = $Settings["BackgroundR"];
  }
  if (isset($Settings["BackgroundG"])) {
    $this->Default["BackgroundG"] = $Settings["BackgroundG"];
  }
  if (isset($Settings["BackgroundB"])) {
    $this->Default["BackgroundB"] = $Settings["BackgroundB"];
  }
  if (isset($Settings["BackgroundAlpha"])) {
    $this->Default["BackgroundAlpha"] = $Settings["BackgroundAlpha"];
  }
  if (isset($Settings["NodeType"])) {
    $this->Default["NodeType"] = $Settings["NodeType"];
  }
  if (isset($Settings["Size"])) {
    $this->Default["Size"] = $Settings["Size"];
  }
  if (isset($Settings["Shape"])) {
    $this->Default["Shape"] = $Settings["Shape"];
  }
  if (isset($Settings["FreeZone"])) {
    $this->Default["FreeZone"] = $Settings["FreeZone"];
  }
}