public class IlvGanttSelectInteractor extends IlvSelectInteractor
To install the interactor, you call the setInteractor
of the IlvGanttSheet
.
Modifier and Type | Field and Description |
---|---|
static int |
AUTO_DETECT
Identifies that the activity movement axis, either horizontal or vertical, will be
determined automatically when the user starts dragging the mouse.
|
static int |
BOTH
Identifies that activity movement is allowed on both the horizontal and vertical
axes.
|
static int |
HORIZONTAL
Identifies that activity movement is allowed on the horizontal axis.
|
static int |
VERTICAL
Identifies that activity movement is allowed on the vertical axis.
|
Constructor and Description |
---|
IlvGanttSelectInteractor()
Creates a new selection interactor for a Gantt sheet.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attach(IlvManagerView v)
This method is invoked when the interactor is attached to the manager.
|
protected boolean |
dispatchToSelection(AWTEvent event)
Resets the default cursor if the MOUSE_MOVED event is not consumed.
|
int |
getMovementAxis()
Returns the movement axis along which the user is allowed to drag activities when
the interactor is attached to an
IlvScheduleChart . |
protected IlvManagerViewInteractor |
getMoveSelectionInteractor()
This method is called when the interactor needs to move the selected objects.
|
int |
getReservationDuplicationModifier()
Returns the reservation duplication modifier.
|
int |
getReservationDuplicationModifierEx()
Returns the reservation duplication modifier in extended format, according to the
conventions of
java.awt.event.InputEvent.getModifiersEx() . |
boolean |
isDuplicationAllowed()
Returns whether duplication of selected reservation graphics is allowed with
the
reservationDuplicationModifier
key. |
boolean |
isMovementDetectionEnabled()
Deprecated.
Beginning with Perforce JViews 7.5, use
getMovementAxis() ==
AUTO_DETECT instead. |
protected boolean |
isReservationDuplicationModifierDown(MouseEvent event)
Returns whether the specified mouse event exactly contains the primary
mouse button and the reservation duplication modifier down.
|
protected boolean |
mouseDown(MouseEvent event)
This method is called when a
MOUSE_PRESSED event occurs without the
multiple selection modifier. |
void |
setDuplicationAllowed(boolean set)
Sets whether duplication of selected reservation graphics is allowed with
the
reservationDuplicationModifier
key. |
void |
setMovementAxis(int axis)
Sets the movement axis along which the user is allowed to drag activities when the
interactor is attached to an
IlvScheduleChart . |
void |
setMovementDetectionEnabled(boolean detect)
Deprecated.
Beginning with Perforce JViews 7.5, use
setMovementAxis(detect ?
AUTO_DETECT : BOTH) instead. |
void |
setReservationDuplicationModifier(int modifier)
Sets the reservation duplication modifier.
|
deSelectAll, deSelectObject, detach, drawGhostMove, getLineStyle, getMaximumScrollDistance, getMoveSelectionCursor, getMoveSelectionManager, getMoveThreshold, getMultipleSelectionCursor, getMultipleSelectionInteractor, getMultipleSelectionModifier, getMultipleSelectionModifierEx, getObject, getScrollTiming, getSelectedMovingObjects, getSelectionModifier, getSelectionModifierEx, handleExpose, isDragAllowed, isEditionAllowed, isHyperEdgesFollowEndNodes, isLinksFollowEndNodes, isMoveAffectsSingleSubManager, isMoveAllowed, isMultipleSelectionMode, isMultipleSelectionModifierDown, isObjectInteractorEnabled, isOpaqueDragSelection, isOpaqueMove, isOpaquePolyPointsEdition, isOpaqueResize, isProgressiveScroll, isSelectionInsideSubobjectsAllowed, isSelectionModifierDown, isSelectionMovable, isShowingMovingObject, mouseDownMultipleSelection, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, selectionChanged, selectObject, setDragAllowed, setEditionAllowed, setHyperEdgesFollowEndNodes, setLineStyle, setLinksFollowEndNodes, setMaximumScrollDistance, setMoveAffectsSingleSubManager, setMoveAllowed, setMoveSelectionCursor, setMoveThreshold, setMultipleSelectionCursor, setMultipleSelectionMode, setMultipleSelectionModifier, setObjectInteractorEnabled, setOpaqueDragSelection, setOpaqueMove, setOpaquePolyPointsEdition, setOpaqueResize, setProgressiveScroll, setScrollTiming, setSelectionInsideSubobjectsAllowed, setSelectionModifier, setShowingMovingObject, setXORGhost
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, isXORGhost, processEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener
public static final int BOTH
HORIZONTAL
,
VERTICAL
,
AUTO_DETECT
,
getMovementAxis()
,
setMovementAxis(int)
,
Constant Field Valuespublic static final int HORIZONTAL
BOTH
,
VERTICAL
,
AUTO_DETECT
,
getMovementAxis()
,
setMovementAxis(int)
,
Constant Field Valuespublic static final int VERTICAL
HORIZONTAL
,
BOTH
,
AUTO_DETECT
,
getMovementAxis()
,
setMovementAxis(int)
,
Constant Field Valuespublic static final int AUTO_DETECT
VERTICAL
,
HORIZONTAL
,
BOTH
,
getMovementAxis()
,
setMovementAxis(int)
,
Constant Field Valuespublic IlvGanttSelectInteractor()
protected void attach(IlvManagerView v)
attach
in class IlvSelectInteractor
v
- The manager view.IlvManagerViewInteractor.detach()
public int getMovementAxis()
IlvScheduleChart
. This
value is ignored when the interactor is attached to an
IlvGanttChart
because only horizontal
movement along the time axis is allowed. The value will be one of BOTH
,
HORIZONTAL
, VERTICAL
, or AUTO_DETECT
. The default value
is BOTH
.setMovementAxis(int)
public void setMovementAxis(int axis)
IlvScheduleChart
. This value is
ignored when the interactor is attached to an IlvGanttChart
because only horizontal movement along the time axis is allowed.axis
- The movement axis. The value must be one of BOTH
,
HORIZONTAL
, VERTICAL
, or AUTO_DETECT
.getMovementAxis()
@Deprecated public boolean isMovementDetectionEnabled()
getMovementAxis() ==
AUTO_DETECT
instead.true
, the
interactor detects the most favorite mouse movement, either horizontally
or vertically. The default value is false
.setMovementDetectionEnabled(boolean)
@Deprecated public void setMovementDetectionEnabled(boolean detect)
setMovementAxis(detect ?
AUTO_DETECT : BOTH)
instead.true
, the
interactor detects the most favorite mouse movement, either horizontally
or vertically. If set to false
, movement is allowed along both the
horizontal and vertical axes.detect
- The state of the movement detection.isMovementDetectionEnabled()
public int getReservationDuplicationModifier()
ALT
key.getReservationDuplicationModifierEx()
,
setReservationDuplicationModifier(int)
,
isReservationDuplicationModifierDown(java.awt.event.MouseEvent)
public final int getReservationDuplicationModifierEx()
java.awt.event.InputEvent.getModifiersEx()
. This mask
is computed from getReservationDuplicationModifier()
.getReservationDuplicationModifier()
,
setReservationDuplicationModifier(int)
,
isReservationDuplicationModifierDown(java.awt.event.MouseEvent)
public void setReservationDuplicationModifier(int modifier)
Note: Although Input.XXX_MASK
constants are accepted, it is preferable
to use the Input.XXX_DOWN_MASK
constants available in JDK 1.4 and later.
This is to avoid any ambiguity between ALT_MASK
and
BUTTON2_MASK
which share the same value, and between
META_MASK
and BUTTON3_MASK
which share the same value.
modifier
- The modifier applied to the mouse press used to determine
if the interaction should be initiated.getReservationDuplicationModifier()
,
getReservationDuplicationModifierEx()
,
isReservationDuplicationModifierDown(java.awt.event.MouseEvent)
protected boolean isReservationDuplicationModifierDown(MouseEvent event)
event
- The mouse event.getReservationDuplicationModifier()
,
setReservationDuplicationModifier(int)
public boolean isDuplicationAllowed()
reservationDuplicationModifier
key. The default value is true
.setDuplicationAllowed(boolean)
public void setDuplicationAllowed(boolean set)
reservationDuplicationModifier
key.set
- Indicates whether reservation duplication is allowed.isDuplicationAllowed()
protected IlvManagerViewInteractor getMoveSelectionInteractor()
IlvActivityGraphicMoveInteractor
.getMoveSelectionInteractor
in class IlvSelectInteractor
IlvSelectInteractorMoveSelection
protected boolean mouseDown(MouseEvent event)
MOUSE_PRESSED
event occurs without the
multiple selection modifier.mouseDown
in class IlvSelectInteractor
event
- The mouse event.protected boolean dispatchToSelection(AWTEvent event)
dispatchToSelection
in class IlvSelectInteractor
event
- The event.True
if the event was used.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.