ilog.tgo.resource
Class IltrZoom

java.lang.Object
  extended by ilog.tgo.resource.IltrZoom

public abstract class IltrZoom
extends Object

This class contains all global parameters that have an effect on the physical (proportional) zoom.

See Also:
IlpGraphView.setZoomPolicy(ilog.cpl.graphic.views.IlpZoomPolicy), IltPhysicalZoomPolicy, IltMixedZoomPolicy

Field Summary
static double SubnetworkCollapsionIconThreshold
          Threshold for a modified display of subnetworks.
static double SubnetworkTitlebarFrameThreshold
          Threshold for a modified display of subnetworks.
static double ThinGroupThreshold
          Threshold for a modified display of groups.
static double ThinLinkThreshold
          Threshold for a modified display of links.
 
Method Summary
static double GetVisibilityThreshold(IltGraphicElementName elementName)
          Returns the threshold for the visibility of decorations of a given kind.
static void SetVisibilityThreshold(IltGraphicElementName elementName, double visibilityThreshold)
          Changes the threshold for the visibility of decorations of a given kind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ThinLinkThreshold

public static double ThinLinkThreshold
Threshold for a modified display of links. When the absolute value of the view's transform's determinant is less than this value, links will be shown thinner and in a single color.


ThinGroupThreshold

public static double ThinGroupThreshold
Threshold for a modified display of groups. When the absolute value of the view's transform's determinant is less than this value, groups will be shown thinner and in a single color.


SubnetworkTitlebarFrameThreshold

public static double SubnetworkTitlebarFrameThreshold
Threshold for a modified display of subnetworks. When the absolute value of the view's transform's determinant is less than this value, the frame and background of a subnetwork of type TITLEBAR_FRAME will not be shown.


SubnetworkCollapsionIconThreshold

public static double SubnetworkCollapsionIconThreshold
Threshold for a modified display of subnetworks. When the absolute value of the view's transform's determinant is less than this value, the collapse icon will not be shown.

Method Detail

GetVisibilityThreshold

public static double GetVisibilityThreshold(IltGraphicElementName elementName)
Returns the threshold for the visibility of decorations of a given kind. When the absolute value of the drawing transform's determinant is less than this value, decorations of the given kind will not be shown.

See Also:
IlvTransformer.getDeterminant()

SetVisibilityThreshold

public static void SetVisibilityThreshold(IltGraphicElementName elementName,
                                          double visibilityThreshold)
Changes the threshold for the visibility of decorations of a given kind. When the absolute value of the drawing transform's determinant is less than this value, decorations of the given kind will not be shown.

The drawing transform depends on the zoom policy. Ignoring subnetworks, the zoom policy is as follows:

Useful values for a visibility threshold are often between 0.01 and 1.

Note: When a transform is a scale transform, its determinant is the square of the scale factor. Therefore, to hide a decoration when the scale factor is below a certain value, you have to set the visibility threshold to the square of this value.

This setting has no effect if a visibility threshold on the same elementName that has been set in the current zoom policy.

See Also:
IlvTransformer.getDeterminant(), IltMixedZoomPolicy.setVisibilityThresholds(int, double)


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