Class HandleRenderer
Renderer used to render the handle.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class HandleRenderer : IDisposable
Constructors
HandleRenderer()
Initializes a new instance of the HandleRenderer class.
Declaration
public HandleRenderer()
Properties
HandleColor
Gets or sets the color of the handle.
Declaration
public Color HandleColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color | The color of the handle. |
HandleDisabledColor
Gets or sets the color of the handle disabled.
Declaration
public Color HandleDisabledColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color | The color of the handle disabled. |
HandleOutlineColor
Gets or sets the color of the handle outline.
Declaration
public Color HandleOutlineColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color | The color of the handle outline. |
Methods
CreateParentMatrix(Node)
Creates the parent matrix.
Declaration
public Matrix CreateParentMatrix(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | The node. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.Matrix | The matrix. |
Dispose()
Declaration
public virtual void Dispose()
DrawEndPoint(Graphics, EndPoint, PointF)
Draw endPoint handle in specific position.
Declaration
public void DrawEndPoint(Graphics gfx, EndPoint endPoint, PointF ptPosition)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
EndPoint | endPoint | EndPoint handle. |
System.Drawing.PointF | ptPosition | EndPoint position. |
DrawEndPoints(Graphics, Node)
Draws the end points.
Declaration
public void DrawEndPoints(Graphics gfx, Node endPointContainer)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
Node | endPointContainer | The end point container. |
DrawPinPoint(Graphics, Node)
Draws the pin point.
Declaration
public void DrawPinPoint(Graphics gfx, Node node)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The graphics. |
Node | node | The node. |
DrawRotationHandle(Graphics, Node)
Draws the rotation handle.
Declaration
public void DrawRotationHandle(Graphics gfx, Node node)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The graphics. |
Node | node | The node. |
DrawRotationHandles(Graphics, Node)
Draws the rotation handles.
Declaration
public void DrawRotationHandles(Graphics gfx, Node node)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The graphics. |
Node | node | The node. |
DrawSelectionHandles(Graphics, Node)
Draws the selection handles.
Declaration
public void DrawSelectionHandles(Graphics gfx, Node node)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The graphics. |
Node | node | The node. |
DrawSelectionHandles(Graphics, Node, Boolean)
Draws the selection handles.
Declaration
public void DrawSelectionHandles(Graphics gfx, Node node, bool bWithoutRotation)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The graphics. |
Node | node | The node. |
System.Boolean | bWithoutRotation | if set to |
DrawSelectionHandles(Graphics, Node, RectangleF, Matrix, Boolean)
Renders selection/resize handles. Override this method to change appearance and positioning of selection/resize handles.
Declaration
public void DrawSelectionHandles(Graphics gfx, Node node, RectangleF rcBoundary, Matrix mtxTransform, bool bWithoutRotation)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The graphics. |
Node | node | The node. |
System.Drawing.RectangleF | rcBoundary | Rectangle which has all node elements (ports, labels, etc). |
System.Drawing.Drawing2D.Matrix | mtxTransform | Transformation matrix |
System.Boolean | bWithoutRotation | if set to |
DrawVertexHandle(Graphics, Brush, Pen, PointF)
Draws the vertex handle.
Declaration
public static void DrawVertexHandle(Graphics gfx, Brush brushVertextFill, Pen penVertexOutline, PointF ptHandle)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The graphics. |
System.Drawing.Brush | brushVertextFill | Brush used to fill vertex interior. |
System.Drawing.Pen | penVertexOutline | Pen used to draw vertex outline. |
System.Drawing.PointF | ptHandle | The rect handle. |
DrawVertexHandles(Graphics, PathNode)
Draws the vertex handles.
Declaration
public void DrawVertexHandles(Graphics gfx, PathNode node)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The graphics. |
PathNode | node | The node. |
GetBoundingRect(NodeCollection)
Gets the bounding rect.
Declaration
public Rectangle GetBoundingRect(NodeCollection nodes)
Parameters
Type | Name | Description |
---|---|---|
NodeCollection | nodes | The nodes. |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | The bounding rect. |
GetHandlePosition(BoxPosition, Node)
Gets the handle position.
Declaration
public PointF GetHandlePosition(BoxPosition handle, Node node)
Parameters
Type | Name | Description |
---|---|---|
BoxPosition | handle | The handle. |
Node | node | The node. |
Returns
Type | Description |
---|---|
System.Drawing.PointF | The point |
GetHandlePosition(BoxPosition, RectangleF)
Gets the handle position.
Declaration
public PointF GetHandlePosition(BoxPosition handle, RectangleF nodeBounds)
Parameters
Type | Name | Description |
---|---|---|
BoxPosition | handle | The handle. |
System.Drawing.RectangleF | nodeBounds | The node bounds. |
Returns
Type | Description |
---|---|
System.Drawing.PointF | The handle position. |
OutlineBoundingRectangle(Graphics, Node)
Outlines the bounding rectangle.
Declaration
public void OutlineBoundingRectangle(Graphics gfx, Node node)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
Node | node | The node. |
OutlineBoundingRectangle(Graphics, Node, Boolean)
Outlines the bounding rectangle.
Declaration
public void OutlineBoundingRectangle(Graphics gfx, Node node, bool bWithoutRotation)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
Node | node | The node. |
System.Boolean | bWithoutRotation | if set to |
OutlineBoundingRectangle(Graphics, RectangleF, Matrix)
Outlines the bounding rectangle.
Declaration
public void OutlineBoundingRectangle(Graphics gfx, RectangleF rcBoundingRectangle, Matrix mtxTransfrom)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
System.Drawing.RectangleF | rcBoundingRectangle | The bounding rectangle. |
System.Drawing.Drawing2D.Matrix | mtxTransfrom | Matrix transformations. |
OutlineSegmentsLine(Graphics, PathNode)
Outlines the segments line.
Declaration
public void OutlineSegmentsLine(Graphics gfx, PathNode node)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
PathNode | node | The node. |
Render(Graphics, HandleEditMode, Node)
General rendering method. Override this method to fully change handles rendering.
Declaration
public virtual void Render(Graphics grfx, HandleEditMode handleEditMode, Node node)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | grfx | Graphics to draw on. |
HandleEditMode | handleEditMode | The handle edit mode. |
Node | node | The node. |