public class IltMakeRectGroupInteractor extends IlvMakeRectangleInteractor implements IlvPermanentInteractorInterface
IltRectGroup
instance.
When used in an IlpViewsView
via IlpViewsViewInteractor
,
this interactor recognizes the gesture CREATE_RECT_GROUP
.
Note that the following superclass methods are useless in this
interactor because the created object is an IltObject
and not an
IlvGraphic
as supposed in the superclass. In addition, the IltObject
should be instantiated in the method trigger.
isGrapherMode, setGrapherMode
getForeground, setForeground
getBackground, setBackground
getObjectFactory, setObjectFactory
IlpViewsViewInteractor
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
IltMakeRectGroupInteractor.Gesture
This class enumerates the possible gestures recognized by this interactor.
|
Constructor and Description |
---|
IltMakeRectGroupInteractor()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected IlvGraphic |
makeObject(IlvRect rect)
Creates the
. |
protected void |
trigger(IlvRect shape)
This function must be implemented in a subclass.
|
addObject, detach, drawGhost, fireRectangleDraggedEvent, getBackground, getForeground, getObjectFactory, isCreationInSubManagersAllowed, isFillOn, isGrapherMode, isPermanent, isSelectionMode, isStrokeOn, isXORGhost, resizeObject, setBackground, setCreationInSubManagersAllowed, setFillOn, setForeground, setGrapherMode, setObjectFactory, setPermanent, setSelectionMode, setStrokeOn
addRectangleDraggedListener, attach, dragscroll, getCursor, getDraggedRectangle, getLineStyle, getRectangleAspectRatio, getStartDragModifier, getStartPoint, handleButtonDown, handleButtonDragged, handleButtonUp, isGridMode, isOpaqueMode, isRotationAllowed, isStartDragModifierDown, processMouseEvent, processMouseMotionEvent, removeRectangleDraggedListener, setCursor, setGridMode, setLineStyle, setOpaqueMode, setRectangleAspectRatio, setRotationAllowed, setStartDragModifier
adjustPointIfOutsideView, doAutoScroll, getMaximumScrollDistance, getScrollTiming, isProgressiveScroll, setMaximumScrollDistance, setProgressiveScroll, setScrollTiming, startDraggingScrollTimer, stopDraggingScrollTimer
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isPermanent, setPermanent
public IltMakeRectGroupInteractor()
protected void trigger(IlvRect shape)
IltRectGroup
object and should call computeGraphic
on it,
passing to it the shape
argument.
This implementation creates an IltRectGroup
if this interactor is set
to a view which displays the content of an IltNetwork
. If the manager
associated with this view is not an IltNetwork
, no IltRectGroup
will be
created. When created, the group has the state IltOSI.State.Usage.Active
and is added to the IltNetwork
.
As this method instantiates an IltObject
, any subclass which overrides this
method to instantiate its own IltObject
should never call super.trigger
.
protected IlvGraphic makeObject(IlvRect rect)
IlvMakeRectangleInteractor
IlvRectangle
.
This method is called by the interactor to create the rectangle.
The default implementation creates an
if no
factory is installed; otherwise it calls the
IlvRectangle
method of the factory.createObject
makeObject
in class IlvMakeRectangleInteractor
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.