IDrawingService
The service handling the drawing of geometry on the surface.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public interface IDrawingService
Derived Classes:
Properties
Gets the active shape.
IGeometryShape ActiveShape { get; }
AnchorPoints
IEnumerable<Point>
Gets the anchor points.
IEnumerable<Point> AnchorPoints { get; }
ControlPoints
IEnumerable<Point>
Gets the control points.
IEnumerable<Point> ControlPoints { get; }
Methods
Clears the points.
void ClearPoints()
Completes the draw.
void CompleteDraw()
Creates the DrawCommand that sets the new state of the Shape or reverts the old state.
DrawCommand CreateDrawCommand(IGeometryShape shape, DrawingState oldState, DrawingState newState, bool isComplete, bool isUndoable, DrawingShapeInfo shapeInfo)
Create geometry for the Path Handles in Path Tool.
Geometry CreateHandlesGeometry(Point startPoint, Point endPoint, FillRule fillRule)
Geometry
Creates Geometry for a shape from a given DrawingToolSegments.
Geometry CreateShapeGeometry(IEnumerable<DrawingToolSegment> segments, DrawingShapeInfo shapeInfo)
Geometry
Initializes draw action.
void InitializeDraw(IGeometryShape activeShape, string toolName)
The active shape.
toolNamestringThe name of the current tool.
Removes the last anchor point.
void RemoveLastAnchorPoint()
Removes the last control point.
void RemoveLastControlPoint()
Sets the state.
void SetState(IGeometryShape shape, IEnumerable<Point> anchorPoints, IEnumerable<Point> controlPoints)
The shape.
anchorPointsIEnumerable<Point>The anchor points.
controlPointsIEnumerable<Point>The control points.
Starts the draw.
void StartDraw()
Events
Occurs when drawing.
event EventHandler<DrawingEventArgs> Drawing