Search
ShapeNode.getCustomDraw Method
See Also
 

Gets a value indicating what type of custom drawing to perform on a node.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public CustomDraw getCustomDraw ()

 Return Value

A member of the CustomDraw enumeration.

 Remarks

This property allows invoking custom painting code for a shape node. That code must execute in response to the drawNode event. There are several modes of custom painting, allowing the custom code to paint the shape node entirely, or do that in addition to what JDiagram paints by default. The following CustomDraw members can be assigned to this property to specify the custom painting mode:

Member Name

Description

None

Do not perform custom drawing, let all painting be done by JDiagram.

Additional

The custom painting code executes after the node interior and frame are painted by JDiagram, but before text is rendered. In this mode, the Graphics instance passed to the custom drawing event handler has a clipping region applied to it.

Full

The component does not do any standard drawing, the entire painting of the node is done by the application.

ShadowOnly

Only the shadow of the node is painted by custom code, the node itself is drawn by the component.

Additional2

The custom painting code executes after all parts of the node are painted by JDiagram. In this mode, the Graphics instance passed to the custom drawing event handler doesn't have a clipping region applied to it.

 See Also