The DiagramItem class represents an element in a diagram. It defines the basic drawing, interaction, undo/redo and serialization functionality for all the types of elements that can be contained in DroidDiagram documents.
The following tables list the members exposed by the DiagramItem type.
Name | Description | |
---|---|---|
![]() |
Overloaded. Initializes a new instance of the DiagramItem class. |
Name | Description | |
---|---|---|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
Name | Description | |
---|---|---|
![]() |
Creates a copy of this item. |
|
![]() |
Overloaded. |
|
![]() |
Gets the item bounds in logical document coordinates. |
|
![]() |
Gets the brush used to fill the item's interior. |
|
![]() |
Gets the effective brush of the item. |
|
![]() |
Gets the currently effective font of the item. This property returns getFont if it is not null, or a font with the DiagramItemStyle.getFontFamily, DiagramItemStyle.getFontSize, and DiagramItemStyle.getFontStyle properties of the item's style. |
|
![]() |
Gets the effective pen of the item. |
|
![]() |
Creates a Brush object representing the currently effective shadow brush of the item. This method returns a system brush corresponding to the item's getShadowBrush if the item's getShadowBrush is not null, or a system brush corresponding to the DiagramItemStyle.getShadowBrush property of the item's style. |
|
![]() |
Gets the effective text brush of the item. |
|
![]() |
Gets the font used to draw the text of an item. |
|
![]() |
Gets the hyperlink associated with an item. |
|
![]() |
Gets user-defined identifier associated with this item. |
|
![]() |
Gets a value indicating whether an item should be ignored by the automatic layout algorithms. |
|
![]() |
Gets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with any layer. |
|
![]() |
Returns a hashtable containing properties specific to layout algorithms. |
|
![]() |
Gets a value indicating whether users are allowed to modify an item. |
|
![]() |
Gets the hierarchical group in which this item is a subordinate. |
|
![]() |
Gets the diagram that contains this item. |
|
![]() |
Gets the pen used to draw the item frame lines. |
|
![]() |
Gets a value indicating whether an item will be printed. |
|
![]() |
For internal use. |
|
![]() |
Gets a value indicating whether this item is selected. |
|
![]() |
Gets the brush used to paint the item's shadow. |
|
![]() |
Gets the horizontal distance between a shadow and the item that casts it. |
|
![]() |
Gets the vertical distance between a shadow and the item that casts it. |
|
![]() |
Gets the style associated with the item. |
|
![]() |
Gets the group of subordinated items attached to this one. |
|
![]() |
Gets user-defined data assigned to an item. |
|
![]() |
Gets the brush used to paint texts inside the item. |
|
![]() |
Gets the spacing between the item boundaries and its text. |
|
![]() |
Gets the tooltip text displayed when the pointer rests over this item. |
|
![]() |
Gets a value indicating whether an item is visible. |
|
![]() |
Gets a weight value used in layout and path-finding algorithms. |
|
![]() |
Gets the position of an item within the diagram's Z-order. |
|
![]() |
Checks whether there are any nodes attached to this item. |
|
![]() |
Returns the diagram item that contains the specified point. |
|
![]() |
Determines whether a selection handle of this item is located at the specified point. |
|
![]() |
Returns the items that can be reached from this item by following the path specified in the given query expression. |
|
![]() |
Implements Externalizable. |
|
![]() |
Sets the brush used to fill the item's interior. |
|
![]() |
Sets the font used to draw the text of an item. |
|
![]() |
Sets the hyperlink associated with an item. |
|
![]() |
Assigns user-defined identifier to this item. |
|
![]() |
Sets a value indicating whether an item should be ignored by the automatic layout algorithms. |
|
![]() |
Sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with any layer. |
|
![]() |
Sets a value indicating whether users are allowed to modify an item. |
|
![]() |
Sets the pen used to draw the item frame lines. |
|
![]() |
Sets a value indicating whether an item will be printed. |
|
![]() |
Selects or deselects an item. |
|
![]() |
Sets the brush used to paint the item's shadow. |
|
![]() |
Sets the horizontal distance between a shadow and the item that casts it. |
|
![]() |
Sets the vertical distance between a shadow and the item that casts it. |
|
![]() |
Sets the style associated with the item. |
|
![]() |
Assigns user-defined data to an item. If the tag object is serializable, it will be automatically saved when serializing the diagram into binary format. When serializing to XML, you can save the tag by handling the DiagramListener.serializeTag event. |
|
![]() |
Sets the brush used to paint texts inside the item. |
|
![]() |
Sets the spacing between the item boundaries and its text. |
|
![]() |
Sets the tooltip text that should be displayed when the pointer rests over this item. |
|
![]() |
Sets a value indicating whether an item is visible. |
|
![]() |
Sets a weight value used in layout and path-finding algorithms. |
|
![]() |
Sets the position of an item within the diagram's Z-order. |
|
![]() |
Implements Externalizable. |
|
![]() |
Moves an item to the bottom of the Z order. |
|
![]() |
Moves an item down in the Z order. |
|
![]() |
Moves an item up in the Z order. |
|
![]() |
Moves an item to the top of the Z order. |
Name | Description | |
---|---|---|
![]() |
Invoked while the user draws this item to test whether the operation can be completed in the current context. |
|
![]() |
Invoked during interactive modification of items to test whether the operation can be completed in the current context. |
|
![]() |
Invoked when the interactive modification of this item has been canceled. |
|
![]() |
Invoked when the user finishes drawing this item. |
|
![]() |
Invoked when the item modification has been completed. |
|
![]() |
Creates an item property set corresponding to the type of this diagram item. This method is invoked by the undo/redo subsystem when creating a ChangeItemCmd instance. |
|
![]() |
Creates an item state corresponding to the type of this diagram item. |
|
![]() |
Draws the item on the specified Canvas surface. |
|
![]() |
Draws the shadow of this diagram item. |
|
![]() |
|
|
![]() |
Gets the repaint region for this item, taking into account factors such as pen, selection handles and shadow. |
|
![]() |
Gets the effective value of the style property with the specified name. |
|
![]() |
Loads the item content from an XML element. |
|
![]() |
Called when an item is added to a Diagram, either by the user, programmatically or by undo / redo. |
|
![]() |
|
|
![]() |
|
|
![]() |
Called when a group child node has been modified. Override this method if you need to know when a node from the SubordinateGroup is modified. |
|
![]() |
Invoked when the user clicks this item. |
|
![]() |
Invoked when the user double-clicks this item. |
|
![]() |
Called when this item is loaded from a file. |
|
![]() |
Called when the diagram's MeasureUnit changes. |
|
![]() |
Called when an item is removed from a Diagram, either by the user, programmatically or by undo / redo. |
|
![]() |
Invoked when the associated style or theme have changed. |
|
![]() |
Invoked when font property values of an associated style change. |
|
![]() |
|
|
![]() |
Overloaded. |
|
![]() |
Restores the properties of this diagram item. This method is invoked by the undo/redo subsystem when undoing or redoing a ChangeItemCmd instance. |
|
![]() |
Restores the state of this diagram item. |
|
![]() |
Saves the properties of this diagram item. This method is invoked by the undo/redo subsystem when saving a ChangeItemCmd instance. |
|
![]() |
Saves the state of this diagram item. |
|
![]() |
Saves the item content into an XML element. |
|
![]() |
Marks the diagram as changed. |
|
![]() |
Determines whether the item is rendered in the current context. |
|
![]() |
Invoked once when the user starts drawing a new item interactively. |
|
![]() |
Invoked when the user starts modifying this item interactively. |
|
![]() |
Invoked during interactive creation of this item. |
|
![]() |
Invoked during interactive modification of this item. |