|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.swing.IlvPopupMenuContext
public class IlvPopupMenuContext
The context of a popup menu that is managed by a
IlvPopupMenuManager.
The action listener of a popup menu can retrieve the context of the
popup menu in order to decide how the action must be performed.
IlvPopupMenuManager| Constructor Summary | |
|---|---|
IlvPopupMenuContext(IlvPoint point,
JComponent component,
IlvGraphic graphic,
IlvTransformer transformer,
IlvManagerView view)
Creates a new popup menu context. |
|
| Method Summary | |
|---|---|
JComponent |
getComponent()
Returns the Swing component that triggered the popup menu. |
IlvGraphic |
getGraphic()
Returns the graphic object that has the popup menu. |
IlvManagerView |
getManagerView()
Returns the manager view that triggered the popup menu. |
IlvPoint |
getPoint()
Returns the location of the mouse when the display of the popup 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 popup menu. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvPopupMenuContext(IlvPoint point,
JComponent component,
IlvGraphic graphic,
IlvTransformer transformer,
IlvManagerView view)
point - The location of the mouse when the display of the popup menu
was triggered (in view coordinates).component - The Swing component that triggered the popup menu.graphic - The graphic object that has the popup 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 popup menu.IlvGraphic.setPopupMenu(javax.swing.JPopupMenu),
IlvGraphic.setPopupMenuName(java.lang.String)| Method Detail |
|---|
public IlvPoint getPoint()
public JComponent getComponent()
public IlvGraphic getGraphic()
null.
IlvGraphic.setPopupMenu(javax.swing.JPopupMenu),
IlvGraphic.setPopupMenuName(java.lang.String),
getManagerView()public IlvTransformer getTransformer()
null.
getGraphic(),
getManagerView()public IlvManagerView getManagerView()
null.
public MouseEvent getTriggerEvent()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||