| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private FontMetrics | |
| private Font | |
| private MenuItemLayoutHelper. | |
| private String | |
| private int | |
| private Icon | |
| private MenuItemLayoutHelper. | |
| private Icon | |
| private MenuItemLayoutHelper. | |
| private FontMetrics | |
| private Font | |
| private int | |
| private int | |
| private int | |
| private View | |
| private Icon | |
| private MenuItemLayoutHelper. | |
| private boolean | |
| private boolean | |
| private boolean | |
| private MenuItemLayoutHelper. | |
| private int | |
| private int | |
| public static final StringUIClientPropertyKey | |
| public static final StringUIClientPropertyKey | |
| public static final StringUIClientPropertyKey | |
| public static final StringUIClientPropertyKey | |
| public static final StringUIClientPropertyKey | |
| public static final StringUIClientPropertyKey | |
| private JMenuItem | |
| private int | |
| private JComponent | |
| private String | |
| private MenuItemLayoutHelper. | |
| private boolean | |
| private int | |
| private int | |
| private Rectangle |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| private void | alignAccCheckAndArrowVertically(MenuItemLayoutHelper.
Aligns the accelertor text and the check and arrow icons vertically with the center of the label rect. |
| private void | |
| private void | |
| private void | |
| private void | calcLabelYPosition(MenuItemLayoutHelper.
Sets labelRect Y coordinate taking into account the vertical alignment |
| private void | calcMaxTextOffset(Rectangle
the rectangle, the maximal text offset
will be calculated for. viewRect)Calculates maximal text offset. |
| protected int | Returns: maximal value among the parent property and the value.name of the property, which stores the maximal value. propertyName, int a value which pretends to be maximal value)Calculates and returns maximal value through specified parent component client property. |
| protected void | |
| protected void | |
| private void | calcTextAndIconYPositions(MenuItemLayoutHelper.
Sets Y coordinates of text and icon taking into account the vertical alignment |
| protected void | |
| private void | |
| private void | |
| public static void | |
| public static void | |
| private MenuItemLayoutHelper. | |
| public static Rectangle | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | fixVerticalAlignment(MenuItemLayoutHelper.
Fixes vertical alignment of all menu item elements if rect.y or (rect.y + rect.height) is out of viewRect bounds |
| public Font | |
| public FontMetrics | |
| public MenuItemLayoutHelper. | |
| private String | |
| public String | |
| private int | |
| public int | |
| public Icon | |
| public MenuItemLayoutHelper. | |
| public Icon | |
| private int | |
| public MenuItemLayoutHelper. | |
| public Font | |
| public FontMetrics | |
| public int | |
| public int | |
| public int | |
| public View | |
| private Icon | |
| public Icon | |
| public MenuItemLayoutHelper. | |
| public MenuItemLayoutHelper. | |
| private int | |
| public int | |
| private int | |
| public int | |
| public MenuItemLayoutHelper. | |
| public JMenuItem | |
| public static JComponent | Returns: parent of this component if it is not a top-level menu Otherwise returns null.the menu item whose parent will be returned. menuItem)Returns parent of this component if it is not a top-level menu Otherwise returns null. |
| public JComponent | |
| private int | |
| public int | |
| protected int | Returns: value of the property as int.name of the parent property. propertyName)Returns parent client property as int. |
| public MenuItemLayoutHelper. | |
| public String | |
| public MenuItemLayoutHelper. | |
| public int | |
| public int | |
| public Rectangle | |
| public static boolean | |
| public static boolean | isColumnLayout(boolean isLeftToRight, int horizontalAlignment, int horizontalTextPosition, int verticalTextPosition)
Answers should we do column layout for a menu item or not. |
| public boolean | |
| public boolean | |
| public boolean | |
| protected void | |
| public MenuItemLayoutHelper. | layoutMenuItem()
Layout icon, text, check icon, accelerator text and arrow icon in the viewRect and return their positions. |
| public static int | Returns: maximal value.array where the search will be performed. values)Finds and returns maximal integer value in the given array. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public boolean | |
| public static boolean | useCheckAndArrow(JMenuItem menuItem)
Returns false if the component is a JMenu and it is a top level menu (on the menubar). |