|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.tgo.composite.IltZoomPolicy
ilog.tgo.composite.IltLogicalZoomPolicy
ilog.tgo.composite.IltMixedZoomPolicy
public class IltMixedZoomPolicy
This class implements a mixed zoom policy.
Here the zoom factor of a transformer is the square root of the absolute value of its determinant.
The default value of the determinant threshold is 1.
IltPhysicalZoomPolicy,
IltLogicalZoomPolicy| Field Summary |
|---|
| Fields inherited from class ilog.tgo.composite.IltLogicalZoomPolicy |
|---|
_additionalZoom, _targetView |
| Fields inherited from class ilog.tgo.composite.IltZoomPolicy |
|---|
_ilvmanager, _manager |
| Constructor Summary | |
|---|---|
IltMixedZoomPolicy()
Default constructor |
|
| Method Summary | |
|---|---|
void |
attach()
This method is called when the policy is attached to a manager. |
protected IlvTransformer |
computeZoomTransformer(IlvTransformer t)
The mixed zoom is realized as follows: It all depends on the target view's transformer tt, more precisely on its scale factor (i.e. |
void |
detach()
This method is called when the policy is detached from its manager. |
boolean |
equals(Object o)
|
String[] |
getDecorationNames()
Returns the names of the decorations that may have visibility thresholds specified in this zoom policy. |
String |
getDecorationNames(int index)
Returns the name of the decoration at a given index in the list of names of decorations that may have visibility thresholds specified in this zoom policy. |
double |
getSubNetworkZoomFactor()
Returns the additional zoom factor applied to subnetworks. |
double[] |
getVisibilityThreshold(String name)
Returns the visibility thresholds defined in this zoom policy for a given decoration name. |
double[] |
getVisibilityThresholds()
Returns the list of all visibility thresholds defined in this zoom policy. |
double |
getVisibilityThresholds(int index)
Returns the visibility thresholds defined in this zoom policy for a given decoration name. |
double |
getZoomThreshold()
Returns the value of the determinant threshold. |
void |
setDecorationNames(int index,
String key)
Sets the name for one of the decorations that have visibility thresholds specified in this zoom policy. |
void |
setDecorationNames(String[] keys)
Sets the names of the decorations that have visibility thresholds specified in this zoom policy. |
void |
setSubNetworkZoomFactor(double subnetworkZoomFactor)
Sets the additional zoom factor that gets applied to expanded subnetworks. |
void |
setVisibilityThresholds(double[] visibilityThresholds)
Sets the visibility thresholds below which decorations with specific names are automatically hidden. |
void |
setVisibilityThresholds(int index,
double visibilityThreshold)
Sets the visibility thresholds below which decorations with a specific name are automatically hidden. |
void |
setZoomThreshold(double threshold)
Sets the value of the zoom threshold determining when the physical zoom policy or the logical zoom policy must be used. |
| Methods inherited from class ilog.tgo.composite.IltLogicalZoomPolicy |
|---|
attachView, changeZoomTransformer, detachView, getAdditionalZoom, getGraphLayoutTransformer, getTargetView, setAdditionalZoom, setTargetView, zoomTransformerChanged |
| Methods inherited from class ilog.tgo.composite.IltZoomPolicy |
|---|
applyTransformerToManagerContents, getManager, setManager |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IltMixedZoomPolicy()
| Method Detail |
|---|
protected IlvTransformer computeZoomTransformer(IlvTransformer t)
computeZoomTransformer in class IltLogicalZoomPolicypublic double getZoomThreshold()
public void setZoomThreshold(double threshold)
The default threshold is 1.
public double getSubNetworkZoomFactor()
public void setSubNetworkZoomFactor(double subnetworkZoomFactor)
public void attach()
attach in interface IlpZoomPolicyattach in class IltZoomPolicypublic void detach()
detach in interface IlpZoomPolicydetach in class IltZoomPolicypublic void setDecorationNames(String[] keys)
See IltGraphicElementName for the
list of decoration names.
See IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)
for an explanation of visibility thresholds.
keys - The decoration names.
public void setDecorationNames(int index,
String key)
throws ArrayIndexOutOfBoundsException
See IltGraphicElementName for the
list of decoration names.
See IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)
for an explanation of visibility thresholds.
index - The index of the key being set.key - The key value.
ArrayIndexOutOfBoundsExceptionpublic String[] getDecorationNames()
public String getDecorationNames(int index)
throws ArrayIndexOutOfBoundsException
index - The index of the decoration name to be retrieved.
index.
ArrayIndexOutOfBoundsExceptionpublic void setVisibilityThresholds(double[] visibilityThresholds)
The indices of the visibility thresholds in this array must match the indices in the decoration name array.
Refer to IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)
for an explanation of visibility thresholds.
A visibility setting in this zoom policy overrides the corresponding global setting.
visibilityThresholds - Visibility thresholds, in the same order as
the specified decoration names.setDecorationNames(java.lang.String[]),
IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)
public void setVisibilityThresholds(int index,
double visibilityThreshold)
throws ArrayIndexOutOfBoundsException
The decorations that are hidden are the ones that are identified by the decoration name that is positioned AT the same index in the decoration name structure.
See IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)
for an explanation of visibility thresholds.
A visibility setting in this zoom policy overrides the corresponding global setting.
index - The index of the value being set.visibilityThreshold - The visibility threshold.
ArrayIndexOutOfBoundsExceptionsetDecorationNames(java.lang.String[]),
IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)public double[] getVisibilityThresholds()
See IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)
for an explanation of visibility thresholds.
setVisibilityThresholds(int, double)
public double getVisibilityThresholds(int index)
throws ArrayIndexOutOfBoundsException
setDecorationNames(int, String) for more
information.
See IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)
for an explanation of visibility thresholds.
index - The index in the list of decoration names.
ArrayIndexOutOfBoundsExceptionpublic double[] getVisibilityThreshold(String name)
The value returned has been previously registered in this
zoom policy using setVisibilityThresholds(double[]). If the value
has not been registered, or if the given name does not correspond
to a valid decoration name, this method returns null.
Refer to IltrZoom.SetVisibilityThreshold(ilog.tgo.graphic.IltGraphicElementName, double)
for an explanation of visibility thresholds.
getVisibilityThreshold in class IltZoomPolicyname - Decoration name
setDecorationNames(java.lang.String[]),
setVisibilityThresholds(double[])public boolean equals(Object o)
equals in class IltLogicalZoomPolicy
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||