# wx.lib.floatcanvas.FCObjects.Point¶

A point DrawObject

Note

The Bounding box is just the point, and doesn’t include the Diameter.

The HitLineWidth is used as diameter for the Hit Test.

## Class Hierarchy¶

Inheritance diagram for class Point:

## Methods Summary¶

 __init__ Default class constructor. SetDiameter Set the diameter of the object.

## Class API¶

class Point(XYObjectMixin, ColorOnlyMixin, DrawObject)

A point DrawObject

Note

The Bounding box is just the point, and doesn’t include the Diameter.

The HitLineWidth is used as diameter for the Hit Test.

### Methods¶

__init__(self, XY, Color="Black", Diameter=1, InForeground=False)

Default class constructor.

Parameters
• XY – the (x, y) coordinate of the center of the point, or a 2-tuple, or a (2,) NumPy array

• Color – see SetColor

• Diameter (integer) – in screen points

• InForeground – define if object is in foreground

SetDiameter(self, Diameter)

Set the diameter of the object.

Parameters

Diameter (integer) – in screen points