public class PanelPositioner extends java.lang.Object implements IPopupPositioner
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Point |
offset
The offset.
|
| Constructor and Description |
|---|
PanelPositioner(java.awt.Point offset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Point |
getPosition(IInterface inter,
java.awt.Dimension popup,
java.awt.Rectangle component,
java.awt.Rectangle panel)
Get position.
|
public PanelPositioner(java.awt.Point offset)
offset - the offset relative to the current cursor positionpublic java.awt.Point getPosition(IInterface inter, java.awt.Dimension popup, java.awt.Rectangle component, java.awt.Rectangle panel)
IPopupPositionergetPosition in interface IPopupPositionerinter - the IInterface to be usedpopup - dimensions of the pop-up to be positioned, may be null for static positionerscomponent - the position of the component causing the pop-uppanel - the position of the panel containing the component