ilog.views.graphic.linkpolicy
Class IlvLinkShapePolicyUtil

java.lang.Object
  extended by ilog.views.graphic.linkpolicy.IlvLinkShapePolicyUtil

public class IlvLinkShapePolicyUtil
extends Object

Utility class for link shape policies.

Since:
JViews 6.0

Field Summary
static int BUNDLE_POLICY_MODE
          The mode to be used if a combination of link shape policies is needed that supports the multi link bundling,
static int CROSSING_POLICY_MODE
          The mode to be used if a combination of link shape policies is needed that supports the calculation of tunnel or bridge crossings.
static int ORTHOGONAL_POLICY_MODE
          The mode to be used if a combination of link shape policies is needed that supports the orthogonal shape constraint.
 
Method Summary
static IlvCrossingLinkShapePolicy GetCrossingPolicy(IlvGrapher grapher)
          Returns the default crossing link shape policy for the crossing aware links of the input grapher.
static IlvLinkShapePolicy GetLinkShapePolicy(int mode, IlvGrapher grapher)
          Returns the default link shape policy for the policy aware links of the input grapher that use the input mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CROSSING_POLICY_MODE

public static final int CROSSING_POLICY_MODE
The mode to be used if a combination of link shape policies is needed that supports the calculation of tunnel or bridge crossings.

See Also:
Constant Field Values

ORTHOGONAL_POLICY_MODE

public static final int ORTHOGONAL_POLICY_MODE
The mode to be used if a combination of link shape policies is needed that supports the orthogonal shape constraint.

See Also:
Constant Field Values

BUNDLE_POLICY_MODE

public static final int BUNDLE_POLICY_MODE
The mode to be used if a combination of link shape policies is needed that supports the multi link bundling,

See Also:
Constant Field Values
Method Detail

GetLinkShapePolicy

public static IlvLinkShapePolicy GetLinkShapePolicy(int mode,
                                                    IlvGrapher grapher)
Returns the default link shape policy for the policy aware links of the input grapher that use the input mode. The input mode is a bit-wise OR combination of The default link shape policy is used by all instances of IlvEnhancedPolylineLinkImage that are in the same grapher and have the same mode. The returned link shape policy is actually a combination of link shape policies linked via IlvAbstractLinkShapePolicy.getChildPolicy().

Parameters:
mode - The mode of the links.
grapher - The grapher of the links.
Returns:
The link shape policy that can be used for links of the input grapher.

GetCrossingPolicy

public static IlvCrossingLinkShapePolicy GetCrossingPolicy(IlvGrapher grapher)
Returns the default crossing link shape policy for the crossing aware links of the input grapher. The default crossing link shape policy is used by all instances of IlvEnhancedPolylineLinkImage that are in the same grapher and have crossings enabled.

Parameters:
grapher - The grapher of the links.
Returns:
The crossing link shape policy that can be used for links of the input grapher.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.