public class IltMakeLinearGroupInteractor extends IlvMakePolylineInteractor implements IlvPermanentInteractorInterface
IltLinearGroup
.
Note that the following methods from the superclass are useless in this interactor because the object that is created is an IltObject and not an IlvGraphic as supposed in the superclass:
Modifier and Type | Class and Description |
---|---|
static class |
IltMakeLinearGroupInteractor.Gesture
This class enumerates the possible gestures recognized by this interactor.
|
Constructor and Description |
---|
IltMakeLinearGroupInteractor()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected IlvGraphic |
makePolyPoint(IlvPoint[] points)
Called to create the polypoint object.
|
protected void |
trigger(IlpPolyline shape)
This function must be implemented in a subclass.
|
createObject
accept, addPolyPoints, allowsMultiplePoints, allowsMultiplePoints, attach, count, detach, doIt, drawGhost, endOnDoubleClick, getBackground, getCursor, getForeground, getMinPointsDistance, getObjectFactory, getPoints, isAllowingMultiplePoints, isCreationInSubManagersAllowed, isGrapherMode, isGridMode, isOpaqueMode, isPermanent, isSelectionMode, isXORGhost, numberOfPointsReached, processMouseEvent, processMouseMotionEvent, react, reInitialize, setAllowingMultiplePoints, setBackground, setCreationInSubManagersAllowed, setCursor, setForeground, setGrapherMode, setGridMode, setMinPointsDistance, setObjectFactory, setOpaqueMode, setPermanent, setSelectionMode
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 IltMakeLinearGroupInteractor()
protected void trigger(IlpPolyline shape)
This implementation creates an IltLinearGroup if this interactor is set on a view which displays the content of an IltNetwork. If the manager associated with this view is not an IltNetwork, no IltLinearGroup 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 makePolyPoint(IlvPoint[] points)
IlvMakePolyPointsInteractor
IlvPolyline
object
is created. The foreground and background colors are set on
the object.makePolyPoint
in class IlvMakePolyPointsInteractor
points
- The selected points in the object's coordinate space.IlvMakePolyPointsInteractor.setObjectFactory(ilog.views.interactor.IlvPolyPointsObjectFactory)
,
IlvMakePolyPointsInteractor.setBackground(java.awt.Color)
,
IlvMakePolyPointsInteractor.setForeground(java.awt.Color)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.