|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.painter.AbstractPainter<E> com.alee.extended.painter.AdaptivePainter<E> com.alee.laf.menu.AdaptivePopupMenuPainter<E>
public class AdaptivePopupMenuPainter<E extends javax.swing.JPopupMenu>
Simple PopupMenuPainter adapter class. It is used to install simple non-specific painters into WebPopupMenuUI.
Field Summary |
---|
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
AdaptivePopupMenuPainter(Painter painter)
Constructs new AdaptiveLabelPainter for the specified painter. |
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 class com.alee.extended.painter.AdaptivePainter |
---|
addPainterListener, getMargin, getPainter, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall |
Methods inherited from class com.alee.extended.painter.AbstractPainter |
---|
p, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, updateAll, updateOpacity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.alee.extended.painter.Painter |
---|
addPainterListener, getMargin, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall |
Constructor Detail |
---|
public AdaptivePopupMenuPainter(Painter painter)
painter
- painter to adaptMethod Detail |
---|
public void setTransparent(boolean transparent)
setTransparent
in interface PopupMenuPainter<E extends javax.swing.JPopupMenu>
transparent
- whether popup menu is transparent or notpublic void setMenuSpacing(int spacing)
setMenuSpacing
in interface PopupMenuPainter<E extends javax.swing.JPopupMenu>
spacing
- spacing between popup menuspublic void setFixLocation(boolean fix)
setFixLocation
in interface PopupMenuPainter<E extends javax.swing.JPopupMenu>
fix
- whether should fix initial popup menu location or notpublic void setPopupMenuWay(PopupMenuWay way)
setPopupMenuWay
in interface PopupMenuPainter<E extends javax.swing.JPopupMenu>
way
- preferred popup menu display waypublic void setPopupMenuType(PopupMenuType type)
setPopupMenuType
in interface PopupMenuPainter<E extends javax.swing.JPopupMenu>
type
- popup menu typepublic java.awt.Point preparePopupMenu(E popupMenu, java.awt.Component invoker, int x, int y)
preparePopupMenu
in interface PopupMenuPainter<E extends javax.swing.JPopupMenu>
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 |