public class IltMakePolyGroupInteractor extends IlvMakePolygonInteractor implements IlvPermanentInteractorInterface
IltPolyGroup
.
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. Additionally the IltObject should be instantiated in the method trigger.
Modifier and Type | Class and Description |
---|---|
static class |
IltMakePolyGroupInteractor.Gesture
This class enumerates the possible gestures recognized by this interactor.
|
Constructor and Description |
---|
IltMakePolyGroupInteractor()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected IlvGraphic |
makePolyPoint(IlvPoint[] points)
Called to create the polypoint object.
|
protected void |
trigger(IlpPolygon shape)
This function must be implemented in a subclass.
|
createObject, drawGhost, isFillOn, isStrokeOn, setFillOn, setStrokeOn
accept, addPolyPoints, allowsMultiplePoints, allowsMultiplePoints, attach, count, detach, doIt, 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 IltMakePolyGroupInteractor()
protected void trigger(IlpPolygon shape)
This implementation creates an IltPolyGroup 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 IltPolyGroup 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.