com.swfm.mica.core
Interface MiiContextMenu

All Known Implementing Classes:
MiEditorMenu

public interface MiiContextMenu

Version:
%I% %G%
Author:
Michael L. Davis

Method Summary
 MiPart getMenuGraphics()
          Gets the menu this MiiContextMenu uses.
 boolean getToSelectAttributedShape()
          Gets whether to select the target of this menu when the menu is popped up.
 void popdown()
          Pops down this menu.
 void popup(MiPart assocTriggerObj, MiPoint pt)
          Pops up this menu with the given trigger object as the target.
 void setToSelectAttributedShape(boolean flag)
          Sets whether to select the target of this menu when the menu is popped up.
 

Method Detail

setToSelectAttributedShape

public void setToSelectAttributedShape(boolean flag)
Sets whether to select the target of this menu when the menu is popped up.

Parameters:
flag - true if we are to select the shape that this menu is targeting when this menu is popped up

getToSelectAttributedShape

public boolean getToSelectAttributedShape()
Gets whether to select the target of this menu when the menu is popped up.

Returns:
true if we are to select the shape that this menu is targeting when this menu is popped up

popup

public void popup(MiPart assocTriggerObj,
                  MiPoint pt)
Pops up this menu with the given trigger object as the target. TO DO: make this a boolean so if for some reason the application just cannot popup the menu, that the caller (MiIDisplayContextMenu) can abort.

Parameters:
assocTriggerObj - the target of this menu
pt - the location to pop up this menu

popdown

public void popdown()
Pops down this menu.


getMenuGraphics

public MiPart getMenuGraphics()
Gets the menu this MiiContextMenu uses.

Returns:
the menu