Represents a selection of multiple items. Each Diagram has its own Selection instance, which can be accessed by the getSelection method.
The following tables list the members exposed by the Selection type.
Name | Description | |
---|---|---|
![]() |
Initializes a new Selection instance. |
Name | Description | |
---|---|---|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
Name | Description | |
---|---|---|
![]() |
Adds the specified item to the selection. |
|
![]() |
Changes the selection to the specified item. That means that the item gets selected and all other items are unselected. |
|
![]() |
Removes all items from the selection. |
|
![]() |
Creates a copy of this item. (Inherited from DiagramItem.) |
|
![]() |
Overloaded. |
|
![]() |
Gets a value indicating whether users are allowed to select multiple items. |
|
![]() |
Gets the smallest rectangle that bounds all selected items. |
|
![]() |
Gets the brush used to fill the item's interior. (Inherited from DiagramItem.) |
|
![]() |
Gets the effective brush of the item. (Inherited from DiagramItem.) |
|
![]() |
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. (Inherited from DiagramItem.) |
|
![]() |
Gets the effective pen of the item. (Inherited from DiagramItem.) |
|
![]() |
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. (Inherited from DiagramItem.) |
|
![]() |
Gets the effective text brush of the item. (Inherited from DiagramItem.) |
|
![]() |
Gets the font used to draw the text of an item. (Inherited from DiagramItem.) |
|
![]() |
Gets a value indicating how multiple selection is drawn on the screen. |
|
![]() |
Gets the hyperlink associated with an item. (Inherited from DiagramItem.) |
|
![]() |
Gets user-defined identifier associated with this item. (Inherited from DiagramItem.) |
|
![]() |
Gets a value indicating whether an item should be ignored by the automatic layout algorithms. (Inherited from DiagramItem.) |
|
![]() |
Gets a list of all selected items. |
|
![]() |
Gets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with any layer. (Inherited from DiagramItem.) |
|
![]() |
Returns a hashtable containing properties specific to layout algorithms. (Inherited from DiagramItem.) |
|
![]() |
Gets a list of all selected links. |
|
![]() |
Gets a value indicating whether users are allowed to modify an item. (Inherited from DiagramItem.) |
|
![]() |
Gets the hierarchical group in which this item is a subordinate. (Inherited from DiagramItem.) |
|
![]() |
Gets a list of all selected boxes. |
|
![]() |
Specifies whether to translate all points of selected unconnected links when moving multiple selection. |
|
![]() |
Gets the diagram that contains this item. (Inherited from DiagramItem.) |
|
![]() |
Gets the pen used to draw the item frame lines. (Inherited from DiagramItem.) |
|
![]() |
Gets a value indicating whether an item will be printed. (Inherited from DiagramItem.) |
|
![]() |
For internal use. (Inherited from DiagramItem.) |
|
![]() |
Gets a value indicating whether this item is selected. (Inherited from DiagramItem.) |
|
![]() |
Gets a value indicating whether the diagram's Dirty flag should be set when selection changes. |
|
![]() |
Gets the brush used to paint the item's shadow. (Inherited from DiagramItem.) |
|
![]() |
Gets the horizontal distance between a shadow and the item that casts it. (Inherited from DiagramItem.) |
|
![]() |
Gets the vertical distance between a shadow and the item that casts it. (Inherited from DiagramItem.) |
|
![]() |
Gets the style associated with the item. (Inherited from DiagramItem.) |
|
![]() |
Gets the group of subordinated items attached to this one. (Inherited from DiagramItem.) |
|
![]() |
Gets user-defined data assigned to an item. (Inherited from DiagramItem.) |
|
![]() |
Gets the brush used to paint texts inside the item. (Inherited from DiagramItem.) |
|
![]() |
Gets the spacing between the item boundaries and its text. (Inherited from DiagramItem.) |
|
![]() |
Gets the tooltip text displayed when the pointer rests over this item. (Inherited from DiagramItem.) |
|
![]() |
Gets a value indicating whether an item is visible. (Inherited from DiagramItem.) |
|
![]() |
Gets a weight value used in layout and path-finding algorithms. (Inherited from DiagramItem.) |
|
![]() |
Gets the position of an item within the diagram's Z-order. (Inherited from DiagramItem.) |
|
![]() |
Checks whether there are any nodes attached to this item. (Inherited from DiagramItem.) |
|
![]() |
Returns the diagram item that contains the specified point. (Inherited from DiagramItem.) |
|
![]() |
DiagramItem.hitTestHandle override. |
|
![]() |
Determines whether the specified item is selected. |
|
![]() |
Returns the items that can be reached from this item by following the path specified in the given query expression. (Inherited from DiagramItem.) |
|
![]() |
Implements Externalizable. |
|
![]() |
Removes the specified item from the selection. |
|
![]() |
Sets a value indicating whether users are allowed to select multiple items. |
|
![]() |
Sets the brush used to fill the item's interior. (Inherited from DiagramItem.) |
|
![]() |
Sets the font used to draw the text of an item. (Inherited from DiagramItem.) |
|
![]() |
Sets a value indicating how multiple selection should be drawn on the screen. |
|
![]() |
Sets the hyperlink associated with an item. (Inherited from DiagramItem.) |
|
![]() |
Assigns user-defined identifier to this item. (Inherited from DiagramItem.) |
|
![]() |
Sets a value indicating whether an item should be ignored by the automatic layout algorithms. (Inherited from DiagramItem.) |
|
![]() |
Sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with any layer. (Inherited from DiagramItem.) |
|
![]() |
Sets a value indicating whether users are allowed to modify an item. (Inherited from DiagramItem.) |
|
![]() |
Specifies whether to translate all points of selected unconnected links when moving multiple selection. |
|
![]() |
Sets the pen used to draw the item frame lines. (Inherited from DiagramItem.) |
|
![]() |
Sets a value indicating whether an item will be printed. (Inherited from DiagramItem.) |
|
![]() |
Selects or deselects an item. (Inherited from DiagramItem.) |
|
![]() |
Sets a value indicating whether the diagram's Dirty flag should be set when selection changes. |
|
![]() |
Sets the brush used to paint the item's shadow. (Inherited from DiagramItem.) |
|
![]() |
Sets the horizontal distance between a shadow and the item that casts it. (Inherited from DiagramItem.) |
|
![]() |
Sets the vertical distance between a shadow and the item that casts it. (Inherited from DiagramItem.) |
|
![]() |
Sets the style associated with the item. (Inherited from DiagramItem.) |
|
![]() |
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. (Inherited from DiagramItem.) |
|
![]() |
Sets the brush used to paint texts inside the item. (Inherited from DiagramItem.) |
|
![]() |
Sets the spacing between the item boundaries and its text. (Inherited from DiagramItem.) |
|
![]() |
Sets the tooltip text that should be displayed when the pointer rests over this item. (Inherited from DiagramItem.) |
|
![]() |
Sets a value indicating whether an item is visible. (Inherited from DiagramItem.) |
|
![]() |
Sets a weight value used in layout and path-finding algorithms. (Inherited from DiagramItem.) |
|
![]() |
Sets the position of an item within the diagram's Z-order. (Inherited from DiagramItem.) |
|
![]() |
Returns the number of selected items. |
|
![]() |
Toggles the selection state of the specified item. |
|
![]() |
Implements Externalizable. |
|
![]() |
Moves an item to the bottom of the Z order. (Inherited from DiagramItem.) |
|
![]() |
Moves an item down in the Z order. (Inherited from DiagramItem.) |
|
![]() |
Moves an item up in the Z order. (Inherited from DiagramItem.) |
|
![]() |
Moves an item to the top of the Z order. (Inherited from DiagramItem.) |
Name | Description | |
---|---|---|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
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. (Inherited from DiagramItem.) |
|
![]() |
Creates an item state corresponding to the type of this diagram item. (Inherited from DiagramItem.) |
|
![]() |
|
|
![]() |
|
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
DiagramItem.getRepaintRect override. |
|
![]() |
Gets the effective value of the style property with the specified name. (Inherited from DiagramItem.) |
|
![]() |
Loads the item content from an XML element. (Inherited from DiagramItem.) |
|
![]() |
Called when an item is added to a Diagram, either by the user, programmatically or by undo / redo. (Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
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. (Inherited from DiagramItem.) |
|
![]() |
Invoked when the user clicks this item. (Inherited from DiagramItem.) |
|
![]() |
Invoked when the user double-clicks this item. (Inherited from DiagramItem.) |
|
![]() |
Called when this item is loaded from a file. (Inherited from DiagramItem.) |
|
![]() |
Called when the diagram's MeasureUnit changes. (Inherited from DiagramItem.) |
|
![]() |
Called when an item is removed from a Diagram, either by the user, programmatically or by undo / redo. (Inherited from DiagramItem.) |
|
![]() |
Invoked when the associated style or theme have changed. (Inherited from DiagramItem.) |
|
![]() |
Invoked when font property values of an associated style change. (Inherited from DiagramItem.) |
|
![]() |
(Inherited from DiagramItem.) |
|
![]() |
Overloaded. (Inherited from DiagramItem.) |
|
![]() |
Restores the properties of this diagram item. This method is invoked by the undo/redo subsystem when undoing or redoing a ChangeItemCmd instance. (Inherited from DiagramItem.) |
|
![]() |
Restores the state of this diagram item. (Inherited from DiagramItem.) |
|
![]() |
Saves the properties of this diagram item. This method is invoked by the undo/redo subsystem when saving a ChangeItemCmd instance. (Inherited from DiagramItem.) |
|
![]() |
Saves the state of this diagram item. (Inherited from DiagramItem.) |
|
![]() |
Saves the item content into an XML element. (Inherited from DiagramItem.) |
|
![]() |
Marks the diagram as changed. (Inherited from DiagramItem.) |
|
![]() |
Determines whether the item is rendered in the current context. (Inherited from DiagramItem.) |
|
![]() |
|
|
![]() |
DiagramItem.startModify override. |
|
![]() |
|
|
![]() |
|