/** * Copyright (c) 2006-2015, JGraph Ltd * Copyright (c) 2006-2015, Gaudenz Alder */ /** * Class: mxEllipse * * Extends to implement an ellipse shape. * This shape is registered under * in . * * Constructor: mxEllipse * * Constructs a new ellipse shape. * * Parameters: * * bounds - that defines the bounds. This is stored in * . * fill - String that defines the fill color. This is stored in . * stroke - String that defines the stroke color. This is stored in . * strokewidth - Optional integer that defines the stroke width. Default is * 1. This is stored in . */ function mxEllipse(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(mxEllipse, mxShape); /** * Function: paintVertexShape * * Paints the ellipse shape. */ mxEllipse.prototype.paintVertexShape = function(c, x, y, w, h) { c.ellipse(x, y, w, h); c.fillAndStroke(); };