GraffitiSuite Docs
Docs
Circle
Loading document parsing libraries...
# Circle Class Inherits Shape ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Constructor | center as GraffitiMap.Point <br> radius as Double | (None) | Creates a new instance of the class. | | Attributes | Hidden | toJavaScript | | | Attributes | Hidden | toJSON | | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | Attributes | mCenter | GraffitiMap.Point | | | Attributes | mRadius | Double | | | Center | GraffitiMap.Point | Nil | | | FillColor | Color | Nil | | | Radius | Double | Nil | | | StrokePosition | GraffitiMap.Shapes.StrokePositions | Nil | | ## Examples ### Sample Circle ``` var circleCenter as new GraffitiMap.Point( 41.878, -87.629 ) var chicago as new GraffitiMap.Shapes.Circle( circleCenter, 50000 ) '// Radius value in meters chicago.Editable = True chicago.Draggable = True chicago.Tooltip = "Chicago<br />Home of Da Bears" chicago.FillColor = Color.RGB( 255, 0, 255, 100 ) chicago.StrokeColor = Color.RGB( 255, 0, 255, 200 ) chicago.StrokeWeight = 2 me.AddShape( chicago ) ```