public static class PopupPositionManager.PositionAdjuster
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
myGap |
protected java.awt.Point |
myRelativeOnScreen |
protected java.awt.Component |
myRelativeTo |
protected java.awt.Rectangle |
myScreenRect |
Constructor and Description |
---|
PositionAdjuster(java.awt.Component relativeTo) |
PositionAdjuster(java.awt.Component relativeTo,
int gap) |
Modifier and Type | Method and Description |
---|---|
void |
adjust(JBPopup popup)
Try to position:
1.
|
void |
adjust(JBPopup popup,
PopupPositionManager.Position... traversalPolicy) |
protected static java.awt.Rectangle |
crop(java.awt.Rectangle source,
java.awt.Rectangle toCrop) |
static java.awt.Dimension |
getPopupSize(JBPopup popup) |
protected int |
getYForTopPositioning() |
protected java.awt.Rectangle |
positionAbove(java.awt.Dimension d) |
protected java.awt.Rectangle |
positionLeft(java.awt.Dimension d) |
protected java.awt.Rectangle |
positionRight(java.awt.Dimension d) |
protected java.awt.Rectangle |
positionUnder(java.awt.Dimension d) |
protected final int myGap
protected final java.awt.Component myRelativeTo
protected final java.awt.Point myRelativeOnScreen
protected final java.awt.Rectangle myScreenRect
public PositionAdjuster(java.awt.Component relativeTo, int gap)
public PositionAdjuster(java.awt.Component relativeTo)
protected java.awt.Rectangle positionRight(java.awt.Dimension d)
protected java.awt.Rectangle positionLeft(java.awt.Dimension d)
protected java.awt.Rectangle positionAbove(java.awt.Dimension d)
protected java.awt.Rectangle positionUnder(java.awt.Dimension d)
protected int getYForTopPositioning()
public void adjust(JBPopup popup)
popup
- public void adjust(JBPopup popup, PopupPositionManager.Position... traversalPolicy)
protected static java.awt.Rectangle crop(java.awt.Rectangle source, java.awt.Rectangle toCrop)
public static java.awt.Dimension getPopupSize(JBPopup popup)