Packagecom.yworks.canvas.model
Classpublic class BridgeUpdateMode
InheritanceBridgeUpdateMode Inheritance Object
Implements IEnum

Enumeration which determines how the bridges are updated during an input which may alter the bridges.

The constants defined in this class are used in HandleInputMode.bridgeUpdateMode, MoveInputMode.bridgeUpdateMode, and MainInputMode.bridgeUpdateMode.

See also

BridgeManager
com.yworks.canvas.input.HandleInputMode.bridgeUpdateMode
com.yworks.canvas.input.MoveInputMode.bridgeUpdateMode
com.yworks.canvas.input.MainInputMode.bridgeUpdateMode


Public Methods
 MethodDefined By
  
toString():String
A String representation of the constant.
BridgeUpdateMode
  
[static] Returns the constant which is represented by the given object.
BridgeUpdateMode
Public Constants
 ConstantDefined By
  ALWAYS : BridgeUpdateMode
[static] The bridges will always be updated during movement ("live").
BridgeUpdateMode
  ON_END : BridgeUpdateMode
[static] The bridges are not updated during movement.
BridgeUpdateMode
  ON_START_AND_END : BridgeUpdateMode
[static] The bridges will be removed when the movement starts and re-added after the movement has ended.
BridgeUpdateMode
Method Detail
toString()method
public function toString():String

A String representation of the constant.

Returns
String — A String representation of the constant.
valueOf()method 
public static function valueOf(s:Object):BridgeUpdateMode

Returns the constant which is represented by the given object.

Parameters

s:Object — An object which represents the mode to return. The same String which is returned by the toString() method.

Returns
BridgeUpdateMode — The constant which is represented by the given object.

Throws
ArgumentError — is there is no valid BridgeUpdateMode for the given object.
Constant Detail
ALWAYSConstant
public static const ALWAYS:BridgeUpdateMode

The bridges will always be updated during movement ("live").

This is the nicest mode but it may be too slow on larger graphs.

ON_ENDConstant 
public static const ON_END:BridgeUpdateMode

The bridges are not updated during movement.

This is the fastest mode. If the moving edge has caused some bridges at its initial position these will remain on the display until the movement has finished. This may be confusing.

ON_START_AND_ENDConstant 
public static const ON_START_AND_END:BridgeUpdateMode

The bridges will be removed when the movement starts and re-added after the movement has ended.

On larger graphs this mode may cause a noticable delay when the movement starts.