public class DraggedItem
extends java.lang.Object
| Constructor and Description |
|---|
DraggedItem(DiagramItem item,
java.awt.geom.Dimension2D size)
Initializes a new instance of the DraggedItem class.
|
DraggedItem(DiagramItem item,
java.awt.geom.Dimension2D size,
java.lang.String label)
Initializes a new instance of the DraggedItem class.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAutoConnectDistance()
Gets the maximum distance within which a link will attempt to auto-connect to a nearby node.
|
boolean |
getAutoConnectLinks()
Gets a value indicating whether links should be automatically connected to nearby nodes
when dropped.
|
DiagramItem |
getItem()
Gets the item that holds the dragged DiagramItem.
|
java.lang.String |
getLabel()
Gets the text displayed for the item.
|
java.awt.geom.Dimension2D |
getSize()
Get the size of the item.
|
void |
setAutoConnectDistance(float value)
Sets the maximum distance within which a link will attempt to auto-connect to a nearby node.
|
void |
setAutoConnectLinks(boolean value)
Sets a value indicating whether links should be automatically connected to nearby nodes
when dropped.
|
void |
setItem(DiagramItem value)
Sets the item that holds the dragged DiagramItem.
|
void |
setLabel(java.lang.String value)
Sets the text displayed for the item.
|
void |
setSize(java.awt.geom.Dimension2D value)
Set the size of the item.
|
public DraggedItem(DiagramItem item, java.awt.geom.Dimension2D size)
item - The dragged DiagramItem.size - The size of the item.public DraggedItem(DiagramItem item, java.awt.geom.Dimension2D size, java.lang.String label)
item - The dragged DiagramItem.size - The size of the item.label - The text to be displayed for the item.public DiagramItem getItem()
public void setItem(DiagramItem value)
public java.awt.geom.Dimension2D getSize()
public void setSize(java.awt.geom.Dimension2D value)
public java.lang.String getLabel()
public void setLabel(java.lang.String value)
public boolean getAutoConnectLinks()
public void setAutoConnectLinks(boolean value)
value - true to auto-connect links, otherwise false.public float getAutoConnectDistance()
public void setAutoConnectDistance(float value)
value - The auto-connect distance.