public class IlpNetworkSelectButton extends IlpNetworkInteractorButton
IltSelectInteractor
,
IlpNetworkSelectAction
,
IlpNetworkInteractorButton
,
Serialized FormJToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, model, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlpNetworkSelectButton(IlpViewsView view)
Creates the button.
|
Modifier and Type | Method and Description |
---|---|
int |
getMoveThreshold()
Returns the threshold after which a graphic object starts to
move.
|
int |
getMultipleSelectionModifier()
Returns the multiple selection modifier.
|
int |
getSelectionModifier()
Returns the selection modifier.
|
boolean |
isDragAllowed()
Returns
true if the interactor lets the user select objects
by dragging a rectangle, false otherwise. |
boolean |
isEditingAllowed()
Returns
true if the interactor lets the user edit objects by
dispatching the events to the interactor attached to the selection object. |
boolean |
isMoveAllowed()
Returns
true if the interactor lets the user move objects,
false otherwise. |
boolean |
isMultipleSelectionMode()
Returns
true if the interactor allows the user to select
multiple objects simultaneously. |
boolean |
isOpaqueDragSelection()
Returns an indication of whether the interactor is in Opaque Multiple
Selection mode or not.
|
boolean |
isOpaqueMove()
Returns whether the interactor is in Opaque Move mode or
not.
|
boolean |
isOpaquePolyPointsEdition()
Returns an indication of whether the interactor is in Opaque
PolyPoints Editing mode or not.
|
boolean |
isOpaqueResize()
Returns an indication of whether the interactor is in Opaque Resize
mode or not.
|
boolean |
isShowingMovingObject()
Returns
true if the interactor shows the object when the
object is being moved. |
void |
setDragAllowed(boolean allow)
Lets you enable or disable the mode that allows you to select
objects by dragging a rectangle over them.
|
void |
setEditingAllowed(boolean allow)
Lets you enable or disable the mode that allows you to edit
objects with the interactor.
|
void |
setMoveAllowed(boolean allow)
Lets you enable or disable the mode that allows you to move
objects with this interactor.
|
void |
setMoveThreshold(int threshold)
Changes the threshold after which a graphic object starts to
move.
|
void |
setMultipleSelectionMode(boolean allow)
Lets you enable or disable the mode that allows you to select
several objects simultaneously.
|
void |
setMultipleSelectionModifier(int modifier)
Sets the multiple selection modifier.
|
void |
setOpaqueDragSelection(boolean set)
Sets the interactor in Opaque Multiple Selection mode.
|
void |
setOpaqueMove(boolean set)
Sets the interactor mode to Opaque Move.
|
void |
setOpaquePolyPointsEdition(boolean set)
Sets the interactor in Opaque PolyPoints Editing mode.
|
void |
setOpaqueResize(boolean set)
Sets the interactor in Opaque Resize mode.
|
void |
setSelectionModifier(int modifier)
Sets the selection modifier.
|
void |
setShowingMovingObject(boolean set)
Modifies the ghost drawn when the object is moved.
|
getIlpInteractor, getIlvInteractor, getLocationOnScreen, getPopupMenuFactory, init, init, isUsingObjectInteractor, isXORGhost, setPopupMenuFactory, setUsingObjectInteractor, setXORGhost
getAccessibleContext, getUIClassID, paramString, updateUI
actionPropertyChanged, addActionListener, addChangeListener, addImpl, addItemListener, checkHorizontalKey, checkVerticalKey, configurePropertiesFromAction, createActionListener, createActionPropertyChangeListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHideActionText, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, init, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, paintBorder, removeActionListener, removeChangeListener, removeItemListener, removeNotify, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setEnabled, setFocusPainted, setHideActionText, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPosition
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public IlpNetworkSelectButton(IlpViewsView view)
view
- The view on which to operate.public boolean isMultipleSelectionMode()
true
if the interactor allows the user to select
multiple objects simultaneously.public void setMultipleSelectionMode(boolean allow)
public boolean isMoveAllowed()
true
if the interactor lets the user move objects,
false
otherwise.public void setMoveAllowed(boolean allow)
public boolean isDragAllowed()
true
if the interactor lets the user select objects
by dragging a rectangle, false
otherwise.public void setDragAllowed(boolean allow)
public boolean isEditingAllowed()
true
if the interactor lets the user edit objects by
dispatching the events to the interactor attached to the selection object.public void setEditingAllowed(boolean allow)
public int getMoveThreshold()
public void setMoveThreshold(int threshold)
public boolean isOpaqueMove()
public void setOpaqueMove(boolean set)
public boolean isShowingMovingObject()
true
if the interactor shows the object when the
object is being moved. Returns false
if a rectangle showing
the bounding box of the object is shown when the object is being moved.public void setShowingMovingObject(boolean set)
false
, a rectangle showing the bounding box of the
object is drawn while moving the object, otherwise a ghost showing the
object is drawn. Note that this method has no meaning when the
interactor is in Opaque Move mode.public boolean isOpaqueDragSelection()
public void setOpaqueDragSelection(boolean set)
In Opaque Multiple Selection mode, while the user drags the selection rectangle, the previous rectangle is erased by redrawing the corresponding regions of the view. This mode may be slower because it requires partial redraws of the manager, but it is safer because it behaves well if animated gif images are used.
In Ghost Multiple Selection mode, the previous selection rectangle is erased by drawing it again (in XOR mode).
The default mode is the Ghost Multiple Selection mode.
public boolean isOpaqueResize()
public void setOpaqueResize(boolean set)
public boolean isOpaquePolyPointsEdition()
public void setOpaquePolyPointsEdition(boolean set)
public int getMultipleSelectionModifier()
public void setMultipleSelectionModifier(int modifier)
modifier
- 1 = SHIFT, 2 = CTRLpublic int getSelectionModifier()
public void setSelectionModifier(int modifier)
modifier
- 1 = SHIFT, 2 = CTRL© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.