Beispiel #1
0
 /**
  * Return dot element string representation
  *
  * @return string
  */
 public function __toString()
 {
     return sprintf('node[label=<%1$s%2$s>,tooltip="%6$s",height="0.6",shape="%5$s",style="filled",color="transparent",fillcolor="%3$s",fontcolor="%4$s"]{ state_%1$s };', $this->state, $this->buildFlags($this->flags, $this->style->getAltColor()), $this->style->getColor(), $this->style->getText(), $this->style->getStyle(), $this->comment);
 }
Beispiel #2
0
 /**
  * Return dot element string representation
  *
  * @return string
  */
 public function __toString()
 {
     return sprintf('edge[label=" %3$s",tooltip="%7$s",dir="forward",style="%6$s",color="%4$s",fontcolor="%5$s"] state_%1$s -> state_%2$s;', $this->fromState, $this->toState, $this->event . $this->buildTimeout(), $this->style->getColor(), $this->style->getText(), $this->style->getStyle(), $this->comment);
 }