|
org.netbeans.api.visual 2.21.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ConnectionWidget.RoutingPolicy>
org.netbeans.api.visual.widget.ConnectionWidget.RoutingPolicy
public static enum ConnectionWidget.RoutingPolicy
This enum represents a policy which is used for re-routing control points of a ConnectionWidget.
Enum Constant Summary | |
---|---|
ALWAYS_ROUTE
All control points are rerouted when it is necessary. |
|
DISABLE_ROUTING
Disable routing completely, so control points are kept at their previous location. |
|
DISABLE_ROUTING_UNTIL_END_POINT_IS_MOVED
Temporarily disables routing until any end point changes its location. |
|
UPDATE_END_POINTS_ONLY
All control points (except end points) are kept at the same location. |
Method Summary | |
---|---|
static ConnectionWidget.RoutingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ConnectionWidget.RoutingPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ConnectionWidget.RoutingPolicy ALWAYS_ROUTE
public static final ConnectionWidget.RoutingPolicy UPDATE_END_POINTS_ONLY
public static final ConnectionWidget.RoutingPolicy DISABLE_ROUTING_UNTIL_END_POINT_IS_MOVED
ALWAYS_ROUTE
.
Note: This is used by GraphLayouts which routes the path (control points)
by themselves and would like to keep the path until user moves with source or target widget/anchor.
public static final ConnectionWidget.RoutingPolicy DISABLE_ROUTING
Method Detail |
---|
public static ConnectionWidget.RoutingPolicy[] values()
for (ConnectionWidget.RoutingPolicy c : ConnectionWidget.RoutingPolicy.values()) System.out.println(c);
public static ConnectionWidget.RoutingPolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
org.netbeans.api.visual 2.21.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |