Class MenuUtilities.MenuLayoutMetrics
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.menu.MenuUtilities.MenuLayoutMetrics
- Enclosing class:
MenuUtilities
Layout metrics for a single popup menu. All menu items in a popup menu share the same metrics
so that different parts (icons, check icons, texts, accelerator texts and arrow icons) are
vertically aligned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Maximum width of accelerator texts of the menu items of this popup menu.int
Maximum width of arrow icons of the menu items of this popup menu.int
Maximum width of check icons of the menu items of this popup menu.int
Maximum gap between icon and text of the menu items of this popup menu.int
Maximum width of icons of the menu items of this popup menu.int
Maximum width of texts of the menu items of this popup menu. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
maxIconWidth
public int maxIconWidthMaximum width of icons of the menu items of this popup menu. -
maxCheckIconWidth
public int maxCheckIconWidthMaximum width of check icons of the menu items of this popup menu. -
maxTextWidth
public int maxTextWidthMaximum width of texts of the menu items of this popup menu. -
maxAcceleratorWidth
public int maxAcceleratorWidthMaximum width of accelerator texts of the menu items of this popup menu. -
maxArrowIconWidth
public int maxArrowIconWidthMaximum width of arrow icons of the menu items of this popup menu. -
maxIconTextGap
public int maxIconTextGapMaximum gap between icon and text of the menu items of this popup menu.
-
-
Constructor Details
-
MenuLayoutMetrics
public MenuLayoutMetrics()
-