public enum RestrictToBounds extends java.lang.Enum<RestrictToBounds>
Diagram.setRestrictItemsToBounds(com.mindfusion.diagramming.RestrictToBounds) method of the Diagram class.| Enum Constant and Description |
|---|
InsideOnly
The items should be always inside the document area.
|
Intersection
Let users drag items outside of the scrollable area as long as there is
some part of them still inside.
|
NoRestriction
Do not prevent users from dragging items outside of the document
scrollable area.
|
| Modifier and Type | Method and Description |
|---|---|
static RestrictToBounds |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RestrictToBounds[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestrictToBounds NoRestriction
public static final RestrictToBounds Intersection
public static final RestrictToBounds InsideOnly
public static RestrictToBounds[] values()
for (RestrictToBounds c : RestrictToBounds.values()) System.out.println(c);
public static RestrictToBounds valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null