|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JToggleButton
ilog.cpl.graph.action.toolbar.IlpGraphInteractorButton
ilog.cpl.equipment.action.toolbar.IlpEquipmentInteractorButton
ilog.cpl.equipment.action.toolbar.IlpEquipmentSelectButton
public class IlpEquipmentSelectButton
This button sets a selection interactor on the view.
IltSelectInteractor,
IlpEquipmentSelectAction,
IlpEquipmentInteractorButton,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JToggleButton |
|---|
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel |
| Nested classes/interfaces inherited from class javax.swing.AbstractButton |
|---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlpEquipmentSelectButton(IlpViewsView view)
Creates the button. |
|
| Method Summary | |
|---|---|
int |
getMoveThreshold()
Returns the threshold from which the objects become movable. |
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 allows the end-user to edit
objects. |
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 object is drawn while it is being moved. |
void |
setDragAllowed(boolean allow)
Enables or disables the selection of objects by dragging a rectangle over them. |
void |
setEditingAllowed(boolean allow)
Enables or disables the editing of 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)
Sets the threshold from which the objects become movable. |
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 move mode. |
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)
Enables or disables the drawing of the object while it is being moved. |
| Methods inherited from class ilog.cpl.graph.action.toolbar.IlpGraphInteractorButton |
|---|
getIlpInteractor, getIlvInteractor, getLocationOnScreen, getPopupMenuFactory, init, init, isUsingObjectInteractor, isXORGhost, setPopupMenuFactory, setUsingObjectInteractor, setXORGhost |
| Methods inherited from class javax.swing.JToggleButton |
|---|
getAccessibleContext, getUIClassID, paramString, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlpEquipmentSelectButton(IlpViewsView view)
view - The view on which to operate.| Method Detail |
|---|
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 allows the end-user to edit
objects. Editing is handled by dispatching the events to the interactor
that is attached to the selection object.
public void setEditingAllowed(boolean allow)
public int getMoveThreshold()
2.
public void setMoveThreshold(int threshold)
2.
threshold - The threshold, in pixels.public boolean isOpaqueMove()
Opaque Move mode or
not. The interactor has two modes to move a graphic object:
Opaque Move mode. In this mode, the position of the
object is changed for each drag event.
Ghost Move mode. In this mode, the position of the
object is changed only when the user releases the mouse button.
This is the default mode.
public void setOpaqueMove(boolean set)
Opaque Move mode. In this mode, the position of the
object is changed for each drag event.
Ghost Move mode. In this mode, the position of the
object is changed only when the user releases the mouse button.
This is the default mode.
public boolean isShowingMovingObject()
true if the object is drawn while it is being moved.
Returns false if the bounding box rectangle is drawn instead.
public void setShowingMovingObject(boolean set)
Opaque Move mode, this property is ignored.
set - true to draw the object while it is being moved.
false to draw the bounding box rectangle instead.public boolean isOpaqueDragSelection()
Opaque Multiple
Selection mode or not.
public void setOpaqueDragSelection(boolean set)
Opaque Multiple Selection mode. The
interactor has two modes to select graphic objects by dragging a
rectangle around them: The Opaque Multiple Selection mode and
the Ghost Multiple Selection mode.
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()
Opaque Resize
mode or not.
public void setOpaqueResize(boolean set)
Opaque Resize mode. The interactor has two
modes to resize a graphic object: The Opaque Resize mode and the
Ghost Resize mode. In Opaque Resize mode, the size of the
object that the user resizes is changed for each drag event. In
Ghost Resize mode, the size of the object is changed only when
the user releases the mouse button. The default mode is the
Ghost Resize mode.
public boolean isOpaquePolyPointsEdition()
Opaque
PolyPoints Editing mode or not.
public void setOpaquePolyPointsEdition(boolean set)
Opaque PolyPoints Editing mode. The
interactor has two modes to edit polypoints objects: The Opaque
PolyPoints Editing mode and the Ghost PolyPoints Editing mode.
In Opaque PolyPoints Editing mode, the polypoints object that the
user edits is changed for each drag event.
In Ghost PolyPoints Editing mode, the polypoints object is changed
only when the user releases the mouse button. The default mode is the
Ghost PolyPoints Editing mode.
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
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||