public class PointSelectionIndicatorInstaller extends Object implements ISelectionIndicatorInstaller
ISelectionIndicatorInstaller
implementation that draws an ellipse centered at a given point in world
coordinate space.Constructor and Description |
---|
PointSelectionIndicatorInstaller(IPoint point)
Creates a new instance that indicates a point.
|
Modifier and Type | Method and Description |
---|---|
ICanvasObject |
addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item)
This the main method of the interface that performs the installation of an item's visual representation in the
canvas
by adding ICanvasObject s. |
protected IPoint |
getCenterPoint(Object userObject)
Factory method that retrieves the center for a given user object.
|
Paint |
getPaint()
Gets the brush to use for filling the point's ellipse in the view coordinate system.
|
Pen |
getPen()
Gets the pen to use for drawing the point in the view coordinate system.
|
void |
setPaint(Paint value)
Sets the brush to use for filling the point's ellipse in the view coordinate system.
|
void |
setPen(Pen value)
Sets the pen to use for drawing the point in the view coordinate system.
|
public PointSelectionIndicatorInstaller(IPoint point)
point
- The point to use for the center of the painting.public final ICanvasObject addCanvasObject(ICanvasContext context, ICanvasObjectGroup group, Object item)
ICanvasObjectInstaller
canvas
by adding ICanvasObject
s.addCanvasObject
in interface ICanvasObjectInstaller
context
- The context that contains the information required to install the visual representation.group
- The canvas object group to add the newly generated ICanvasObject
to.item
- The item to install.ICanvasObject
for the item's visual representation. null
if nothing was installed.protected IPoint getCenterPoint(Object userObject)
This implementation simply returns the value provided to the constructor.
public final Paint getPaint()
setPaint(Paint)
public final Pen getPen()
setPen(Pen)
public final void setPaint(Paint value)
value
- The Paint to set.getPaint()