public void showPopupAbove(Point loc, GraphControllerPopupListener graphControllerPopupListener) { if (_popUp.isVisible()) { _popUp.setVisible(false); } else { _popUp.show(_desktopPane, 0, 0); _popUp.setLocation(loc.x, loc.y - _popUp.getHeight()); } _currentGraphControllerPopupListener = graphControllerPopupListener; }
public void showMenu() { if (LOCATION == BELOW) { setPopupLocation(main.getX() - main.getWidth(), main.getY() + getHeight()); } else if (LOCATION == ABOVE) { setPopupLocation(main.getX() - main.getWidth(), main.getY() - menu.getHeight()); } if (getPopperButtonLocation() == RIGHT) { if (getPopperButtonLocation() == RIGHT) { tempPopArrowDir = getPopperArrowDirection(); } setPopperArrowDirection(DOWN); } menu.show(popper, getPopupX(), getPopupY()); }