public class IlvExpandCollapseInteractor extends IlvManagerViewInteractor implements IlvPermanentInteractorInterface
Constructor and Description |
---|
IlvExpandCollapseInteractor()
Constructs an
IlvExpandCollapseInteractor . |
Modifier and Type | Method and Description |
---|---|
protected void |
attach(IlvManagerView view)
Called when the
interactor is attached to the manager view.
|
protected void |
detach()
Called when the interactor
is detached from the view.
|
protected void |
expandOrCollapse(IlvGraphic obj)
Expands or collapses the input object.
|
Cursor |
getCollapseCursor()
Returns the cursor to be displayed when the mouse is over any
collapsable object.
|
Cursor |
getExpandCursor()
Returns the cursor to be displayed when the mouse is over any
expandable object.
|
Cursor |
getIdleCursor()
Returns the cursor to be displayed when the mouse is not over any
expandable or collapsable object.
|
protected IlvGraphic |
getObject(IlvPoint p)
Searches the expandable object under the mouse.
|
protected boolean |
handleButtonDown(MouseEvent event)
Processes the button down events.
|
protected boolean |
handleButtonUp(MouseEvent event)
Processes the button up events.
|
boolean |
isHandleLinkBundlesEnabled()
Returns whether the interactor can expand and collapse objects
of type
IlvLinkBundle . |
boolean |
isHandleManagersEnabled()
Returns whether the interactor can expand and collapse objects
of type
IlvManager . |
boolean |
isPermanent()
Returns
true if the interactor operates in permanent mode;
false otherwise. |
boolean |
isShowSelection()
Returns whether selection is used to indicate which object is to be
expanded or collapsed.
|
protected void |
processMouseEvent(MouseEvent event)
Processes the mouse events.
|
protected void |
processMouseMotionEvent(MouseEvent event)
Processes the mouse motion events.
|
void |
setCollapseCursor(Cursor cursor)
Sets the cursor to be displayed when the mouse is over any
collapsable object.
|
void |
setExpandCursor(Cursor cursor)
Sets the cursor to be displayed when the mouse is over any
expandable object.
|
void |
setHandleLinkBundlesEnabled(boolean enable)
Sets whether the interactor can expand and collapse objects
of type
IlvLinkBundle . |
void |
setHandleManagersEnabled(boolean enable)
Sets whether the interactor can expand and collapse objects
of type
IlvManager . |
void |
setIdleCursor(Cursor cursor)
Sets the cursor to be displayed when the mouse is not over any
expandable or collapsable object.
|
void |
setPermanent(boolean set)
Changes the mode of the interactor.
|
void |
setShowSelection(boolean set)
Sets whether selection is used to indicate which object is to be expanded
or collapsed.
|
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, isXORGhost, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
public IlvExpandCollapseInteractor()
IlvExpandCollapseInteractor
.protected void attach(IlvManagerView view)
attach
in class IlvManagerViewInteractor
view
- The manager view.IlvManagerViewInteractor.detach()
protected void detach()
detach
in class IlvManagerViewInteractor
IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)
public void setHandleManagersEnabled(boolean enable)
IlvManager
.public boolean isHandleManagersEnabled()
IlvManager
.public void setHandleLinkBundlesEnabled(boolean enable)
IlvLinkBundle
.public boolean isHandleLinkBundlesEnabled()
IlvLinkBundle
.public void setIdleCursor(Cursor cursor)
public Cursor getIdleCursor()
public void setExpandCursor(Cursor cursor)
public Cursor getExpandCursor()
public void setCollapseCursor(Cursor cursor)
public Cursor getCollapseCursor()
public void setShowSelection(boolean set)
public boolean isShowSelection()
public void setPermanent(boolean set)
setPermanent
in interface IlvPermanentInteractorInterface
set
- The new mode.isPermanent()
public boolean isPermanent()
true
if the interactor operates in permanent mode;
false
otherwise.isPermanent
in interface IlvPermanentInteractorInterface
setPermanent(boolean)
protected void processMouseEvent(MouseEvent event)
processMouseEvent
in class IlvManagerViewInteractor
event
- The event.IlvManagerViewInteractor.addMouseListener(java.awt.event.MouseListener)
protected boolean handleButtonDown(MouseEvent event)
event
- The event.true
if the event has been processed,
false
otherwise.protected boolean handleButtonUp(MouseEvent event)
event
- The event.true
if the event has been processed,
false
otherwise.protected void expandOrCollapse(IlvGraphic obj)
obj
- The manager or link bundle.protected void processMouseMotionEvent(MouseEvent event)
processMouseMotionEvent
in class IlvManagerViewInteractor
event
- The event.IlvManagerViewInteractor.addMouseMotionListener(java.awt.event.MouseMotionListener)
protected IlvGraphic getObject(IlvPoint p)
p
- The point in view coordinates© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.