| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675 |
- /**
- * $Id: mxF5.js,v 1.0 2018/05/03 13:10:37 mate Exp $
- * Copyright (c) 2006-2018, JGraph Ltd
- */
- //**********************************************************************************************************************************************************
- //Big-IP 1600
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp1600(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp1600, mxShape);
- mxRackF5BigIp1600.prototype.cst =
- {
- SHAPE_BIG_IP_1600 : 'mxgraph.rackF5Shapes.big_ip_1600'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp1600.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp1600.prototype.cst.SHAPE_BIG_IP_1600, mxRackF5BigIp1600);
- //**********************************************************************************************************************************************************
- //Big-IP 2x00
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp2x00(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp2x00, mxShape);
- mxRackF5BigIp2x00.prototype.cst =
- {
- SHAPE_BIG_IP_2x00 : 'mxgraph.rackF5Shapes.big_ip_2x00'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp2x00.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_2x00_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp2x00.prototype.cst.SHAPE_BIG_IP_2x00, mxRackF5BigIp2x00);
- //**********************************************************************************************************************************************************
- //Big-IP 3600
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp3600(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp3600, mxShape);
- mxRackF5BigIp3600.prototype.cst =
- {
- SHAPE_BIG_IP_3600 : 'mxgraph.rackF5Shapes.big_ip_3600'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp3600.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_3600_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp3600.prototype.cst.SHAPE_BIG_IP_3600, mxRackF5BigIp3600);
- //**********************************************************************************************************************************************************
- //Big-IP 3900
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp3900(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp3900, mxShape);
- mxRackF5BigIp3900.prototype.cst =
- {
- SHAPE_BIG_IP_3900 : 'mxgraph.rackF5Shapes.big_ip_3900'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp3900.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_3900_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp3900.prototype.cst.SHAPE_BIG_IP_3900, mxRackF5BigIp3900);
- //**********************************************************************************************************************************************************
- //Big-IP 4x00
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp4x00(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp4x00, mxShape);
- mxRackF5BigIp4x00.prototype.cst =
- {
- SHAPE_BIG_IP_4x00 : 'mxgraph.rackF5Shapes.big_ip_4x00'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp4x00.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_4x00_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp4x00.prototype.cst.SHAPE_BIG_IP_4x00, mxRackF5BigIp4x00);
- //**********************************************************************************************************************************************************
- //Big-IP 5x00
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp5x00(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp5x00, mxShape);
- mxRackF5BigIp5x00.prototype.cst =
- {
- SHAPE_BIG_IP_5x00 : 'mxgraph.rackF5Shapes.big_ip_5x00'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp5x00.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_5x00_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp5x00.prototype.cst.SHAPE_BIG_IP_5x00, mxRackF5BigIp5x00);
- //**********************************************************************************************************************************************************
- //EM 4000
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5Em4000(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5Em4000, mxShape);
- mxRackF5Em4000.prototype.cst =
- {
- SHAPE_EM_4000 : 'mxgraph.rackF5Shapes.em4000'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5Em4000.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'em_4000_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5Em4000.prototype.cst.SHAPE_EM_4000, mxRackF5Em4000);
- //**********************************************************************************************************************************************************
- //Big-IP 6900
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp6900(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp6900, mxShape);
- mxRackF5BigIp6900.prototype.cst =
- {
- SHAPE_BIG_IP_6900 : 'mxgraph.rackF5Shapes.big_ip_6900'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp6900.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_6900_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_6900_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_6900_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_6900_back.png', 0, 0, 0);
-
- if (isDC)
- {
- c.image(w * 0.046, h * 0.025, w * 0.176, h * 0.48, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- c.image(w * 0.227, h * 0.025, w * 0.176, h * 0.48, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp6900.prototype.cst.SHAPE_BIG_IP_6900, mxRackF5BigIp6900);
- //**********************************************************************************************************************************************************
- //Big-IP 89x0
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp89x0(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp89x0, mxShape);
- mxRackF5BigIp89x0.prototype.cst =
- {
- SHAPE_BIG_IP_89x0 : 'mxgraph.rackF5Shapes.big_ip_89x0'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp89x0.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_6900_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_6900_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_89x0_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_6900_back.png', 0, 0, 0);
-
- if (isDC)
- {
- c.image(w * 0.046, h * 0.025, w * 0.176, h * 0.48, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- c.image(w * 0.227, h * 0.025, w * 0.176, h * 0.48, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp89x0.prototype.cst.SHAPE_BIG_IP_89x0, mxRackF5BigIp89x0);
- //**********************************************************************************************************************************************************
- //Big-IP 7x00
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp7x00(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp7x00, mxShape);
- mxRackF5BigIp7x00.prototype.cst =
- {
- SHAPE_BIG_IP_7x00 : 'mxgraph.rackF5Shapes.big_ip_7x00'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp7x00.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_6900_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_6900_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_7x00_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_6900_back.png', 0, 0, 0);
-
- if (isDC)
- {
- c.image(w * 0.046, h * 0.025, w * 0.176, h * 0.48, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- c.image(w * 0.227, h * 0.025, w * 0.176, h * 0.48, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp7x00.prototype.cst.SHAPE_BIG_IP_7x00, mxRackF5BigIp7x00);
- //**********************************************************************************************************************************************************
- //Big-IP 10x00
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp10x00(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp10x00, mxShape);
- mxRackF5BigIp10x00.prototype.cst =
- {
- SHAPE_BIG_IP_10x00 : 'mxgraph.rackF5Shapes.big_ip_10x00'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp10x00.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_6900_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_6900_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_10x00_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_6900_back.png', 0, 0, 0);
-
- if (isDC)
- {
- c.image(w * 0.046, h * 0.025, w * 0.176, h * 0.48, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- c.image(w * 0.227, h * 0.025, w * 0.176, h * 0.48, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp10x00.prototype.cst.SHAPE_BIG_IP_10x00, mxRackF5BigIp10x00);
- //**********************************************************************************************************************************************************
- //Big-IP 110x0
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIp110x0(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIp110x0, mxShape);
- mxRackF5BigIp110x0.prototype.cst =
- {
- SHAPE_BIG_IP_110x0 : 'mxgraph.rackF5Shapes.big_ip_110x0'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIp110x0.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, h * 0.33, w * 0.04, h * 0.67, stencilPath + 'big_ip_6900_ear.png', 0, 0, 0);
- c.image(w * 0.96, h * 0.33, w * 0.04, h * 0.67, stencilPath + 'big_ip_6900_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_110x0_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_110x0_back.png', 0, 0, 0);
-
- if (isDC)
- {
- c.image(w * 0.085, h * 0.025, w * 0.177, h * 0.31, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- c.image(w * 0.271, h * 0.025, w * 0.179, h * 0.31, stencilPath + 'big_ip_6900_dc.png', 0, 0, 0);
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIp110x0.prototype.cst.SHAPE_BIG_IP_110x0, mxRackF5BigIp110x0);
- //**********************************************************************************************************************************************************
- //Viprion 2400
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5Viprion2400(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5Viprion2400, mxShape);
- mxRackF5Viprion2400.prototype.cst =
- {
- SHAPE_VIPRION_2400 : 'mxgraph.rackF5Shapes.viprion_2400'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5Viprion2400.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var bladeNum = parseInt(mxUtils.getValue(this.style, 'bladeNum', '4'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'viprion_2400_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'viprion_2400_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'viprion_2400_front.png', 0, 0, 0);
-
- if (isDC)
- {
- c.image(w * 0.178, h * 0.025, w * 0.301, h * 0.273, stencilPath + 'viprion_2400_dc.png', 0, 0, 0);
- c.image(w * 0.52, h * 0.025, w * 0.301, h * 0.273, stencilPath + 'viprion_2400_dc.png', 0, 0, 0);
- }
- if (bladeNum >= 1)
- {
- c.image(w * 0.052, h * 0.337, w * 0.45, h * 0.29, stencilPath + 'viprion_2400_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 2)
- {
- c.image(w * 0.495, h * 0.337, w * 0.45, h * 0.29, stencilPath + 'viprion_2400_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 3)
- {
- c.image(w * 0.052, h * 0.655, w * 0.45, h * 0.29, stencilPath + 'viprion_2400_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 4)
- {
- c.image(w * 0.495, h * 0.655, w * 0.45, h * 0.29, stencilPath + 'viprion_2400_blade.png', 0, 0, 0);
- }
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'viprion_2400_back.png', 0, 0, 0);
- }
- };
- mxCellRenderer.registerShape(mxRackF5Viprion2400.prototype.cst.SHAPE_VIPRION_2400, mxRackF5Viprion2400);
- //**********************************************************************************************************************************************************
- //Viprion 4400
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5Viprion4400(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5Viprion4400, mxShape);
- mxRackF5Viprion4400.prototype.cst =
- {
- SHAPE_VIPRION_4400 : 'mxgraph.rackF5Shapes.viprion_4400'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5Viprion4400.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var hasMask = mxUtils.getValue(this.style, 'hasMask', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var bladeType = mxUtils.getValue(this.style, 'bladeType', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var bladeNum = parseInt(mxUtils.getValue(this.style, 'bladeNum', '0'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'viprion_4400_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'viprion_4400_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'viprion_4400_front_chassis.png', 0, 0, 0);
-
- if (hasMask)
- {
- c.image(w * 0.033, h * 0.005, w * 0.934, h * 0.282, stencilPath + 'viprion_4400_front.png', 0, 0, 0);
- }
-
- var bladeStr = stencilPath + 'viprion_4400_pb100_blade.png';
-
- if (bladeType == 1)
- {
- bladeStr = stencilPath + 'viprion_4400_pb200_blade.png';
- }
- else if (bladeType == 2)
- {
- bladeStr = stencilPath + 'viprion_4400_b4300_blade.png';
- }
-
-
- if (bladeNum >= 1)
- {
- c.image(w * 0.182, h * 0.3, w * 0.74, h * 0.145, bladeStr, 0, 0, 0);
- }
- if (bladeNum >= 2)
- {
- c.image(w * 0.182, h * 0.462, w * 0.74, h * 0.145, bladeStr, 0, 0, 0);
- }
- if (bladeNum >= 3)
- {
- c.image(w * 0.182, h * 0.625, w * 0.74, h * 0.145, bladeStr, 0, 0, 0);
- }
- if (bladeNum >= 4)
- {
- c.image(w * 0.182, h * 0.788, w * 0.74, h * 0.145, bladeStr, 0, 0, 0);
- }
- }
- else
- {
- if (isDC)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'viprion_4400_back_dc.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'viprion_4400_back_ac.png', 0, 0, 0);
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5Viprion4400.prototype.cst.SHAPE_VIPRION_4400, mxRackF5Viprion4400);
- //**********************************************************************************************************************************************************
- //Viprion 4800
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5Viprion4800(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5Viprion4800, mxShape);
- mxRackF5Viprion4800.prototype.cst =
- {
- SHAPE_VIPRION_4800 : 'mxgraph.rackF5Shapes.viprion_4800'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5Viprion4800.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var bladeNum = parseInt(mxUtils.getValue(this.style, 'bladeNum', '0'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, h * 0.09, w * 0.04, h * 0.8, stencilPath + 'viprion_4800_ear.png', 0, 0, 0);
- c.image(w * 0.96, h * 0.09, w * 0.04, h * 0.8, stencilPath + 'viprion_4800_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'viprion_4800_front.png', 0, 0, 0);
-
-
- if (bladeNum >= 1)
- {
- c.image(w * 0.075, h * 0.245, w * 0.104, h * 0.516, stencilPath + 'viprion_4800_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 2)
- {
- c.image(w * 0.182, h * 0.245, w * 0.104, h * 0.516, stencilPath + 'viprion_4800_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 3)
- {
- c.image(w * 0.289, h * 0.245, w * 0.104, h * 0.516, stencilPath + 'viprion_4800_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 4)
- {
- c.image(w * 0.396, h * 0.245, w * 0.104, h * 0.516, stencilPath + 'viprion_4800_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 5)
- {
- c.image(w * 0.503, h * 0.245, w * 0.104, h * 0.516, stencilPath + 'viprion_4800_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 6)
- {
- c.image(w * 0.61, h * 0.245, w * 0.104, h * 0.516, stencilPath + 'viprion_4800_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 7)
- {
- c.image(w * 0.717, h * 0.245, w * 0.104, h * 0.516, stencilPath + 'viprion_4800_blade.png', 0, 0, 0);
- }
- if (bladeNum >= 8)
- {
- c.image(w * 0.824, h * 0.245, w * 0.104, h * 0.516, stencilPath + 'viprion_4800_blade.png', 0, 0, 0);
- }
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'viprion_4800_back.png', 0, 0, 0);
- }
- };
- mxCellRenderer.registerShape(mxRackF5Viprion4800.prototype.cst.SHAPE_VIPRION_4800, mxRackF5Viprion4800);
- //**********************************************************************************************************************************************************
- //Big-IP i2000
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIpi2000(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIpi2000, mxShape);
- mxRackF5BigIpi2000.prototype.cst =
- {
- SHAPE_BIG_IP_I2000 : 'mxgraph.rackF5Shapes.big_ip_i2000'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIpi2000.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_i2000_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIpi2000.prototype.cst.SHAPE_BIG_IP_I2000, mxRackF5BigIpi2000);
- //**********************************************************************************************************************************************************
- //Big-IP i4000
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIpi4000(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIpi4000, mxShape);
- mxRackF5BigIpi4000.prototype.cst =
- {
- SHAPE_BIG_IP_I4000 : 'mxgraph.rackF5Shapes.big_ip_i4000'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIpi4000.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_i4000_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIpi4000.prototype.cst.SHAPE_BIG_IP_I4000, mxRackF5BigIpi4000);
- //**********************************************************************************************************************************************************
- //Big-IP i5000
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIpi5000(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIpi5000, mxShape);
- mxRackF5BigIpi5000.prototype.cst =
- {
- SHAPE_BIG_IP_I5000 : 'mxgraph.rackF5Shapes.big_ip_i5000'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIpi5000.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_i5000_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIpi5000.prototype.cst.SHAPE_BIG_IP_I5000, mxRackF5BigIpi5000);
- //**********************************************************************************************************************************************************
- //Big-IP i7000
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIpi7000(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIpi7000, mxShape);
- mxRackF5BigIpi7000.prototype.cst =
- {
- SHAPE_BIG_IP_I7000 : 'mxgraph.rackF5Shapes.big_ip_i7000'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIpi7000.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_i7000_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIpi7000.prototype.cst.SHAPE_BIG_IP_I7000, mxRackF5BigIpi7000);
- //**********************************************************************************************************************************************************
- //Big-IP i10000
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxRackF5BigIpi10000(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxRackF5BigIpi10000, mxShape);
- mxRackF5BigIpi10000.prototype.cst =
- {
- SHAPE_BIG_IP_I10000 : 'mxgraph.rackF5Shapes.big_ip_i10000'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxRackF5BigIpi10000.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var hasEars = mxUtils.getValue(this.style, 'hasEars', '1');
- var isFront = mxUtils.getValue(this.style, 'isFront', '0');
- var isDC = mxUtils.getValue(this.style, 'isDC', '0');
- var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2'));
- var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/');
- if (hasEars)
- {
- c.image(0, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 0, 0);
- c.image(w * 0.96, 0, w * 0.04, h, stencilPath + 'big_ip_5x00_ear.png', 0, 1, 0);
- }
-
- if (isFront)
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_i10000_front.png', 0, 0, 0);
- }
- else
- {
- c.image(w * 0.04, 0, w * 0.92, h, stencilPath + 'big_ip_1600_back.png', 0, 0, 0);
-
- if (isDC)
- {
- if (psNum >= '1')
- {
- c.image(w * 0.425, h * 0.05, w * 0.244, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
-
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_dc.png', 0, 0, 0);
- }
- }
- else
- {
- if (psNum >= '2')
- {
- c.image(w * 0.672, h * 0.05, w * 0.245, h * 0.92, stencilPath + 'big_ip_4x00_ac.png', 0, 0, 0);
- }
- }
- }
- };
- mxCellRenderer.registerShape(mxRackF5BigIpi10000.prototype.cst.SHAPE_BIG_IP_I10000, mxRackF5BigIpi10000);
- /**
- * Order is relevant. Do not move to start of file!
- */
- Draw.loadPlugin(function(ui)
- {
- // Avoids having to bind all functions to "this"
- var sb = ui.sidebar;
- // Skips adding sidebar entries in lightbox
- if (sb == null)
- {
- return;
- }
- var stencilPath = "path=https://jgraph.github.io/drawio-libs/libs/f5/;";
-
- // Default tags
- var dt = 'rack f5 network ';
-
- var fns = [
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_1600;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP 1600', null, null, dt + 'big ip 1600'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_1600;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP 1600', null, null, dt + 'big ip 1600'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_2x00;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP 2x00', null, null, dt + 'big ip 2x00'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_2x00;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP 2x00', null, null, dt + 'big ip 2x00'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_3600;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP 3600', null, null, dt + 'big ip 3600'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_3600;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP 3600', null, null, dt + 'big ip 3600'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_3900;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP 3900', null, null, dt + 'big ip 3900'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_3900;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP 3900', null, null, dt + 'big ip 3900'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_4x00;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP 4x00', null, null, dt + 'big ip 4x00'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_4x00;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP 4x00', null, null, dt + 'big ip 4x00'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_5x00;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP 5x00', null, null, dt + 'big ip 5x00'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_5x00;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP 5x00', null, null, dt + 'big ip 5x00'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.em4000;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'EM 4000', null, null, dt + 'em 4000'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.em4000;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'EM 4000', null, null, dt + 'em 4000'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_6900;hasEars=0;isFront=1;isDC=0;',
- 168, 32, '', 'Big-IP 6900', null, null, dt + 'big ip 6900'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_6900;hasEars=1;isFront=0;isDC=1;',
- 168, 32, '', 'Big-IP 6900', null, null, dt + 'big ip 6900'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_89x0;hasEars=0;isFront=1;isDC=0;',
- 168, 32, '', 'Big-IP 89x0', null, null, dt + 'big ip 89x0'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_6900;hasEars=1;isFront=0;isDC=1;',
- 168, 32, '', 'Big-IP 89x0', null, null, dt + 'big ip 89x0'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_7x00;hasEars=0;isFront=1;isDC=0;',
- 168, 32, '', 'Big-IP 7x00', null, null, dt + 'big ip 7x00'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_7x00;hasEars=1;isFront=0;isDC=1;',
- 168, 32, '', 'Big-IP 7x00', null, null, dt + 'big ip 7x00'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_10x00;hasEars=0;isFront=1;isDC=0;',
- 168, 32, '', 'Big-IP 10x00', null, null, dt + 'big ip 10x00'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_10x00;hasEars=1;isFront=0;isDC=1;',
- 168, 32, '', 'Big-IP 10x00', null, null, dt + 'big ip 10x00'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_110x0;hasEars=0;isFront=1;isDC=0;',
- 168, 48, '', 'Big-IP 110x0', null, null, dt + 'big ip 110x0'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_110x0;hasEars=1;isFront=0;isDC=1;',
- 168, 48, '', 'Big-IP 110x0', null, null, dt + 'big ip 110x0'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.viprion_2400;hasEars=0;isFront=1;isDC=1;bladeNum=4;',
- 168, 64, '', 'VIPRION 2400', null, null, dt + 'viprion 2400'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.viprion_2400;hasEars=1;isFront=0;isDC=0;bladeNum=4;',
- 168, 64, '', 'VIPRION 2400', null, null, dt + 'viprion 2400'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.viprion_4400;hasMask=1;bladeType=0;hasEars=0;isFront=1;isDC=1;bladeNum=4;',
- 168, 112, '', 'VIPRION 4400', null, null, dt + 'viprion 4400'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.viprion_4400;hasMask=1;bladeType=0;hasEars=1;isFront=0;isDC=0;bladeNum=4;',
- 168, 112, '', 'VIPRION 4400', null, null, dt + 'viprion 4400'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.viprion_4800;hasEars=1;isFront=1;bladeNum=8;',
- 168, 224, '', 'VIPRION 4800', null, null, dt + 'viprion 4800'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.viprion_4800;hasEars=0;isFront=0;bladeNum=8;',
- 168, 224, '', 'VIPRION 4800', null, null, dt + 'viprion 4800'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i2000;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP i2000', null, null, dt + 'big ip i2000'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i2000;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP i2000', null, null, dt + 'big ip i2000'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i4000;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP i4000', null, null, dt + 'big ip i4000'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i4000;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP i4000', null, null, dt + 'big ip i4000'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i5000;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP i5000', null, null, dt + 'big ip i5000'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i5000;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP i5000', null, null, dt + 'big ip i5000'),
-
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i7000;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP i7000', null, null, dt + 'big ip i7000'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i7000;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP i7000', null, null, dt + 'big ip i7000'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i10000;hasEars=0;isFront=1;isDC=0;psNum=1;',
- 168, 16, '', 'Big-IP i10000', null, null, dt + 'big ip i10000'),
- sb.createVertexTemplateEntry(stencilPath + 'shape=mxgraph.rackF5Shapes.big_ip_i10000;hasEars=1;isFront=0;isDC=1;psNum=2;',
- 168, 16, '', 'Big-IP i10000', null, null, dt + 'big ip i10000')
- ];
- ui.sidebar.addPaletteFunctions('rackF5Shapes', 'Rack / F5 v2', true, fns);
- // Collapses default sidebar entry and inserts this before
- var c = ui.sidebar.container;
- c.firstChild.click();
- c.insertBefore(c.lastChild, c.firstChild);
- c.insertBefore(c.lastChild, c.firstChild);
- });
|