|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PopupMenuPainter<E extends javax.swing.JPopupMenu>
Base interface for JPopupMenu component painters.
Method Summary | |
---|---|
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. |
Methods inherited from interface com.alee.extended.painter.Painter |
---|
addPainterListener, getMargin, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall |
Method Detail |
---|
void 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |