public abstract class IlvSelection extends IlvGraphic
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 FormConstructor and Description |
---|
IlvSelection(IlvGraphic obj)
Creates a new selection object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, boundingBox, callDraw, componentOrientationChanged, contains, draw, getAndAssociateObjectInteractor, getBaseTextDirection, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, localeChanged, makeSelection, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, write, zoomable
public IlvSelection(IlvGraphic obj)
obj
- the selected objectpublic IlvGraphic copy()
copy
in class IlvGraphic
IlvGraphic
public final IlvGraphic getObject()
public void applyTransform(IlvTransformer t)
applyTransform
in class IlvGraphic
t
- The transformation to be applied.IlvGraphic
public 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 IlvGraphic
true
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
.
The default interactor is used as object interactor (see
IlvGraphic.getObjectInteractor()
) if no other object interactor was
set on the object and the select interactor calls
IlvGraphic.getAndAssociateObjectInteractor()
to associate an object interactor
with the selection. The object interactor associated with a selection
is reponsible for interactions on the selected object, for instance,
reshaping the object.
getDefaultInteractor
in class IlvGraphic
IlvReshapeSelection
,
SetDefaultInteractor(java.lang.String)
public static void SetDefaultInteractor(String interactor)
getDefaultInteractor()
without subclassing this class.interactor
- the new interactorgetDefaultInteractor()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.