From ccf09a72fbb820621b4deee3e0a07adeb6ba1328 Mon Sep 17 00:00:00 2001 From: Refik Hadzialic Date: Wed, 10 Aug 2011 19:01:01 +0200 Subject: Added new icons for the output result image generation. Changed the not complete output image --- .../pChart2.1.2/examples/example.writeBounds.php | 65 ++++++++++++++++----- .../pChart2.1.2/examples/newIcons/BTSIDK3.png | Bin 0 -> 8236 bytes .../pChart2.1.2/examples/newIcons/BTSNOK3.png | Bin 0 -> 7787 bytes .../pChart2.1.2/examples/newIcons/BTSOK3.png | Bin 0 -> 8273 bytes .../pChart2.1.2/examples/newIcons/NOK.png | Bin 0 -> 5750 bytes .../pChart2.1.2/examples/newIcons/OK.png | Bin 0 -> 5824 bytes .../examples/newIcons/externalCells.png | Bin 0 -> 15161 bytes .../pChart2.1.2/examples/newIcons/landline.png | Bin 0 -> 8778 bytes 8 files changed, 50 insertions(+), 15 deletions(-) create mode 100644 notFinishedCode/pChart2.1.2/examples/newIcons/BTSIDK3.png create mode 100644 notFinishedCode/pChart2.1.2/examples/newIcons/BTSNOK3.png create mode 100644 notFinishedCode/pChart2.1.2/examples/newIcons/BTSOK3.png create mode 100644 notFinishedCode/pChart2.1.2/examples/newIcons/NOK.png create mode 100644 notFinishedCode/pChart2.1.2/examples/newIcons/OK.png create mode 100644 notFinishedCode/pChart2.1.2/examples/newIcons/externalCells.png create mode 100644 notFinishedCode/pChart2.1.2/examples/newIcons/landline.png (limited to 'notFinishedCode/pChart2.1.2/examples') diff --git a/notFinishedCode/pChart2.1.2/examples/example.writeBounds.php b/notFinishedCode/pChart2.1.2/examples/example.writeBounds.php index 5e831a0..7e0af80 100644 --- a/notFinishedCode/pChart2.1.2/examples/example.writeBounds.php +++ b/notFinishedCode/pChart2.1.2/examples/example.writeBounds.php @@ -18,49 +18,84 @@ $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11)); $myPicture->drawText(30,400,"Network test results - UNIVERSITY OF FREIBURG",array("R"=>255,"G"=>255,"B"=>255,"FontSize"=>20,"Angle"=>90,"Align"=>TEXT_ALIGN_BOTTOMMIDDLE)); - // add some picture somewhere :) - /* Draw a PNG object */ - // x1, y1, x2, y2 - //line to landline - $myPicture->drawLine(430, 390,430,560,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1)); - $myPicture->drawFromPNG(400,550,"telephone.png"); + //Our university GSM system outlining! + $RectangleSettings = array("R"=>137,"G"=>202,"B"=>230,"Alpha"=>20); + $myPicture->drawFilledRectangle(63,10,245,590,$RectangleSettings); + // x1, y1, x2, y2 + //BTS1 - $myPicture->drawLine(180, 70,420,330,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1)); - $myPicture->drawFromPNG(160,60,"BTSCont.png"); + $myPicture->drawLine(220, 90,420,330,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1)); + $myPicture->drawFromPNG(180,60,"BTSCont.png"); + $myPicture->drawFromPNG(60,12,"newIcons/BTSOK3.png"); $myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6)); - $TextSettings = array("DrawBox"=>TRUE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10); + $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10); $myPicture->drawText(70,140,"BTS1 STATUS: OK",$TextSettings); //BTS2 - $myPicture->drawLine(190, 320, 420,350,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1)); - $myPicture->drawFromPNG(160,280,"BTSCont.png"); - $myPicture->drawFromPNG(110,300,"newIcons/BTSNOK1.png"); + $myPicture->drawLine(220, 320, 420,350,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1)); + $myPicture->drawFromPNG(180,280,"BTSCont.png"); + $myPicture->drawFromPNG(60,230,"newIcons/BTSNOK3.png"); $myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6)); - $TextSettings = array("DrawBox"=>TRUE,"R"=>255,"G"=>0,"B"=>0,"Angle"=>0,"FontSize"=>10); + $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>0,"B"=>0,"Angle"=>0,"FontSize"=>10); $myPicture->drawText(70,360,"BTS2 STATUS: NOT OK",$TextSettings); //BTS3 $myPicture->drawLine(200, 550,420,380,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1)); - $myPicture->drawFromPNG(160,500,"BTSCont.png"); + $myPicture->drawFromPNG(180,500,"BTSCont.png"); + $myPicture->drawFromPNG(60,450,"newIcons/BTSOK3.png"); $myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6)); - $TextSettings = array("DrawBox"=>TRUE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10); + $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10); $myPicture->drawText(70,580,"BTS3 STATUS: OK",$TextSettings); + + //landline system outlining! + $RectangleSettings = array("R"=>238,"G"=>243,"B"=>90,"Alpha"=>20); + $myPicture->drawFilledRectangle(340,480,530,615,$RectangleSettings); + //line to landline + $myPicture->drawLine(430, 390,430,520,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1)); + $myPicture->drawFromPNG(370,480,"newIcons/landline.png"); + + $myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6)); + $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10); + $myPicture->drawText(340,611,"LANDLINE STATUS: OK",$TextSettings); + + + + + //external system outlining! + $RectangleSettings = array("R"=>124,"G"=>229,"B"=>129,"Alpha"=>20); + $myPicture->drawFilledRectangle(320,10,540,160,$RectangleSettings); + //external cell network + $myPicture->drawLine(430, 60,430,300,array("R"=>0,"G"=>255,"B"=>0,"Ticks"=>8,"Weight"=>1)); + $myPicture->drawFromPNG(390,30,"newIcons/externalCells.png"); + + $myPicture->setFontProperties(array("FontName"=>"../fonts/verdana.ttf","FontSize"=>6)); + $TextSettings = array("DrawBox"=>FALSE,"R"=>255,"G"=>255,"B"=>255,"Angle"=>0,"FontSize"=>10); + $myPicture->drawText(324,40,"GSM EXTERNAL NETWORK: OK",$TextSettings); $myPicture->drawFromPNG(380,280,"server.png"); //$myPicture->writeLabel("Testing",0); + //are the subsystems completely OK + //GSM External modem + $myPicture->drawFromPNG(513,135,"newIcons/OK.png"); + //landline system + $myPicture->drawFromPNG(505,580,"newIcons/OK.png"); + //GSM Local network + $myPicture->drawFromPNG(220,560,"newIcons/NOK.png"); + + /* Render the picture (choose the best way) */ $myPicture->autoOutput("pictures/example.writeBounds.png"); diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/BTSIDK3.png b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSIDK3.png new file mode 100644 index 0000000..61e72af Binary files /dev/null and b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSIDK3.png differ diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/BTSNOK3.png b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSNOK3.png new file mode 100644 index 0000000..4dc38eb Binary files /dev/null and b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSNOK3.png differ diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/BTSOK3.png b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSOK3.png new file mode 100644 index 0000000..65c9e63 Binary files /dev/null and b/notFinishedCode/pChart2.1.2/examples/newIcons/BTSOK3.png differ diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/NOK.png b/notFinishedCode/pChart2.1.2/examples/newIcons/NOK.png new file mode 100644 index 0000000..f48d491 Binary files /dev/null and b/notFinishedCode/pChart2.1.2/examples/newIcons/NOK.png differ diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/OK.png b/notFinishedCode/pChart2.1.2/examples/newIcons/OK.png new file mode 100644 index 0000000..b83bd75 Binary files /dev/null and b/notFinishedCode/pChart2.1.2/examples/newIcons/OK.png differ diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/externalCells.png b/notFinishedCode/pChart2.1.2/examples/newIcons/externalCells.png new file mode 100644 index 0000000..b1235cf Binary files /dev/null and b/notFinishedCode/pChart2.1.2/examples/newIcons/externalCells.png differ diff --git a/notFinishedCode/pChart2.1.2/examples/newIcons/landline.png b/notFinishedCode/pChart2.1.2/examples/newIcons/landline.png new file mode 100644 index 0000000..1bc593c Binary files /dev/null and b/notFinishedCode/pChart2.1.2/examples/newIcons/landline.png differ -- cgit v1.2.3-55-g7522