|
||||||||||
| 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
public class IltLogicalZoomPolicy
This class implements a logical zoom.
This is a display mode where the coordinates of the network elements change proportionally. The sizes of network elements are kept constant, whereas the sizes of groups change proportionally. Link layout is redone according to the modified coordinates and sizes.
The application can program additional actions in the framework of logical zoom, for example groups which are replaced with subnetworks when the user zooms in.
When the zoom factor is less than 1, i.e. during zoom out, this zoom
policy will typically cause many objects to overlap. A zoom technique
which produces nice displays also when zooming out is the
IltMixedZoomPolicy.
IltMixedZoomPolicy| Field Summary | |
|---|---|
protected double |
_additionalZoom
|
protected IlvManagerView |
_targetView
|
| Fields inherited from class ilog.tgo.composite.IltZoomPolicy |
|---|
_ilvmanager, _manager |
| Constructor Summary | |
|---|---|
IltLogicalZoomPolicy()
Creates a new zoom policy instance which implements logical zoom. |
|
| Method Summary | |
|---|---|
void |
attachView(IlvManagerView view)
This method is called when a view is added to the manager to which this instance is attached. |
protected void |
changeZoomTransformer(IlvTransformer oldtr,
IlvTransformer newtr,
IlvTransformer oldtrl,
IlvTransformer newtrl)
Change the zoom transformer from oldtrl to newtrl. |
protected IlvTransformer |
computeZoomTransformer(IlvTransformer t)
Compute the appropriate zoom transformer for a given view transformer. |
void |
detachView(IlvManagerView view)
This method is called when a view is removed from the manager to which this instance is attached. |
boolean |
equals(Object o)
|
double |
getAdditionalZoom()
Returns the additional zoom factor. |
IlvTransformer |
getGraphLayoutTransformer(IlvManager subgrapher)
Returns the reference transformer for a graph layout in a subgrapher. |
IlvManagerView |
getTargetView()
Returns the target view. |
void |
setAdditionalZoom(double factor)
Sets the additional zoom factor. |
void |
setTargetView(IlvManagerView view)
Sets the target view. |
void |
zoomTransformerChanged(IlvManagerView view,
IlvTransformer oldtr,
IlvTransformer newtr)
When the zoom transformer changes, the ILOG JTGO objects are modified in such a way that the size of network elements remains the same. |
| Methods inherited from class ilog.tgo.composite.IltZoomPolicy |
|---|
applyTransformerToManagerContents, attach, detach, getManager, getVisibilityThreshold, setManager |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IlvManagerView _targetView
protected double _additionalZoom
| Constructor Detail |
|---|
public IltLogicalZoomPolicy()
This is a display mode where the coordinates of the network elements change proportionally. The sizes of network elements are kept constant, whereas the sizes of groups change proportionally. Link layout is redone according to the modified coordinates and sizes.
| Method Detail |
|---|
public IlvManagerView getTargetView()
public void setTargetView(IlvManagerView view)
Note: The target view should be one of the views attached to the manager to which this zoom policy belongs. If it is not, the zoom policy is detached from its manager and attached to the view's manager instead.
public void attachView(IlvManagerView view)
attachView in interface IlpZoomPolicyattachView in class IltZoomPolicypublic void detachView(IlvManagerView view)
detachView in interface IlpZoomPolicydetachView in class IltZoomPolicypublic double getAdditionalZoom()
setAdditionalZoom(double)public void setAdditionalZoom(double factor)
When computeZoomTransformer() is used to decide about the logical zoom level, the additional zoom factor is implicitly multiplied with the view's transformer.
This can be useful when printing with unusual transformers.
IltcCompositeManager.getZoomTransformer(),
IlvManagerView.getTransformer()protected IlvTransformer computeZoomTransformer(IlvTransformer t)
protected void changeZoomTransformer(IlvTransformer oldtr,
IlvTransformer newtr,
IlvTransformer oldtrl,
IlvTransformer newtrl)
public void zoomTransformerChanged(IlvManagerView view,
IlvTransformer oldtr,
IlvTransformer newtr)
zoomTransformerChanged in interface IlpZoomPolicyzoomTransformerChanged in class IltZoomPolicyview - the target viewoldtr - the manager's old zoom transformernewtr - the manager's new zoom transformerIltcCompositeManager.getZoomTransformer()public IlvTransformer getGraphLayoutTransformer(IlvManager subgrapher)
This method is used by IltGrapherAdapter.
getGraphLayoutTransformer in class IltZoomPolicysubgrapher - The top level grapher or one of its subgraphers.public boolean equals(Object o)
equals in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||