|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvGraphic
ilog.views.IlvSelection
public abstract class IlvSelection
An abstract class that describes
the selection on another object.
When a graphic object is selected in the manager, a selection object
sub class of this abstract class is associated with the graphic object.
This selection object is drawn on the top of the selected object to
show its selected state.
You do not create selection objects by a new. The selection object is
created when the object is selected by the manager. The graphic object creates is
own selection object by calling the makeSelection method.
IlvManager.setSelected(ilog.views.IlvGraphic, boolean, boolean),
IlvGraphic.makeSelection(),
Serialized Form| Constructor Summary | |
|---|---|
IlvSelection(IlvGraphic obj)
Creates a new selection object. |
|
| Method Summary | |
|---|---|
void |
applyTransform(IlvTransformer t)
Empty implementation of IlvGraphic.applyTransform. |
IlvGraphic |
copy()
Empty implementation of IlvGraphic.copy. |
String |
getDefaultInteractor()
Returns the default interactor class name. |
IlvGraphic |
getObject()
Returns the corresponding selected object. |
boolean |
isOptimizedDrawingEnabled()
This method allows or disables an optimization for drawing a selection object and its selected object. |
boolean |
isVisible()
Returns true if the object is visible. |
void |
onEnter(IlvObjectInteractorContext context)
Called when the selection is entered. |
void |
onExit(IlvObjectInteractorContext context)
Called when the selection is exited. |
static void |
SetDefaultInteractor(String interactor)
This method allows to change the default interactor of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvSelection(IlvGraphic obj)
obj - the selected object| Method Detail |
|---|
public IlvGraphic copy()
copy in class IlvGraphicIlvGraphicpublic final IlvGraphic getObject()
public void applyTransform(IlvTransformer t)
applyTransform in class IlvGraphict - The transformation to be applied.IlvGraphicpublic boolean isOptimizedDrawingEnabled()
true if the selection object
covers completely the selected objects. In other words if the
bounding box of this selection object is the same or bigger
than the bounding box of the corresponding selected object.
Note that the default value is false.
public boolean isVisible()
isVisible in class IlvGraphictrue if this graphic object is visible.IlvGraphic.setVisible(boolean),
IlvGraphic.setSelectable(boolean),
IlvGraphic.setMovable(boolean),
IlvGraphic.setEditable(boolean)public void onEnter(IlvObjectInteractorContext context)
Subclasses can override this method to perform specific tasks when the
selection is entered.
The default implementation calls IlvObjectInteractor.onEnter(ilog.views.IlvGraphic, ilog.views.IlvObjectInteractorContext)
on the associated object interactor.
context - The context for the object interactor.public void onExit(IlvObjectInteractorContext context)
Subclasses can override this method to perform specific tasks when the
selection is entered.
The default implementation calls IlvObjectInteractor.onExit(ilog.views.IlvGraphic, ilog.views.IlvObjectInteractorContext)
on the associated object interactor.
context - The context for the object interactor.public String getDefaultInteractor()
SetDefaultInteractor has not been
called it will return IlvReshapeSelection.
getDefaultInteractor in class IlvGraphicIlvReshapeSelection,
SetDefaultInteractor(java.lang.String)public static void SetDefaultInteractor(String interactor)
interactor - the new interactorgetDefaultInteractor()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||