public class IlvPopupMenuActivityContext extends IlvPopupMenuContext
IlvActivity graphic
representation that is managed by a IlvPopupMenuManager. The
action listener of a pop-up menu can retrieve the context of the pop-up menu in
order to decide how the action must be performed.IlvPopupMenuManager| Constructor and Description |
|---|
IlvPopupMenuActivityContext(IlvPoint point,
JComponent component,
IlvGraphic graphic,
IlvActivity activity,
IlvTransformer transformer,
IlvManagerView view)
Creates a new pop-up menu context for graphics representing
IlvActivity. |
| Modifier and Type | Method and Description |
|---|---|
IlvActivity |
getActivity()
Gets the activity of this pop-up menu context
|
getComponent, getGraphic, getManagerView, getPoint, getTransformer, getTriggerEventpublic IlvPopupMenuActivityContext(IlvPoint point, JComponent component, IlvGraphic graphic, IlvActivity activity, IlvTransformer transformer, IlvManagerView view)
IlvActivity.point - The location of the mouse when the display of the pop-up
menu was triggered (in view coordinates).component - The Swing component that triggered the pop-up menu.graphic - The graphic object that has the pop-up menu.activity - The activity corresponding to this graphic.transformer - The transformer that converts the coordinate system of
the graphic object (the manager coordinates) into the
coordinate system of the manager view in which the pop-up
menu is about to be displayed (the view coordinates).view - The manager view that triggered the pop-up menu.public IlvActivity getActivity()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.