public interface PopupMenuPainter<E extends javax.swing.JPopupMenu> extends Painter<E>, SpecificPainter
| Modifier and Type | Method and Description |
|---|---|
java.awt.Point |
preparePopupMenu(E popupMenu,
java.awt.Component invoker,
int x,
int y)
Prepares popup menu to be displayed.
|
void |
setFixLocation(boolean fix)
Sets whether should fix initial popup menu location or not.
|
void |
setMenuSpacing(int spacing)
Sets spacing between popup menus.
|
void |
setPopupMenuType(PopupMenuType type)
Sets popup menu type.
|
void |
setPopupMenuWay(PopupMenuWay way)
Sets preferred popup menu display way.
|
void |
setTransparent(boolean transparent)
Sets whether popup menu is transparent or not.
|
addPainterListener, getMargin, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstallvoid setTransparent(boolean transparent)
transparent - whether popup menu is transparent or notvoid setMenuSpacing(int spacing)
spacing - spacing between popup menusvoid setFixLocation(boolean fix)
fix - whether should fix initial popup menu location or notvoid setPopupMenuWay(PopupMenuWay way)
way - preferred popup menu display wayvoid setPopupMenuType(PopupMenuType type)
type - popup menu typejava.awt.Point preparePopupMenu(E popupMenu, java.awt.Component invoker, int x, int y)
popupMenu - JPopupMenu to prepare for displayx - screen x location actual popup is to be shown aty - screen y location actual popup is to be shown at