$darkmode
DENOPTIM
denoptim.gui.ScrollableJPupupMenu Class Reference

A popup menu' that has a fixed size and can be scrolled to see menu items that do not fit into the fixed-size panel. More...

Collaboration diagram for denoptim.gui.ScrollableJPupupMenu:
[legend]

Public Member Functions

 ScrollableJPupupMenu ()
 
void showMenu (Component invoker, int x, int y)
 Displays the menu with the components that have been added so far. More...
 
void addCheckBox (JCheckBox item)
 Add a check box to the list of check boxes to display in the menu. More...
 

Protected Member Functions

List< JCheckBox > getAllBChekBoxes ()
 Returns the list of check boxes that is displayed in the menu. More...
 

Private Attributes

JPopupMenu menu
 
JPanel menuPanel
 
List< JCheckBox > allBChekBoxes = new ArrayList<JCheckBox>()
 

Detailed Description

A popup menu' that has a fixed size and can be scrolled to see menu items that do not fit into the fixed-size panel.

Definition at line 24 of file ScrollableJPupupMenu.java.

Constructor & Destructor Documentation

◆ ScrollableJPupupMenu()

denoptim.gui.ScrollableJPupupMenu.ScrollableJPupupMenu ( )

Definition at line 32 of file ScrollableJPupupMenu.java.

Member Function Documentation

◆ addCheckBox()

void denoptim.gui.ScrollableJPupupMenu.addCheckBox ( JCheckBox  item)

Add a check box to the list of check boxes to display in the menu.

Parameters
item

Definition at line 80 of file ScrollableJPupupMenu.java.

References denoptim.gui.ScrollableJPupupMenu.allBChekBoxes.

Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot().

Here is the caller graph for this function:

◆ getAllBChekBoxes()

List< JCheckBox > denoptim.gui.ScrollableJPupupMenu.getAllBChekBoxes ( )
protected

Returns the list of check boxes that is displayed in the menu.

Returns

Definition at line 91 of file ScrollableJPupupMenu.java.

References denoptim.gui.ScrollableJPupupMenu.allBChekBoxes.

Referenced by denoptim.gui.GUIInspectGARun.initialize().

Here is the caller graph for this function:

◆ showMenu()

void denoptim.gui.ScrollableJPupupMenu.showMenu ( Component  invoker,
int  x,
int  y 
)

Displays the menu with the components that have been added so far.

Parameters
invoker
x
y

Definition at line 43 of file ScrollableJPupupMenu.java.

References denoptim.gui.ScrollableJPupupMenu.allBChekBoxes, denoptim.gui.ScrollableJPupupMenu.menu, and denoptim.gui.ScrollableJPupupMenu.menuPanel.

Referenced by denoptim.gui.GUIInspectGARun.initialize().

Here is the caller graph for this function:

Member Data Documentation

◆ allBChekBoxes

List<JCheckBox> denoptim.gui.ScrollableJPupupMenu.allBChekBoxes = new ArrayList<JCheckBox>()
private

◆ menu

JPopupMenu denoptim.gui.ScrollableJPupupMenu.menu
private

◆ menuPanel

JPanel denoptim.gui.ScrollableJPupupMenu.menuPanel
private

The documentation for this class was generated from the following file: