public class IlvPopupMenuConstraintContext 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 |
---|
IlvPopupMenuConstraintContext(IlvPoint point,
JComponent component,
IlvGraphic graphic,
IlvConstraint constraint,
IlvTransformer transformer,
IlvManagerView view)
Creates a new pop-up menu context for graphics representing
IlvConstraint . |
Modifier and Type | Method and Description |
---|---|
IlvConstraint |
getConstraint()
Gets the constraint of this pop-up menu context
|
getComponent, getGraphic, getManagerView, getPoint, getTransformer, getTriggerEvent
public IlvPopupMenuConstraintContext(IlvPoint point, JComponent component, IlvGraphic graphic, IlvConstraint constraint, IlvTransformer transformer, IlvManagerView view)
IlvConstraint
.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.constraint
- The constraint 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 IlvConstraint getConstraint()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.