public class IlvPopupMenuContext extends Object
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 |
---|
IlvPopupMenuContext(IlvPoint point,
JComponent component,
IlvGraphic graphic,
IlvTransformer transformer,
IlvManagerView view)
Creates a new pop-up menu context.
|
Modifier and Type | Method and Description |
---|---|
JComponent |
getComponent()
Returns the Swing component that triggered the pop-up menu.
|
IlvGraphic |
getGraphic()
Returns the graphic object that has the pop-up menu.
|
IlvManagerView |
getManagerView()
Returns the manager view that triggered the pop-up menu.
|
IlvPoint |
getPoint()
Returns the location of the mouse when the display of the pop-up menu
was triggered (in view coordinates).
|
IlvTransformer |
getTransformer()
Returns 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 tooltip is about to be
displayed (the view coordinates).
|
MouseEvent |
getTriggerEvent()
Returns the mouse event that triggered the display of the pop-up menu.
|
public IlvPopupMenuContext(IlvPoint point, JComponent component, IlvGraphic graphic, IlvTransformer transformer, IlvManagerView view)
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.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 tooltip is about to be
displayed (the view coordinates).view
- The manager view that triggered the pop-up menu.IlvGraphic.setPopupMenu(javax.swing.JPopupMenu)
,
IlvGraphic.setPopupMenuName(java.lang.String)
public IlvPoint getPoint()
public JComponent getComponent()
public IlvGraphic getGraphic()
null
.public IlvTransformer getTransformer()
null
.getGraphic()
,
getManagerView()
public IlvManagerView getManagerView()
null
.public MouseEvent getTriggerEvent()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.